fae49b6d0977b8f731260f7c91fa288645ba7c93
[gnulib.git] / ChangeLog
1 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stdbool: do not define HAVE_STDBOOL_H
4         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7         imported from the latest Autoconf git.  It was motivated by Emacs,
8         which uses gnulib but does not need HAVE_STDBOOL_H.
9
10 2011-02-04  Bruno Haible  <bruno@clisp.org>
11
12         wcsnrtombs: Prepare for new module wwcsnrtombs.
13         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14         * lib/wcsnrtombs.c: Include it.
15         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16
17         wcsrtombs: Prepare for new module wwcsrtombs.
18         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19         * lib/wcsrtombs.c: Include it.
20         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21
22         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24         * lib/mbsnrtowcs.c: Include it.
25         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26
27         mbsrtowcs: Prepare for new module mbsrtowwcs.
28         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
29         * lib/mbsrtowcs.c: Include it.
30         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
31
32 2011-02-04  Bruno Haible  <bruno@clisp.org>
33
34         vasnprintf: Reduce use of malloc for small format strings.
35         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
36         (arguments): Add room for the first 7 arguments.
37         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
38         (char_directives, u8_directives, u16_directives, u32_directives): Add
39         room for the first 7 directives.
40         * lib/printf-parse.c: Include <string.h>.
41         (PRINTF_PARSE): Change memory handling code so that it uses the first
42         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
44         Reported by Pádraig Brady <P@draigbrady.com>.
45
46 2011-01-31  Eric Blake  <eblake@redhat.com>
47
48         dup2: work around Haiku bug
49         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
50         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
51         * doc/posix-functions/dup2.texi (dup2): Document the bug.
52         * tests/test-dup2.c (main): Enhance test.
53
54 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55
56         doc: off_t is not available in eglibc 2.11.2 stdio.h.
57         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
58         declared by eglibc 2.11.2.
59         * lib/stdio.in.h: Likewise.
60
61 2011-01-31  Eric Blake  <eblake@redhat.com>
62
63         ignore-value: add missing test dependency
64         * tests/test-ignore-value.c: Revert previous change; stdio.h
65         provides off_t.
66         * modules/ignore-value-tests (Depends-on): Add missing dependency.
67
68 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
69
70         mktime: clarify long_int width checking
71         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
72         the top level, to make it clearer that the assumption about
73         long_int width is being checked.  See
74         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
75
76 2011-01-30  Simon Josefsson  <simon@josefsson.org>
77
78         ignore-value: Fix self-test.
79         * tests/test-ignore-value.c: Include sys/types.h for off_t.
80
81 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
82
83         TYPE_MAXIMUM: avoid theoretically undefined behavior
84         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
85         negative number, which the C Standard says has undefined behavior.
86         In practice this is not a problem, but might as well do it by the book.
87         Reported by Rich Felker and Eric Blake; see
88         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
89         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
90         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
91         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
92         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
93         * m4/stdint.m4 (gl_STDINT_H): Likewise.
94         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
95
96         mktime: #undef mktime before #defining it
97         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
98
99         mktime: systematically normalize tm_isdst comparisons
100         * lib/mktime.c (isdst_differ): New function.
101         (__mktime_internal): Use it systematically for all isdst comparisons.
102         This completes the fix for libc BZ #6723, and removes the need for
103         normalizing tm_isdst.  See
104         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
105         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
106
107         mktime: fix some integer overflow issues and sidestep the rest
108
109         This was prompted by a bug report by Benjamin Lindner for MinGW
110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
111         His bug is due to signed integer overflow (0 - INT_MIN), and I
112         I scanned through mktime.c looking for other integer overflow
113         problems, fixing all the bugs I found.
114
115         Although the C Standard says the resulting code is still not safe
116         in the presence of integer overflow, in practice it should be good
117         enough for all real-world two's-complement implementations, except
118         for debugging environments that deliberately trap on integer
119         overflow (e.g., gcc -ftrapv).
120
121         * lib/mktime.c (WRAPV): New macro.
122         (SHR): Also check that long_int and time_t shift right in the
123         usual way, before using the fast-but-unportable method.
124         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
125         used.  The code already assumed two's complement, so there's
126         no need to test for alternatives.  All uses removed.
127         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
128         the C standard.  Problem reported by Rich Felker in
129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
130         (twos_complement_arithmetic): Also check long_int and time_t.
131         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
132         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
133         (__mktime_internal): Avoid integer overflow with unary subtraction
134         in two instances where -1 - X is an adequate replacement for -X,
135         since the calculations are approximate.
136
137 2011-01-29  Eric Blake  <eblake@redhat.com>
138
139         mktime: avoid infinite loop
140         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
141         type; behavior is still undefined but portable to all known targets.
142         Reported by Rich Felker.
143
144 2011-01-29  Simon Josefsson  <simon@josefsson.org>
145
146         rename, unlink, same-inode: Relicense.
147         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
148         * modules/unlink (License): Likewise.
149         * modules/same-inode (License): Likewise.
150
151 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
152
153         mktime: avoid problems on NetBSD 5 / i386
154         * lib/mktime.c (long_int): New type.  This works around a problem
155         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
156         but time_t is 64 bits, and where I expect the existing code is
157         wrong in some cases.
158         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
159         (ydhms_diff): Bring back the compile-time check for wide-enough
160         year and yday.
161
162         mktime: fix misspelling in comment
163         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
164         This merges all recent glibc changes of importance.
165
166 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
167
168         move-if-change: cope with concurrent mv of identical file.
169         * build-aux/move-if-change (CMPPROG): Accept environment
170         variable as an override for `cmp'.
171         (usage): Document CMPPROG.
172         Adjust comparison to drop stdout.  Cope with failure of mv if
173         the target file exists and is identical to the source, for
174         parallel builds.
175         Report from H.J. Lu against binutils in PR binutils/12283.
176
177 2011-01-28  Bruce Korb  <bkorb@gnu.org>
178
179         * users.txt: Mention sharutils.
180
181 2011-01-28  Simon Josefsson  <simon@josefsson.org>
182
183         * users.txt: Mention OATH Toolkit.
184
185 2011-01-27  Bruno Haible  <bruno@clisp.org>
186
187         Prepare for supporting FreeBSD 10.
188         * build-aux/config.libpath: Remove handling of freebsd1*.
189
190 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
191
192         Prepare for supporting FreeBSD 10.
193         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
194         match FreeBSD 10.0.
195
196 2011-01-27  Bruno Haible  <bruno@clisp.org>
197
198         vma-iter, get-rusage-as: Add OpenBSD support.
199         * modules/vma-iter (configure.ac): Test for mquery.
200         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
201         * lib/vma-iter.c: Include <sys/mman.h>.
202         (vma_iterate): Add an implementation based on mquery().
203         * lib/resource-ext.h (get_rusage_as): Update comments.
204         * lib/get-rusage-as.c: Likewise.
205         * lib/get-rusage-data.c: Likewise.
206
207 2011-01-26  Karl Berry  <karl@gnu.org>
208
209         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
210         variables to make it easier to override the makeinfo program used.
211
212 2011-01-26  Eric Blake  <eblake@redhat.com>
213
214         fcntl: work around Haiku F_DUPFD bugs
215         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
216         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
217         cloexec bit on duplication.
218         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
219
220 2011-01-26  Bruno Haible  <bruno@clisp.org>
221
222         Enable memory leak tests on AIX.
223         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
224         * tests/test-fprintf-posix3.c (main): Likewise.
225
226 2011-01-26  Bruno Haible  <bruno@clisp.org>
227
228         Tests for module 'get-rusage-data'.
229         * modules/get-rusage-data-tests: New file.
230         * tests/test-get-rusage-data.c: New file.
231
232         New module 'get-rusage-data'.
233         * lib/resource-ext.h (get_rusage_data): New declaration.
234         * lib/get-rusage-data.c: New file.
235         * modules/get-rusage-data: New file.
236
237 2011-01-25  Bruno Haible  <bruno@clisp.org>
238
239         get-rusage-as: Allow for easier testing.
240         * lib/resource-ext.h (get_rusage_as): Add comment.
241         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
242         (main): New function for interactive testing.
243
244 2011-01-25  Bruno Haible  <bruno@clisp.org>
245
246         vma-iter: Treat Haiku like BeOS.
247         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
248         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
249
250 2011-01-25  Eric Blake  <eblake@redhat.com>
251
252         c-stack: fix regression on cygwin when libsigsegv is present
253         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
254
255 2011-01-24  Bruno Haible  <bruno@clisp.org>
256
257         vma-iter: Avoid empty intervals.
258         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
259         on an empty interval.
260
261 2011-01-24  Jim Meyering  <meyering@redhat.com>
262
263         u64: remove unnecessary #include
264         * lib/u64.h: Don't include <stddef.h>.  It was not used.
265
266 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
267
268         Allow the user to avoid the GNULIB_TEST_* macros.
269         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
270
271 2011-01-23  Bruno Haible  <bruno@clisp.org>
272
273         New module 'vma-iter'.
274         * lib/vma-iter.h: New file.
275         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
276         * modules/vma-iter: New file.
277         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
278         for get_rusage_as_via_iterator.
279         (vma_iterate_callback): New function.
280         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
281         * modules/get-rusage-as (Depends-on): Add vma-iter.
282
283 2011-01-23  Bruno Haible  <bruno@clisp.org>
284
285         uninorm: Tweak includes.
286         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
287         Reported by Jim Meyering.
288
289 2011-01-23  Bruno Haible  <bruno@clisp.org>
290
291         get-rusage-as: Improve on NetBSD.
292         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
293         /proc, like on FreeBSD.
294
295 2011-01-23  Jim Meyering  <meyering@redhat.com>
296
297         xreadlink.h: remove unnecessary #include
298         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
299
300         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
301         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
302
303 2011-01-23  Bruno Haible  <bruno@clisp.org>
304
305         get-rusage-as: Fix bug.
306         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
307         original limit when aborting the first loop.
308
309 2011-01-23  Bruno Haible  <bruno@clisp.org>
310
311         wctype: Ensure valid C syntax.
312         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
313         unconditionally, instead of gl_NEXT_HEADERS conditionally.
314
315 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
316
317         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
318         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
319         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
320         as they are needed only for configure's test case.
321         This removes two unnecessary symbols from config.h.
322
323         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
324         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
326         AC_CHECK_HEADERS_ONCE on a header that we also invoke
327         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
328         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
329         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
330         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
331         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
332         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
333         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
335         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
336         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
337         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
338         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
339         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
340         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
341
342 2011-01-21  Eric Blake  <eblake@redhat.com>
343
344         maintainer-makefile: work with older git for submodule check
345         * top/maint.mk (public-submodule-commit): Rewrite to avoid
346         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
347         Reported by Matthias Bolte.
348
349         bootstrap: minor portability fixes
350         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
351         (usage): Omit leading capital and trailing . on help phrases, per
352         GNU Coding Standards.
353         (check_versions, top level): Prefix messages with script name.
354
355 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
356
357         bootstrap: support --no-git option
358         * build-aux/bootstrap: Add --no-git option, to be used when
359         --gnulib-srcdir points to the exact desired checkout.
360
361 2011-01-21  Eric Blake  <eblake@redhat.com>
362
363         strerror_r-posix: work with glibc 2.13
364         * lib/strerror_r.c (strerror_r): Fix return type.
365
366 2011-01-21  Pádraig Brady  <P@draigBrady.com>
367             Bruno Haible  <bruno@clisp.org>
368
369         uN_strstr: New unit tests.
370         * modules/unistr/u8-strstr-tests: New file.
371         * modules/unistr/u16-strstr-tests: New file.
372         * modules/unistr/u32-strstr-tests: New file.
373         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
374         * tests/unistr/test-u8-strstr.c: New file.
375         * tests/unistr/test-u16-strstr.c: New file.
376         * tests/unistr/test-u32-strstr.c: New file.
377
378 2011-01-21  Pádraig Brady  <P@draigBrady.com>
379             Bruno Haible  <bruno@clisp.org>
380
381         Make uN_strstr functions O(n) worst-case.
382         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
383         16-bit and 32-bit unit cases, use the unibyte algorithm from
384         lib/mbsstr.c.
385         * lib/unistr/u8-strstr.c: Include <string.h>.
386         (UNIT_IS_UINT8_T): New macro.
387         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
388         (U_STRLEN, U_STRNLEN): New macros.
389         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
390         (U_STRLEN, U_STRNLEN): New macros.
391         * modules/unistr/u8-strstr (Depends-on): Add strstr.
392         (configure.ac): Update required libunistring version.
393         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
394         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
395         malloca.
396         (configure.ac): Update required libunistring version.
397         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
398         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
399         malloca.
400         (configure.ac): Update required libunistring version.
401
402 2011-01-21  Pádraig Brady  <P@draigBrady.com>
403             Bruno Haible  <bruno@clisp.org>
404
405         Prepare for faster uN_strstr functions.
406         * lib/str-kmp.h: Support definable UNITs.
407         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
408         needle_len argument.
409         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
410         * lib/mbscasestr.c (mbscasestr): Likewise.
411
412 2011-01-21  Pádraig Brady <P@draigBrady.com>
413
414         malloca-tests: make faster by unsetting MALLOC_PERTURB_
415         * tests/test-malloca.c (main): Unset the environment variable
416         to greatly speed up the test.
417         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
418         * modules/malloca-tests: Depend on unsetenv.
419
420 2011-01-21  Pádraig Brady <P@draigBrady.com>
421
422         ignore-value: remove stdint dependency
423         * lib/ignore-value.h: Remove <stdint.h>
424         * modules/ignore-value: Remove stdint dependency.
425
426 2011-01-21  Jim Meyering  <meyering@redhat.com>
427
428         maint.mk: adjust variable name to be consistent with other gl_ vars
429         * top/maint.mk (gl_public_submodule_commit): Rename the variable
430         to be lower case.
431
432 2011-01-20  Jim Meyering  <meyering@redhat.com>
433
434         maint.mk: make "check" depend on public-submodule-commit by default
435         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
436
437 2011-01-20  Bruno Haible  <bruno@clisp.org>
438
439         mbfile, mbiter: Complete change from 2008-12-21.
440         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
441         * m4/mbiter.m4 (gl_MBITER): Likewise.
442
443 2011-01-20  Jim Meyering  <meyering@redhat.com>
444
445         init.sh: insert space between each function name and "()"
446         * tests/init.sh: Make it a little easier to see that a function's
447         name is "warn_", and not "warn" when looking at the first part of
448         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
449
450 2011-01-20  Jim Meyering  <meyering@redhat.com>
451
452         mountlist: clean up code formatting
453         * lib/mountlist.c (read_file_system_list): Split a long line,
454         correct bracing style, use NULL in place of "(struct statfs *)0",
455         don't parenthesize return value, add spaces around "=" and after
456         ";-in-for-stmt".
457
458 2011-01-14  Markus Duft <mduft@gentoo.org>
459
460         mountlist: add support for Interix
461         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
462         Apply statvfs to all entries of /dev/fs.
463         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
464         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
465
466 2011-01-20  Jim Meyering  <meyering@redhat.com>
467
468         maint.mk: improve the public-submodule-commit rule
469         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
470         to suppress printing of its commands... unless V=1.
471         Add git submodule's --quiet option to suppress printing of e.g.,
472         "Entering gnulib" output.
473         "cd" into $(srcdir) before running git submodule.
474
475 2011-01-20  Bruno Haible  <bruno@clisp.org>
476
477         include_next: Fix bug introduced on 2011-01-18.
478         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
479         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
480         ac_cv_header_... variable if the second argument is not 'check'.
481         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
482         gl_NEXT_HEADERS_INTERNAL.
483
484 2011-01-20  Bruno Haible  <bruno@clisp.org>
485
486         Allow the user to avoid the GNULIB_TEST_* macros.
487         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
488         Suggested by Paul Eggert.
489
490 2011-01-14  Jim Meyering  <meyering@redhat.com>
491
492         bootstrap: avoid failure when there is no .gitmodules file
493         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
494         has been assigned to, even when its value is the empty string.
495         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
496         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
497         Reported by John W. Eaton <jwe@gnu.org>.
498
499 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
500
501         assume <ctype.h>, ..., <time.h> exist
502         For years gnulib has been assuming the existence of the headers
503         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
504         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
505         them, since they don't appear to be needed.
506         * README (Portability guidelines): Document this.
507         * lib/flock.c: Assume <fcntl.h> exists.
508         * lib/regex_internal.h: Assume <locale.h> exists.
509         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
510         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
511         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
512         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
513         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
514         * m4/regex.m4 (gl_REGEX): Likewise.
515         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
516         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
517         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
518         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
519         * tests/test-argp.c: Likewise.
520         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
521
522         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
523         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
524         AA_APPLE_UNIVERSAL_BUILD.  See
525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
526         * NEWS: Document this.
527
528 2011-01-19  Eric Blake  <eblake@redhat.com>
529
530         c-stack: assume stack overflow if SA_SIGINFO unsupported
531         * lib/c-stack.c (SIGACTION_WORKS): Rename...
532         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
533         sigaction will work.
534         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
535         behavior match Linux.
536         * tests/test-c-stack.c (main): Prefer NULL for pointers.
537
538         stdbool-tests: accomodate Haiku
539         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
540
541         binary-io: fix O_TEXT on Haiku
542         * modules/binary-io (Depends-on): Add fcntl-h.
543         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
544         than blindly undefining O_TEXT.
545         Reported by Scott McCreary.
546
547 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
548
549         include_next: do not check for standard headers like stddef.h
550
551         I found this problem when modifying Emacs to use gnulib.
552         I noticed that it added HAVE_STDDEF_H to config.h, even though
553         gnulib always assumes <stddef.h> exists as per README and this
554         symbol is unnecessary.
555         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
556         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
557         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
558         faster for headers like stddef.h that are known to exist.
559         (gl_CHECK_NEXT_HEADERS): Use it.
560         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
561         rather than gl_CHECK_NEXT_HEADERS.
562         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
563         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
564
565 2011-01-18  Eric Blake  <eblake@redhat.com>
566
567         ansi-c++-opt: skip C++ dependency style if C++ is unused
568         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
569         tests when we know C++ compilation is not desired.
570         Reported by Scott McCreary.
571
572 2011-01-18  Bruno Haible  <bruno@clisp.org>
573
574         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
575         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
576         (main): Perform test also when getrlimit and setrlimit don't exist or
577         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
578         limiting the address space size using setrlimit, compare the address
579         space size before and after the the test.
580         * tests/test-dprintf-posix2.c: Likewise.
581         * tests/test-fprintf-posix3.sh: Update skip messages.
582         * tests/test-dprintf-posix2.sh: Likewise.
583         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
584         * modules/dprintf-posix-tests (Depends-on): Likewise.
585         Reported by Bruce Korb <bkorb@gnu.org> and
586         Gary V. Vaughan <gary@gnu.org>.
587
588 2011-01-18  Bruno Haible  <bruno@clisp.org>
589
590         get-rusage-as: Improvement for Cygwin.
591         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
592         areas that are merely reserved.
593
594 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
595
596         strftime: remove dependencies on multibyte modules
597
598         strftime depended on mbrlen, mbsinit, and wchar, but these modules
599         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
600         only if __osf__ is defined, and I suspect OSF doesn't need these
601         other modules.  If my guess is wrong, we'll need to come up with a
602         variant of strftime that doesn't need the multibyte modules.
603
604         I discovered this problem when attempting modify Emacs to use the
605         strftime module.  With the previous gnulib, this caused Emacs to
606         need 31 new files, ranging from lib/config.charset to
607         m4/wint_t.m4.  This was overkill and I expect would be offputting
608         to the Emacs maintainers.  After this change, only 6 new files are
609         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
610         stdbool.m4, and tm_gmtoff.m4.
611
612         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
613         Suggested by Bruno Haible in
614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
615         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
616         and do not check for wchar.h.
617         * modules/strftime (Files): Remove m4/mbstate_t.m4.
618         (Depends-on): Remove mbrlen, mbsinit, wchar.
619
620 2011-01-18  Bruno Haible  <bruno@clisp.org>
621
622         Tests for module 'get-rusage-as'.
623         * modules/get-rusage-as-tests: New file.
624         * tests/test-get-rusage-as.c: New file.
625
626         New module 'get-rusage-as'.
627         * modules/get-rusage-as: New file.
628         * lib/resource-ext.h: New file.
629         * lib/get-rusage-as.c: New file.
630
631 2011-01-17  Eric Blake  <eblake@redhat.com>
632
633         sigaction: relax license from LGPLv3+ to LGPLv2+
634         * modules/sigaction (License): Relax to LGPLv2+.
635
636 2011-01-14  Bruno Haible  <bruno@clisp.org>
637
638         filemode: Make function declarations usable in C++ mode.
639         * lib/filemode.h: Enclose function declarations in extern "C" block.
640         Reported by John W. Eaton <jwe@gnu.org>.
641
642 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
643
644         save-cwd: no longer include "xgetcwd.h"
645         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
646         This avoids a compilation failure in projects that use save-cwd
647         without also using the xgetcwd module.
648
649 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
650
651         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
652         This is so that a program like Emacs, which needs only dtoastr,
653         does not have to bother with distributing and compiling ftoastr
654         and ldtoastr.
655         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
656         * modules/dtoastr, modules/ldtoastr: New files.
657         * modules/ftoastr: Now works just for 'float'.
658         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
659         (Makefile.am): Remove ftoastr.h (not needed and no effect),
660         dtoastr.c, ldtoastr.c.
661
662 2011-01-11  Jim Meyering  <meyering@redhat.com>
663
664         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
665         There is no need to work around the lack of the fchdir function,
666         since gnulib can now provide a replacement when required.
667         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
668         * modules/save-cwd (Depends-on): Add fchdir.
669
670 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
671
672         openat, save-cwd: avoid xmalloc
673
674         This removes a direct (but undocumented) dependency of openat on
675         xalloc, along with an indirect dependency via save-cwd.  It also
676         removes a dependency of save-cwd on xgetcwd, and thereby
677         indirectly on xalloc.  This change causes the openat substitute
678         to fall back on save_cwd when memory is tight, and for save_cwd to
679         fail instead of dying when memory is tight, but that's good enough.
680
681         * lib/openat-proc.c: Include stdlib.h (for malloc), not
682         xalloc.h (for xmalloc).
683         (openat_proc_name): Use malloc, not xmalloc.
684         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
685         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
686
687         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
688         This avoids heap allocation for file names whose lengths are in
689         the range 512..1023, with the upper bound increasing to at most
690         4031 depending on the platform's PATH_MAX.  (We do not want
691         pathmax.h here as it might supply a non-constant PATH_MAX.)
692         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
693         Perhaps they should be moved to malloca.h?
694         (OPENAT_BUFFER_SIZE): Use them.
695
696 2011-01-10  Bruno Haible  <bruno@clisp.org>
697
698         doc: Update users.txt.
699         * users.txt: Add recutils.
700
701 2011-01-09  Karl Berry  <karl@gnu.org>
702
703         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
704
705         * doc/configmake.texi: New file.
706         * doc/gnulib.texi: Include it.
707         * modules/configmake: Move documentation from here.
708
709 2011-01-09  Bruno Haible  <bruno@clisp.org>
710
711         Update to Unicode 6.0.0.
712         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
713         (get_lbp): Update for Unicode 6.0.0.
714         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
715         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
716         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
717         U+11001, U+11038..U+11046. Remove U+06DE.
718         (uc_width): Fix bounds of planes.
719         * tests/uniwidth/test-uc_width2.sh: Same updates as in
720         lib/uniwidth/width.c.
721         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
722         trailing whitespace removed.
723         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
724         without comments, but with the original copyright notice.
725         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
726         * lib/unicase/ignorable.h: Likewise.
727         * lib/unicase/tocasefold.h: Likewise.
728         * lib/unicase/tolower.h: Likewise.
729         * lib/unicase/totitle.h: Likewise.
730         * lib/unicase/toupper.h: Likewise.
731         * lib/unictype/bidi_of.h: Likewise.
732         * lib/unictype/blocks.h: Likewise.
733         * lib/unictype/categ_C.h: Likewise.
734         * lib/unictype/categ_Cn.h: Likewise.
735         * lib/unictype/categ_L.h: Likewise.
736         * lib/unictype/categ_Ll.h: Likewise.
737         * lib/unictype/categ_Lm.h: Likewise.
738         * lib/unictype/categ_Lo.h: Likewise.
739         * lib/unictype/categ_Lu.h: Likewise.
740         * lib/unictype/categ_M.h: Likewise.
741         * lib/unictype/categ_Mc.h: Likewise.
742         * lib/unictype/categ_Me.h: Likewise.
743         * lib/unictype/categ_Mn.h: Likewise.
744         * lib/unictype/categ_N.h: Likewise.
745         * lib/unictype/categ_Nd.h: Likewise.
746         * lib/unictype/categ_No.h: Likewise.
747         * lib/unictype/categ_P.h: Likewise.
748         * lib/unictype/categ_Po.h: Likewise.
749         * lib/unictype/categ_S.h: Likewise.
750         * lib/unictype/categ_Sc.h: Likewise.
751         * lib/unictype/categ_Sk.h: Likewise.
752         * lib/unictype/categ_Sm.h: Likewise.
753         * lib/unictype/categ_So.h: Likewise.
754         * lib/unictype/categ_of.h: Likewise.
755         * lib/unictype/combining.h: Likewise.
756         * lib/unictype/ctype_alnum.h: Likewise.
757         * lib/unictype/ctype_alpha.h: Likewise.
758         * lib/unictype/ctype_graph.h: Likewise.
759         * lib/unictype/ctype_lower.h: Likewise.
760         * lib/unictype/ctype_print.h: Likewise.
761         * lib/unictype/ctype_punct.h: Likewise.
762         * lib/unictype/ctype_upper.h: Likewise.
763         * lib/unictype/decdigit.h: Likewise.
764         * lib/unictype/digit.h: Likewise.
765         * lib/unictype/numeric.h: Likewise.
766         * lib/unictype/pr_alphabetic.h: Likewise.
767         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
768         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
769         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
770         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
771         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
772         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
773         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
774         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
775         * lib/unictype/pr_case_ignorable.h: Likewise.
776         * lib/unictype/pr_cased.h: Likewise.
777         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
778         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
779         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
780         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
781         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
782         * lib/unictype/pr_combining.h: Likewise.
783         * lib/unictype/pr_composite.h: Likewise.
784         * lib/unictype/pr_currency_symbol.h: Likewise.
785         * lib/unictype/pr_decimal_digit.h: Likewise.
786         * lib/unictype/pr_deprecated.h: Likewise.
787         * lib/unictype/pr_format_control.h: Likewise.
788         * lib/unictype/pr_grapheme_base.h: Likewise.
789         * lib/unictype/pr_grapheme_extend.h: Likewise.
790         * lib/unictype/pr_grapheme_link.h: Likewise.
791         * lib/unictype/pr_id_continue.h: Likewise.
792         * lib/unictype/pr_id_start.h: Likewise.
793         * lib/unictype/pr_ideographic.h: Likewise.
794         * lib/unictype/pr_lowercase.h: Likewise.
795         * lib/unictype/pr_math.h: Likewise.
796         * lib/unictype/pr_numeric.h: Likewise.
797         * lib/unictype/pr_other_alphabetic.h: Likewise.
798         * lib/unictype/pr_other_id_continue.h: Likewise.
799         * lib/unictype/pr_other_math.h: Likewise.
800         * lib/unictype/pr_punctuation.h: Likewise.
801         * lib/unictype/pr_sentence_terminal.h: Likewise.
802         * lib/unictype/pr_terminal_punctuation.h: Likewise.
803         * lib/unictype/pr_unassigned_code_value.h: Likewise.
804         * lib/unictype/pr_unified_ideograph.h: Likewise.
805         * lib/unictype/pr_uppercase.h: Likewise.
806         * lib/unictype/pr_xid_continue.h: Likewise.
807         * lib/unictype/pr_xid_start.h: Likewise.
808         * lib/unictype/scripts.h: Likewise.
809         * lib/unictype/scripts_byname.gperf: Likewise.
810         * lib/unictype/sy_java_ident.h: Likewise.
811         * lib/unigbrk/gbrkprop.h: Likewise.
812         * lib/unilbrk/lbrkprop1.h: Likewise.
813         * lib/unilbrk/lbrkprop2.h: Likewise.
814         * lib/uninorm/decomposition-table2.h: Likewise.
815         * lib/uniwbrk/wbrkprop.h: Likewise.
816         * tests/unicase/test-cased.c: Likewise.
817         * tests/unicase/test-ignorable.c: Likewise.
818         * tests/unicase/test-uc_tolower.c: Likewise.
819         * tests/unicase/test-uc_totitle.c: Likewise.
820         * tests/unicase/test-uc_toupper.c: Likewise.
821         * tests/unictype/test-categ_C.c: Likewise.
822         * tests/unictype/test-categ_Cn.c: Likewise.
823         * tests/unictype/test-categ_L.c: Likewise.
824         * tests/unictype/test-categ_Ll.c: Likewise.
825         * tests/unictype/test-categ_Lm.c: Likewise.
826         * tests/unictype/test-categ_Lo.c: Likewise.
827         * tests/unictype/test-categ_Lu.c: Likewise.
828         * tests/unictype/test-categ_M.c: Likewise.
829         * tests/unictype/test-categ_Mc.c: Likewise.
830         * tests/unictype/test-categ_Me.c: Likewise.
831         * tests/unictype/test-categ_Mn.c: Likewise.
832         * tests/unictype/test-categ_N.c: Likewise.
833         * tests/unictype/test-categ_Nd.c: Likewise.
834         * tests/unictype/test-categ_No.c: Likewise.
835         * tests/unictype/test-categ_P.c: Likewise.
836         * tests/unictype/test-categ_Po.c: Likewise.
837         * tests/unictype/test-categ_S.c: Likewise.
838         * tests/unictype/test-categ_Sc.c: Likewise.
839         * tests/unictype/test-categ_Sk.c: Likewise.
840         * tests/unictype/test-categ_Sm.c: Likewise.
841         * tests/unictype/test-categ_So.c: Likewise.
842         * tests/unictype/test-ctype_alnum.c: Likewise.
843         * tests/unictype/test-ctype_alpha.c: Likewise.
844         * tests/unictype/test-ctype_graph.c: Likewise.
845         * tests/unictype/test-ctype_lower.c: Likewise.
846         * tests/unictype/test-ctype_print.c: Likewise.
847         * tests/unictype/test-ctype_punct.c: Likewise.
848         * tests/unictype/test-ctype_upper.c: Likewise.
849         * tests/unictype/test-decdigit.h: Likewise.
850         * tests/unictype/test-digit.h: Likewise.
851         * tests/unictype/test-numeric.h: Likewise.
852         * tests/unictype/test-pr_alphabetic.c: Likewise.
853         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
854         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
855         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
856         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
857         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
858         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
859         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
860         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
861         * tests/unictype/test-pr_case_ignorable.c: Likewise.
862         * tests/unictype/test-pr_cased.c: Likewise.
863         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
864         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
865         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
866         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
867         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
868         * tests/unictype/test-pr_combining.c: Likewise.
869         * tests/unictype/test-pr_composite.c: Likewise.
870         * tests/unictype/test-pr_currency_symbol.c: Likewise.
871         * tests/unictype/test-pr_decimal_digit.c: Likewise.
872         * tests/unictype/test-pr_deprecated.c: Likewise.
873         * tests/unictype/test-pr_format_control.c: Likewise.
874         * tests/unictype/test-pr_grapheme_base.c: Likewise.
875         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
876         * tests/unictype/test-pr_grapheme_link.c: Likewise.
877         * tests/unictype/test-pr_id_continue.c: Likewise.
878         * tests/unictype/test-pr_id_start.c: Likewise.
879         * tests/unictype/test-pr_ideographic.c: Likewise.
880         * tests/unictype/test-pr_lowercase.c: Likewise.
881         * tests/unictype/test-pr_math.c: Likewise.
882         * tests/unictype/test-pr_numeric.c: Likewise.
883         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
884         * tests/unictype/test-pr_other_id_continue.c: Likewise.
885         * tests/unictype/test-pr_other_math.c: Likewise.
886         * tests/unictype/test-pr_punctuation.c: Likewise.
887         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
888         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
889         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
890         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
891         * tests/unictype/test-pr_uppercase.c: Likewise.
892         * tests/unictype/test-pr_xid_continue.c: Likewise.
893         * tests/unictype/test-pr_xid_start.c: Likewise.
894         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
895         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
896         changes.
897         * lib/unictype/categ_Cc.h: Likewise.
898         * lib/unictype/categ_Cf.h: Likewise.
899         * lib/unictype/categ_Co.h: Likewise.
900         * lib/unictype/categ_Cs.h: Likewise.
901         * lib/unictype/categ_Lt.h: Likewise.
902         * lib/unictype/categ_Nl.h: Likewise.
903         * lib/unictype/categ_Pc.h: Likewise.
904         * lib/unictype/categ_Pd.h: Likewise.
905         * lib/unictype/categ_Pe.h: Likewise.
906         * lib/unictype/categ_Pf.h: Likewise.
907         * lib/unictype/categ_Pi.h: Likewise.
908         * lib/unictype/categ_Ps.h: Likewise.
909         * lib/unictype/categ_Z.h: Likewise.
910         * lib/unictype/categ_Zl.h: Likewise.
911         * lib/unictype/categ_Zp.h: Likewise.
912         * lib/unictype/categ_Zs.h: Likewise.
913         * lib/unictype/ctype_blank.h: Likewise.
914         * lib/unictype/ctype_cntrl.h: Likewise.
915         * lib/unictype/ctype_digit.h: Likewise.
916         * lib/unictype/ctype_space.h: Likewise.
917         * lib/unictype/ctype_xdigit.h: Likewise.
918         * lib/unictype/mirror.h: Likewise.
919         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
920         * lib/unictype/pr_bidi_block_separator.h: Likewise.
921         * lib/unictype/pr_bidi_common_separator.h: Likewise.
922         * lib/unictype/pr_bidi_control.h: Likewise.
923         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
924         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
925         * lib/unictype/pr_bidi_european_digit.h: Likewise.
926         * lib/unictype/pr_bidi_pdf.h: Likewise.
927         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
928         * lib/unictype/pr_bidi_whitespace.h: Likewise.
929         * lib/unictype/pr_dash.h: Likewise.
930         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
931         * lib/unictype/pr_diacritic.h: Likewise.
932         * lib/unictype/pr_extender.h: Likewise.
933         * lib/unictype/pr_hex_digit.h: Likewise.
934         * lib/unictype/pr_hyphen.h: Likewise.
935         * lib/unictype/pr_ids_binary_operator.h: Likewise.
936         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
937         * lib/unictype/pr_ignorable_control.h: Likewise.
938         * lib/unictype/pr_iso_control.h: Likewise.
939         * lib/unictype/pr_join_control.h: Likewise.
940         * lib/unictype/pr_left_of_pair.h: Likewise.
941         * lib/unictype/pr_line_separator.h: Likewise.
942         * lib/unictype/pr_logical_order_exception.h: Likewise.
943         * lib/unictype/pr_non_break.h: Likewise.
944         * lib/unictype/pr_not_a_character.h: Likewise.
945         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
946         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
947         * lib/unictype/pr_other_id_start.h: Likewise.
948         * lib/unictype/pr_other_lowercase.h: Likewise.
949         * lib/unictype/pr_other_uppercase.h: Likewise.
950         * lib/unictype/pr_paired_punctuation.h: Likewise.
951         * lib/unictype/pr_paragraph_separator.h: Likewise.
952         * lib/unictype/pr_pattern_syntax.h: Likewise.
953         * lib/unictype/pr_pattern_white_space.h: Likewise.
954         * lib/unictype/pr_private_use.h: Likewise.
955         * lib/unictype/pr_quotation_mark.h: Likewise.
956         * lib/unictype/pr_radical.h: Likewise.
957         * lib/unictype/pr_soft_dotted.h: Likewise.
958         * lib/unictype/pr_space.h: Likewise.
959         * lib/unictype/pr_titlecase.h: Likewise.
960         * lib/unictype/pr_variation_selector.h: Likewise.
961         * lib/unictype/pr_white_space.h: Likewise.
962         * lib/unictype/pr_zero_width.h: Likewise.
963         * lib/unictype/sy_c_ident.h: Likewise.
964         * lib/unictype/sy_c_whitespace.h: Likewise.
965         * lib/unictype/sy_java_whitespace.h: Likewise.
966         * lib/uninorm/composition-table.gperf: Likewise.
967         * lib/uninorm/decomposition-table1.h: Likewise.
968         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
969         LB8.
970         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
971         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
972         * modules/unictype/*: Bump version number of expected libunistring
973         version.
974
975 2011-01-09  Bruno Haible  <bruno@clisp.org>
976
977         Update to Unicode 5.2.0.
978         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
979         trailing whitespace removed.
980
981 2011-01-09  Bruno Haible  <bruno@clisp.org>
982
983         New Unicode character properties, from Unicode 5.2.0.
984         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
985         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
986         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
987         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
988         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
989         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
990         uc_is_property_cased, uc_is_property_case_ignorable,
991         uc_is_property_changes_when_lowercased,
992         uc_is_property_changes_when_uppercased,
993         uc_is_property_changes_when_titlecased,
994         uc_is_property_changes_when_casefolded,
995         uc_is_property_changes_when_casemapped): New declarations.
996         * lib/unictype/pr_byname.gperf: Add the new properties.
997         * modules/unictype/property-byname (Depends-on): Depend on the new
998         properties modules.
999         * modules/unictype/property-all (Depends-on): Likewise.
1000         * MODULES.html.sh (Unicode string functions): Add
1001         unictype/property-case-ignorable, unictype/property-cased,
1002         unictype/property-changes-when-casefolded,
1003         unictype/property-changes-when-casemapped,
1004         unictype/property-changes-when-lowercased,
1005         unictype/property-changes-when-titlecased,
1006         unictype/property-changes-when-uppercased.
1007
1008         New module 'unictype/property-changes-when-casemapped'.
1009         * modules/unictype/property-changes-when-casemapped: New file.
1010         * lib/unictype/pr_changes_when_casemapped.c: New file.
1011         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
1012         generated by gen-uni-tables.
1013         * modules/unictype/property-changes-when-casemapped-tests: New file.
1014         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
1015         automatically generated by gen-uni-tables.
1016
1017         New module 'unictype/property-changes-when-casefolded'.
1018         * modules/unictype/property-changes-when-casefolded: New file.
1019         * lib/unictype/pr_changes_when_casefolded.c: New file.
1020         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
1021         generated by gen-uni-tables.
1022         * modules/unictype/property-changes-when-casefolded-tests: New file.
1023         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1024         automatically generated by gen-uni-tables.
1025
1026         New module 'unictype/property-changes-when-titlecased'.
1027         * modules/unictype/property-changes-when-titlecased: New file.
1028         * lib/unictype/pr_changes_when_titlecased.c: New file.
1029         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
1030         generated by gen-uni-tables.
1031         * modules/unictype/property-changes-when-titlecased-tests: New file.
1032         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
1033         automatically generated by gen-uni-tables.
1034
1035         New module 'unictype/property-changes-when-uppercased'.
1036         * modules/unictype/property-changes-when-uppercased: New file.
1037         * lib/unictype/pr_changes_when_uppercased.c: New file.
1038         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
1039         generated by gen-uni-tables.
1040         * modules/unictype/property-changes-when-uppercased-tests: New file.
1041         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
1042         automatically generated by gen-uni-tables.
1043
1044         New module 'unictype/property-changes-when-lowercased'.
1045         * modules/unictype/property-changes-when-lowercased: New file.
1046         * lib/unictype/pr_changes_when_lowercased.c: New file.
1047         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
1048         generated by gen-uni-tables.
1049         * modules/unictype/property-changes-when-lowercased-tests: New file.
1050         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
1051         automatically generated by gen-uni-tables.
1052
1053         New module 'unictype/property-case-ignorable'.
1054         * modules/unictype/property-case-ignorable: New file.
1055         * lib/unictype/pr_case_ignorable.c: New file.
1056         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
1057         by gen-uni-tables.
1058         * modules/unictype/property-case-ignorable-tests: New file.
1059         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
1060         generated by gen-uni-tables.
1061
1062         New module 'unictype/property-cased'.
1063         * modules/unictype/property-cased: New file.
1064         * lib/unictype/pr_cased.c: New file.
1065         * lib/unictype/pr_cased.h: New file, automatically generated by
1066         gen-uni-tables.
1067         * modules/unictype/property-cased-tests: New file.
1068         * tests/unictype/test-pr_cased.c: New file, automatically generated by
1069         gen-uni-tables.
1070
1071 2011-01-09  Bruno Haible  <bruno@clisp.org>
1072
1073         Update to Unicode 5.2.0.
1074         * lib/gen-uni-tables.c (output_predicate, output_category,
1075         output_combclass, output_bidi_category, output_decimal_digit_test,
1076         output_decimal_digit, output_digit_test, output_digit,
1077         output_numeric_test, output_numeric, output_mirror, output_scripts,
1078         output_scripts_byname, output_blocks, output_ident_category): Fix
1079         comment header.
1080         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1081         get_wbp.
1082         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1083         items.
1084         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1085         Changes_When_Lowercased, Changes_When_Uppercased,
1086         Changes_When_Titlecased, Changes_When_Casefolded,
1087         Changes_When_Casemapped.
1088         (is_property_alphabetic, is_property_default_ignorable_code_point):
1089         Update for Unicode 5.2.0.
1090         (is_property_cased, is_property_case_ignorable,
1091         is_property_changes_when_lowercased,
1092         is_property_changes_when_uppercased,
1093         is_property_changes_when_titlecased,
1094         is_property_changes_when_casefolded,
1095         is_property_changes_when_casemapped): New functions.
1096         (output_properties): Output also the properties cased, case_ignorable,
1097         changes_when_lowercased, changes_when_uppercased,
1098         changes_when_titlecased, changes_when_casefolded,
1099         changes_when_casemapped.
1100         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1101         Unicode TR#11 revision 17 -> 19.
1102         (LBP_CP): New enumeration value.
1103         (LBP_*): Adjust values accordingly.
1104         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1105         TR#14 revision 22 -> 24.
1106         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1107         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1108         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1109         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1110         is_WBP_MIDLETTER.
1111         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1112         the code1 and code2 of each composition rule.
1113         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1114         * lib/unicase/ignorable.h: Likewise.
1115         * lib/unicase/tocasefold.h: Likewise.
1116         * lib/unicase/tolower.h: Likewise.
1117         * lib/unicase/totitle.h: Likewise.
1118         * lib/unicase/toupper.h: Likewise.
1119         * lib/unictype/bidi_of.h: Likewise.
1120         * lib/unictype/blocks.h: Likewise.
1121         * lib/unictype/categ_C.h: Likewise.
1122         * lib/unictype/categ_Cf.h: Likewise.
1123         * lib/unictype/categ_Cn.h: Likewise.
1124         * lib/unictype/categ_L.h: Likewise.
1125         * lib/unictype/categ_Ll.h: Likewise.
1126         * lib/unictype/categ_Lm.h: Likewise.
1127         * lib/unictype/categ_Lo.h: Likewise.
1128         * lib/unictype/categ_Lu.h: Likewise.
1129         * lib/unictype/categ_M.h: Likewise.
1130         * lib/unictype/categ_Mc.h: Likewise.
1131         * lib/unictype/categ_Mn.h: Likewise.
1132         * lib/unictype/categ_N.h: Likewise.
1133         * lib/unictype/categ_Nd.h: Likewise.
1134         * lib/unictype/categ_Nl.h: Likewise.
1135         * lib/unictype/categ_No.h: Likewise.
1136         * lib/unictype/categ_P.h: Likewise.
1137         * lib/unictype/categ_Pd.h: Likewise.
1138         * lib/unictype/categ_Po.h: Likewise.
1139         * lib/unictype/categ_S.h: Likewise.
1140         * lib/unictype/categ_Sc.h: Likewise.
1141         * lib/unictype/categ_So.h: Likewise.
1142         * lib/unictype/categ_of.h: Likewise.
1143         * lib/unictype/combining.h: Likewise.
1144         * lib/unictype/ctype_alnum.h: Likewise.
1145         * lib/unictype/ctype_alpha.h: Likewise.
1146         * lib/unictype/ctype_graph.h: Likewise.
1147         * lib/unictype/ctype_lower.h: Likewise.
1148         * lib/unictype/ctype_print.h: Likewise.
1149         * lib/unictype/ctype_punct.h: Likewise.
1150         * lib/unictype/ctype_upper.h: Likewise.
1151         * lib/unictype/decdigit.h: Likewise.
1152         * lib/unictype/digit.h: Likewise.
1153         * lib/unictype/numeric.h: Likewise.
1154         * lib/unictype/pr_alphabetic.h: Likewise.
1155         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1156         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1157         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1158         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1159         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1160         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1161         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1162         * lib/unictype/pr_combining.h: Likewise.
1163         * lib/unictype/pr_composite.h: Likewise.
1164         * lib/unictype/pr_currency_symbol.h: Likewise.
1165         * lib/unictype/pr_dash.h: Likewise.
1166         * lib/unictype/pr_decimal_digit.h: Likewise.
1167         * lib/unictype/pr_deprecated.h: Likewise.
1168         * lib/unictype/pr_diacritic.h: Likewise.
1169         * lib/unictype/pr_extender.h: Likewise.
1170         * lib/unictype/pr_grapheme_base.h: Likewise.
1171         * lib/unictype/pr_grapheme_extend.h: Likewise.
1172         * lib/unictype/pr_grapheme_link.h: Likewise.
1173         * lib/unictype/pr_id_continue.h: Likewise.
1174         * lib/unictype/pr_id_start.h: Likewise.
1175         * lib/unictype/pr_ideographic.h: Likewise.
1176         * lib/unictype/pr_ignorable_control.h: Likewise.
1177         * lib/unictype/pr_logical_order_exception.h: Likewise.
1178         * lib/unictype/pr_lowercase.h: Likewise.
1179         * lib/unictype/pr_numeric.h: Likewise.
1180         * lib/unictype/pr_other_alphabetic.h: Likewise.
1181         * lib/unictype/pr_punctuation.h: Likewise.
1182         * lib/unictype/pr_sentence_terminal.h: Likewise.
1183         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1184         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1185         * lib/unictype/pr_unified_ideograph.h: Likewise.
1186         * lib/unictype/pr_uppercase.h: Likewise.
1187         * lib/unictype/pr_xid_continue.h: Likewise.
1188         * lib/unictype/pr_xid_start.h: Likewise.
1189         * lib/unictype/pr_zero_width.h: Likewise.
1190         * lib/unictype/scripts.h: Likewise.
1191         * lib/unictype/scripts_byname.gperf: Likewise.
1192         * lib/unictype/sy_java_ident.h: Likewise.
1193         * lib/unigbrk/gbrkprop.h: Likewise.
1194         * lib/unilbrk/lbrkprop1.h: Likewise.
1195         * lib/unilbrk/lbrkprop2.h: Likewise.
1196         * lib/unilbrk/lbrktables.h: Likewise.
1197         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
1198         LBP_CP. Implement rule LB30.
1199         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
1200         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
1201         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
1202         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
1203         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
1204         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
1205         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
1206         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
1207         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
1208         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
1209         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
1210         bits instead of 16 bits in the code1 and code2 of each composition
1211         rule.
1212         (uc_composition): Update for Unicode 5.2.0.
1213         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
1214         * lib/uninorm/decomposition-table2.h: Likewise.
1215         * lib/uniwbrk/wbrkprop.h: Likewise.
1216         * tests/unicase/test-cased.c: Likewise.
1217         * tests/unicase/test-ignorable.c: Likewise.
1218         * tests/unicase/test-uc_tolower.c: Likewise.
1219         * tests/unicase/test-uc_totitle.c: Likewise.
1220         * tests/unicase/test-uc_toupper.c: Likewise.
1221         * tests/unictype/test-categ_C.c: Likewise.
1222         * tests/unictype/test-categ_Cf.c: Likewise.
1223         * tests/unictype/test-categ_Cn.c: Likewise.
1224         * tests/unictype/test-categ_L.c: Likewise.
1225         * tests/unictype/test-categ_Ll.c: Likewise.
1226         * tests/unictype/test-categ_Lm.c: Likewise.
1227         * tests/unictype/test-categ_Lo.c: Likewise.
1228         * tests/unictype/test-categ_Lu.c: Likewise.
1229         * tests/unictype/test-categ_M.c: Likewise.
1230         * tests/unictype/test-categ_Mc.c: Likewise.
1231         * tests/unictype/test-categ_Mn.c: Likewise.
1232         * tests/unictype/test-categ_N.c: Likewise.
1233         * tests/unictype/test-categ_Nd.c: Likewise.
1234         * tests/unictype/test-categ_Nl.c: Likewise.
1235         * tests/unictype/test-categ_No.c: Likewise.
1236         * tests/unictype/test-categ_P.c: Likewise.
1237         * tests/unictype/test-categ_Pd.c: Likewise.
1238         * tests/unictype/test-categ_Po.c: Likewise.
1239         * tests/unictype/test-categ_S.c: Likewise.
1240         * tests/unictype/test-categ_Sc.c: Likewise.
1241         * tests/unictype/test-categ_So.c: Likewise.
1242         * tests/unictype/test-ctype_alnum.c: Likewise.
1243         * tests/unictype/test-ctype_alpha.c: Likewise.
1244         * tests/unictype/test-ctype_graph.c: Likewise.
1245         * tests/unictype/test-ctype_lower.c: Likewise.
1246         * tests/unictype/test-ctype_print.c: Likewise.
1247         * tests/unictype/test-ctype_punct.c: Likewise.
1248         * tests/unictype/test-ctype_upper.c: Likewise.
1249         * tests/unictype/test-decdigit.h: Likewise.
1250         * tests/unictype/test-digit.h: Likewise.
1251         * tests/unictype/test-numeric.h: Likewise.
1252         * tests/unictype/test-pr_alphabetic.c: Likewise.
1253         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1254         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1255         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1256         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1257         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1258         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1259         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1260         * tests/unictype/test-pr_combining.c: Likewise.
1261         * tests/unictype/test-pr_composite.c: Likewise.
1262         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1263         * tests/unictype/test-pr_dash.c: Likewise.
1264         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1265         * tests/unictype/test-pr_deprecated.c: Likewise.
1266         * tests/unictype/test-pr_diacritic.c: Likewise.
1267         * tests/unictype/test-pr_extender.c: Likewise.
1268         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1269         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1270         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1271         * tests/unictype/test-pr_id_continue.c: Likewise.
1272         * tests/unictype/test-pr_id_start.c: Likewise.
1273         * tests/unictype/test-pr_ideographic.c: Likewise.
1274         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1275         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1276         * tests/unictype/test-pr_lowercase.c: Likewise.
1277         * tests/unictype/test-pr_numeric.c: Likewise.
1278         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1279         * tests/unictype/test-pr_punctuation.c: Likewise.
1280         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1281         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1282         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1283         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1284         * tests/unictype/test-pr_uppercase.c: Likewise.
1285         * tests/unictype/test-pr_xid_continue.c: Likewise.
1286         * tests/unictype/test-pr_xid_start.c: Likewise.
1287         * tests/unictype/test-pr_zero_width.c: Likewise.
1288         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1289         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1290         changed behaviour: line breaking is now disallowed between a letter
1291         or '=' and '('.
1292         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1293         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1294         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1295         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1296         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1297         lib/uniwidth/width.c.
1298         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1299         without comments, but with the original copyright notice.
1300         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1301         changes.
1302         * lib/unictype/categ_Cc.h: Likewise.
1303         * lib/unictype/categ_Co.h: Likewise.
1304         * lib/unictype/categ_Cs.h: Likewise.
1305         * lib/unictype/categ_Lt.h: Likewise.
1306         * lib/unictype/categ_Me.h: Likewise.
1307         * lib/unictype/categ_Pc.h: Likewise.
1308         * lib/unictype/categ_Pe.h: Likewise.
1309         * lib/unictype/categ_Pf.h: Likewise.
1310         * lib/unictype/categ_Pi.h: Likewise.
1311         * lib/unictype/categ_Ps.h: Likewise.
1312         * lib/unictype/categ_Sk.h: Likewise.
1313         * lib/unictype/categ_Sm.h: Likewise.
1314         * lib/unictype/categ_Z.h: Likewise.
1315         * lib/unictype/categ_Zl.h: Likewise.
1316         * lib/unictype/categ_Zp.h: Likewise.
1317         * lib/unictype/categ_Zs.h: Likewise.
1318         * lib/unictype/ctype_blank.h: Likewise.
1319         * lib/unictype/ctype_cntrl.h: Likewise.
1320         * lib/unictype/ctype_digit.h: Likewise.
1321         * lib/unictype/ctype_space.h: Likewise.
1322         * lib/unictype/ctype_xdigit.h: Likewise.
1323         * lib/unictype/mirror.h: Likewise.
1324         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1325         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1326         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1327         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1328         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1329         * lib/unictype/pr_bidi_control.h: Likewise.
1330         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1331         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1332         * lib/unictype/pr_bidi_pdf.h: Likewise.
1333         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1334         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1335         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1336         * lib/unictype/pr_format_control.h: Likewise.
1337         * lib/unictype/pr_hex_digit.h: Likewise.
1338         * lib/unictype/pr_hyphen.h: Likewise.
1339         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1340         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1341         * lib/unictype/pr_iso_control.h: Likewise.
1342         * lib/unictype/pr_join_control.h: Likewise.
1343         * lib/unictype/pr_left_of_pair.h: Likewise.
1344         * lib/unictype/pr_line_separator.h: Likewise.
1345         * lib/unictype/pr_math.h: Likewise.
1346         * lib/unictype/pr_non_break.h: Likewise.
1347         * lib/unictype/pr_not_a_character.h: Likewise.
1348         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1349         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1350         * lib/unictype/pr_other_id_continue.h: Likewise.
1351         * lib/unictype/pr_other_id_start.h: Likewise.
1352         * lib/unictype/pr_other_lowercase.h: Likewise.
1353         * lib/unictype/pr_other_math.h: Likewise.
1354         * lib/unictype/pr_other_uppercase.h: Likewise.
1355         * lib/unictype/pr_paired_punctuation.h: Likewise.
1356         * lib/unictype/pr_paragraph_separator.h: Likewise.
1357         * lib/unictype/pr_pattern_syntax.h: Likewise.
1358         * lib/unictype/pr_pattern_white_space.h: Likewise.
1359         * lib/unictype/pr_private_use.h: Likewise.
1360         * lib/unictype/pr_quotation_mark.h: Likewise.
1361         * lib/unictype/pr_radical.h: Likewise.
1362         * lib/unictype/pr_soft_dotted.h: Likewise.
1363         * lib/unictype/pr_space.h: Likewise.
1364         * lib/unictype/pr_titlecase.h: Likewise.
1365         * lib/unictype/pr_variation_selector.h: Likewise.
1366         * lib/unictype/pr_white_space.h: Likewise.
1367         * lib/unictype/sy_c_ident.h: Likewise.
1368         * lib/unictype/sy_c_whitespace.h: Likewise.
1369         * lib/unictype/sy_java_whitespace.h: Likewise.
1370         * modules/uni*/*: Bump version number of expected libunistring version.
1371         Reported by Simon Josefsson.
1372
1373 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1374
1375         useless-if-before-free: fix typo in --help and make the internal,
1376         automatic version date update process work once again.
1377         --help output contained a NUL character instead of the
1378         backslash-zero that was intended.  Also, the "must lie within
1379         the first 8 lines" line is on line 9, and hence not getting
1380         automatically updated.
1381         * build-aux/useless-if-before-free: Fix the former by adding a
1382         backslash, and the latter by condensing the three lines of what-it-does
1383         to a single line, leaving one line of slack for the future.
1384
1385 2011-01-09  Bruno Haible  <bruno@clisp.org>
1386
1387         uniwidth/width: Fix width of U+1D173..U+1D17A.
1388         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1389         symbolic_width, output_width_property_test): New functions.
1390         (main): Invoke output_nonspacing_property, output_width_property_test.
1391         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1392         U+1D173..U+1D17A.
1393         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1394         1.
1395         * modules/uniwidth/*: Bump version number of expected libunistring
1396         version.
1397         * modules/unilbrk/*: Likewise.
1398
1399 2011-01-08  Bruno Haible  <bruno@clisp.org>
1400
1401         uninorm tests: Preserve copyright of Unicode data file.
1402         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1403         Mention modifications.
1404
1405 2011-01-08  Bruno Haible  <bruno@clisp.org>
1406
1407         gen-uni-tables: Prepare for Unicode 5.2.0.
1408         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1409         (debug_output_lbp, output_lbp): Update.
1410
1411 2011-01-08  Bruno Haible  <bruno@clisp.org>
1412
1413         unilbrk: Clarify gen-uni-tables.c code.
1414         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1415         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1416         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1417
1418 2011-01-07  Bruno Haible  <bruno@clisp.org>
1419
1420         strtod: Restore errno when successfully parsing Infinity or NaN.
1421         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1422         restore the original errno.
1423
1424 2011-01-07  Bruno Haible  <bruno@clisp.org>
1425
1426         remove test: Avoid failure on HP-UX 11.
1427         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1428
1429 2011-01-07  Bruno Haible  <bruno@clisp.org>
1430
1431         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1432         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1433         error code.
1434
1435 2011-01-07  Pádraig Brady <P@draigBrady.com>
1436
1437         ignore-value: fixup comments, and add Eric Blake
1438         as an author since he rewrote the macros.
1439         * lib/ignore-value.h (ignore_value):  State that
1440         we now support aggregates.  Also specify exactly
1441         when the GCC warn_unused_result feature was added.
1442
1443 2011-01-06  Eric Blake  <eblake@redhat.com>
1444
1445         ignore-value: support aggregate types
1446         * lib/ignore-value.h (ignore_value): Provide separate gcc
1447         definition.
1448         * modules/ignore-value-tests: New test module.
1449         * tests/test-ignore-value.c: New test.
1450
1451         maint.mk: improve sc_prohibit_strcmp regex
1452         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1453         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1454         definition of STRNEQ.
1455
1456         signal: work around Haiku issue with SIGBUS
1457         * lib/siglist.h: Add comment.
1458         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1459         strsignal's favoring of SIGSEGV.
1460         * tests/test-signal.c (main): Avoid test failure.
1461         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1462         Reported by Scott McCreary.
1463
1464         maint.mk: add pre-release check to ensure submodule commits are public
1465         * top/maint.mk (public-submodule-commit): New rule.
1466         (submodule-checks): New variable.
1467         (alpha beta stable): Depend on the variable.
1468
1469 2011-01-05  Pádraig Brady <P@draigBrady.com>
1470         and Jim Meyering  <meyering@redhat.com>
1471
1472         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1473         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1474         (ATTRIBUTE_DEPRECATED): Define.
1475         (_ignore_case): New function.
1476         (ignore_value): New macro, to replace the old function.
1477         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1478         * modules/ignore-value (Depends-on): Add stdint.
1479
1480 2011-01-04  Eric Blake  <eblake@redhat.com>
1481
1482         doc: regenerate INSTALL
1483         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1484         @firstparagraphindent support, now that autoconf dropped it.
1485         (INSTALL_PRELUDE): Reinstate old macro.
1486         * doc/install.texi: Resync from autoconf.
1487         * doc/INSTALL: Reflect recent autoconf update.
1488         * doc/INSTALL.ISO: Likewise.
1489         * doc/INSTALL.UTF-8: Likewise.
1490         Reported by Karl Berry.
1491
1492 2011-01-04  Bruce Korb  <address@hidden>
1493
1494         git-version-gen: avoid a sub-shell
1495         * build-aux/git-version-gen: Redirect stderr in `...` via
1496         "exec 2>...", rather than via an added sub-shell.
1497
1498 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1499
1500         git-version-gen: use (...) rather than sh -c '...'
1501         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1502         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1503
1504 2011-01-03  Jim Meyering  <meyering@redhat.com>
1505
1506         git-version-gen: convert leading TABs to spaces
1507         * build-aux/git-version-gen: Expand leading TABs.
1508
1509         git-version-gen: handle failed "git rev-list"
1510         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1511         from git and proceeding as if it had succeeded but printed no SHA1
1512         checksums, suppress the diagnostic and handle the failure.
1513         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1514
1515         git-version-gen: include command name in one more diagnostic
1516         * build-aux/git-version-gen: When the required .tarball-version file
1517         was missing or unreadable, you might see the diagnostic from "cat",
1518         but no trace of the name of the invoking script.  Now, you still see
1519         the diagnostic from cat, but also get one from "git-version-gen: ".
1520         Inspired by a patch from Bruce Korb.
1521
1522         update-copyright: adjust test to match changed code
1523         * tests/test-update-copyright.sh: Change test's expected output
1524         to match new actual output.
1525
1526 2011-01-02  Bruno Haible  <bruno@clisp.org>
1527
1528         getlogin_r: Avoid test failure on HP-UX 11.
1529         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1530         ERANGE when the second argument is zero.
1531         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1532         portability problem.
1533
1534 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1535
1536         * build-aux/update-copyright: doc Simon's changes
1537
1538 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1539
1540         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1541         environment variable.
1542
1543 2011-01-02  Bruno Haible  <bruno@clisp.org>
1544
1545         unigbrk: Avoid gcc warnings.
1546         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1547         unused variable.
1548         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1549         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1550         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1551         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1552         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1553         Change type of first argument to 'const char *'.
1554         (main): Remove unused variable.
1555         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1556         type of first argument to 'const char *'.
1557         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1558         Likewise.
1559         (main): Change type of variable 's'.
1560         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1561         to 'int'.
1562
1563 2011-01-02  Bruno Haible  <bruno@clisp.org>
1564
1565         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1566         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1567         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1568         bug.
1569         * lib/pwrite.c: Undo 2010-12-31 patch.
1570         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1571
1572 2011-01-02  Bruno Haible  <bruno@clisp.org>
1573
1574         pread: Fix test whether it works.
1575         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1576
1577 2011-01-02  Bruno Haible  <bruno@clisp.org>
1578
1579         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1580         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1581         ends in "6". Don't require a specific month name. Try also the locale
1582         names found on HP-UX 11 and Solaris 7.
1583
1584 2011-01-02  Bruno Haible  <bruno@clisp.org>
1585
1586         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1587         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1588         C linkage.
1589         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1590
1591 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1592
1593         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1594         for consistency, since the "cluster" term is not used elsewhere.
1595         * lib/unigbrk.in.h: Update name.
1596         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1597         * lib/unigbrk/u16-grapheme-next.c: Update name.
1598         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1599         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1600         * lib/unigbrk/u32-grapheme-next.c: Update name.
1601         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1602         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1603         * lib/unigbrk/u8-grapheme-next.c: Update name.
1604         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1605         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1606         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1607         Suggested by Bruno Haible.
1608
1609 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1610
1611         Remove module 'u8-grapheme-len' as too redundant with
1612         'u8-grapheme-next'.
1613         * modules/unigbrk/u8-grapheme-len: Delete file.
1614         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1615         * lib/unigbrk.in.h: Remove prototype for deleted function.
1616         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1617         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1618
1619         Remove module 'u16-grapheme-len' as too redundant with
1620         'u16-grapheme-next'.
1621         * modules/unigbrk/u16-grapheme-len: Delete file.
1622         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1623         * lib/unigbrk.in.h: Remove prototype for deleted function.
1624         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1625         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1626
1627         Remove module 'u32-grapheme-len' as too redundant with
1628         'u32-grapheme-next'.
1629         * modules/unigbrk/u32-grapheme-len: Delete file.
1630         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1631         * lib/unigbrk.in.h: Remove prototype for deleted function.
1632         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1633         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1634
1635         Suggested by Bruno Haible.
1636
1637 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1638
1639         * unigbrk.in.h: Fix typo: "ben" => "been".
1640         Reported by Bruno Haible.
1641
1642 2011-01-01  Jim Meyering  <meyering@redhat.com>
1643
1644         maint: update almost all copyright ranges to include 2011
1645         Run the new "make update-copyright" rule.
1646
1647 2011-01-01  Jim Meyering  <meyering@redhat.com>
1648
1649         maint: update-copyright: exempt doc/INSTALL*
1650         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1651         since they are generated.  Suggested by Bruno Haible.
1652
1653 2011-01-01  Jim Meyering  <meyering@redhat.com>
1654
1655         maint: refine the update-copyright rule
1656         * Makefile (update-copyright): Also exclude any file that includes
1657         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1658         code that merely generates the comment.
1659
1660 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1661
1662         New module 'u8-grapheme-len'.
1663         * modules/unigbrk/u8-grapheme-len: New file.
1664         * modules/unigbrk/u8-grapheme-len-tests: New file.
1665         * lib/unigbrk.in.h: Add prototype for new function.
1666         * lib/unigbrk/u8-grapheme-len.c: New file.
1667         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1668
1669         New module 'u16-grapheme-len'.
1670         * modules/unigbrk/u16-grapheme-len: New file.
1671         * modules/unigbrk/u16-grapheme-len-tests: New file.
1672         * lib/unigbrk.in.h: Add prototype for new function.
1673         * lib/unigbrk/u16-grapheme-len.c: New file.
1674         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1675
1676         New module 'u32-grapheme-len'.
1677         * modules/unigbrk/u32-grapheme-len: New file.
1678         * modules/unigbrk/u32-grapheme-len-tests: New file.
1679         * lib/unigbrk.in.h: Add prototype for new function.
1680         * lib/unigbrk/u32-grapheme-len.c: New file.
1681         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1682
1683         New module 'u8-grapheme-next'.
1684         * modules/unigbrk/u8-grapheme-next: New file.
1685         * modules/unigbrk/u8-grapheme-next-tests: New file.
1686         * lib/unigbrk.in.h: Add prototype for new function.
1687         * lib/unigbrk/u8-grapheme-next.c: New file.
1688         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1689
1690         New module 'u16-grapheme-next'.
1691         * modules/unigbrk/u16-grapheme-next: New file.
1692         * modules/unigbrk/u16-grapheme-next-tests: New file.
1693         * lib/unigbrk.in.h: Add prototype for new function.
1694         * lib/unigbrk/u16-grapheme-next.c: New file.
1695         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1696
1697         New module 'u32-grapheme-next'.
1698         * modules/unigbrk/u32-grapheme-next: New file.
1699         * modules/unigbrk/u32-grapheme-next-tests: New file.
1700         * lib/unigbrk.in.h: Add prototype for new function.
1701         * lib/unigbrk/u32-grapheme-next.c: New file.
1702         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1703
1704         New module 'u8-grapheme-prev'.
1705         * modules/unigbrk/u8-grapheme-prev: New file.
1706         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1707         * lib/unigbrk.in.h: Add prototype for new function.
1708         * lib/unigbrk/u8-grapheme-prev.c: New file.
1709         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1710
1711         New module 'u16-grapheme-prev'.
1712         * modules/unigbrk/u16-grapheme-prev: New file.
1713         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1714         * lib/unigbrk.in.h: Add prototype for new function.
1715         * lib/unigbrk/u16-grapheme-prev.c: New file.
1716         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1717
1718         New module 'u32-grapheme-prev'.
1719         * modules/unigbrk/u32-grapheme-prev: New file.
1720         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1721         * lib/unigbrk.in.h: Add prototype for new function.
1722         * lib/unigbrk/u32-grapheme-prev.c: New file.
1723         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1724
1725         New module 'u8-grapheme-breaks'.
1726         * modules/unigbrk/u8-grapheme-breaks: New file.
1727         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1728         * lib/unigbrk.in.h: Add prototype for new function.
1729         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1730         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1731
1732         New module 'u16-grapheme-breaks'.
1733         * modules/unigbrk/u16-grapheme-breaks: New file.
1734         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1735         * lib/unigbrk.in.h: Add prototype for new function.
1736         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1737         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1738
1739         New module 'u32-grapheme-breaks'.
1740         * modules/unigbrk/u32-grapheme-breaks: New file.
1741         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1742         * lib/unigbrk.in.h: Add prototype for new function.
1743         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1744         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1745
1746         New module 'ulc-grapheme-breaks'.
1747         * modules/unigbrk/ulc-grapheme-breaks: New file.
1748         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1749         * m4/locale-ar.m4: New file.
1750         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1751         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1752         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1753
1754 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1755
1756         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1757         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1758         modified how this file was generated before I initially submitted
1759         the module, but failed to regenerate it.  This meant that several
1760         of the level2 entries were wrong.
1761         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1762         Remove the division-by-2 that is folded into the table now that
1763         gbrkprop.h has been regenerated properly.  Now -1 entries are
1764         handled correctly.
1765
1766         New module 'unigbrk/uc-gbrk-prop-tests'.
1767         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1768         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1769         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1770         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1771
1772 2011-01-01  Bruno Haible  <bruno@clisp.org>
1773
1774         Avoid use of hexadecimal escapes.
1775         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1776         instead of hexadecimal escapes.
1777
1778 2011-01-01  Jim Meyering  <meyering@redhat.com>
1779
1780         maint: new rule to update copyright year ranges
1781         * Makefile (update-copyright): New rule.
1782
1783         maint: indent with TABs in Makefile
1784         * Makefile: Expand leading sequences of spaces to TABs
1785
1786         version-etc: update the copyright year it reports
1787         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1788
1789 2010-12-31  Bruno Haible  <bruno@clisp.org>
1790
1791         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1792         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1793         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1794         zero.
1795
1796 2010-12-31  Bruno Haible  <bruno@clisp.org>
1797
1798         pwrite: Work around HP-UX 11.11 bug.
1799         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1800         works and set REPLACE_PWRITE if not.
1801         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1802         function.
1803         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1804
1805 2010-12-31  Bruno Haible  <bruno@clisp.org>
1806
1807         pread: Work around HP-UX 11 bugs.
1808         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1809         and set REPLACE_PREAD if not.
1810         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1811
1812 2010-12-31  Eric Blake  <eblake@redhat.com>
1813
1814         nl_langinfo: fix YESEXPR on Irix 6.5
1815         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1816         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1817         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1818         it.
1819
1820 2010-12-31  Bruno Haible  <bruno@clisp.org>
1821
1822         iconv: Document HP-UX 11 bug.
1823         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1824
1825 2010-12-31  Bruno Haible  <bruno@clisp.org>
1826
1827         ldexpl: Fix link error on HP-UX 11.
1828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1829         LDEXPL_LIBM, using $ISNANL_LIBM.
1830
1831 2010-12-31  Eric Blake  <eblake@redhat.com>
1832
1833         ftello: avoid compilation failure with SunStudio c89
1834         * lib/ftello.c (ftello): Use lseek, not llseek.
1835
1836         tests: avoid failing coreutils tests on cygwin
1837         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1838         (create_exe_shims_): Return 0 when skipping.
1839
1840 2010-12-31  Bruno Haible  <bruno@clisp.org>
1841
1842         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1843         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1844
1845 2010-12-31  Bruno Haible  <bruno@clisp.org>
1846
1847         waitpid: Fix link error in C++ mode.
1848         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1849
1850 2010-12-31  Bruno Haible  <bruno@clisp.org>
1851
1852         isnan: Use GCC built-ins when possible.
1853         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1854         __builtin_isnan.
1855         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1856         (isnan): Define using GCC built-ins for GCC >= 4.0.
1857
1858 2010-12-31  Bruno Haible  <bruno@clisp.org>
1859
1860         isnand: Fix mistake.
1861         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1862         __builtin_isnand.
1863
1864 2010-12-31  Bruno Haible  <bruno@clisp.org>
1865
1866         open: Avoid C++ error on HP-UX 11.
1867         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1868
1869 2010-12-31  Bruno Haible  <bruno@clisp.org>
1870
1871         time_r: Add missing declarations on HP-UX 11.
1872         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1873         instead of HAVE_LOCALTIME_R.
1874         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1875         HAVE_LOCALTIME_R always.
1876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1877         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1878         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1879         HAVE_LOCALTIME_R.
1880         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1881         * doc/posix-functions/localtime_r.texi: Likewise.
1882
1883 2010-12-29  Eric Blake  <eblake@redhat.com>
1884
1885         mountlist: tweak previous commit
1886         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1887         Reported by Paul Eggert.
1888
1889         mountlist: fix local drive detection on cygwin
1890         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1891         that works for cygwin.
1892
1893 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1894
1895         ftoastr, snprintf: ftoastr + snprintf module
1896         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1897         since the snprintf module now should be good enough here.
1898         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1899         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1900         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1901         GNULIB_SNPRINTF only for the test directory, and the latter
1902         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1903         seems to suffice by itself.
1904
1905 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1906
1907         alloca: one step towards thread-safety
1908         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1909         need for a static variable.  All callers changed.  This does not
1910         make the alloca replacement thread-safe, but it's one step.
1911
1912         tests: minor indenting change
1913         * tests/init.sh: Sync from coreutils housekeeping patch
1914         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1915         to keep lines within 80 columns.
1916
1917 2010-12-28  Jim Meyering  <meyering@redhat.com>
1918
1919         regex: don't infloop on persistent failing calloc
1920         * lib/regexec.c (build_trtable): Return failure indication upon
1921         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1922         In glibc, this was fixed for version 2.13:
1923         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1924
1925 2010-12-28  Bruno Haible  <bruno@clisp.org>
1926             Paul Eggert <eggert@cs.ucla.edu>
1927
1928         linkat: Make implementation robust against system behaviour variations.
1929         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1930         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1931         way, and to -2 if it needs a generic runtime test.
1932         * lib/linkat.c (solaris_optimized_link_immediate,
1933         solaris_optimized_link_follow): New functions.
1934         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1935         (check_same_link): Use it.
1936
1937 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1938
1939         New module 'unigbrk/base'.
1940         * modules/unigbrk/base: New file.
1941         * lib/unigbrk.in.h: New file.
1942
1943         New module 'unigbrk/uc-gbrk-prop'.
1944         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1945         * modules/unigbrk/uc-gbrk-prop: New file.
1946         * lib/unigbrk/gbrkprop.h: New file.
1947         * lib/unigbrk/uc-gbrk-prop.c: New file.
1948
1949         New module 'unigbrk/uc-is-grapheme-break'.
1950         * modules/unigbrk/uc-is-grapheme-break: New file.
1951         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1952         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1953         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1954         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1955         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1956
1957         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1958
1959 2010-12-27  Bruno Haible  <bruno@clisp.org>
1960
1961         linkat test: Avoid failure on Solaris 11 2010-11.
1962         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1963
1964 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1965
1966         utimens: work around glibc rounding bug on more platforms
1967         * lib/utimens.c (fdutimens): Work around rounding bug even if
1968         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1969         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1970
1971 2010-12-27  Bruno Haible  <bruno@clisp.org>
1972
1973         select tests: Improve comments.
1974         * tests/test-select.c (do_select): Add comments.
1975
1976 2010-12-27  Bruno Haible  <bruno@clisp.org>
1977
1978         select tests: Safer way of handling timeout.
1979         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1980         at every invocation.
1981
1982 2010-12-27  Bruno Haible  <bruno@clisp.org>
1983
1984         select tests: Use 'bool' where appropriate.
1985         * tests/test-select.c (connect_to_socket): Change argument type to
1986         'bool'.
1987
1988 2010-12-27  Bruno Haible  <bruno@clisp.org>
1989
1990         select tests: Use existing modules.
1991         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1992         (configure.ac): Don't test for unistd.h.
1993         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1994         declared in <unistd.h>.
1995
1996 2010-12-27  Bruno Haible  <bruno@clisp.org>
1997
1998         mbrtowc: Work around a Solaris 7 bug.
1999         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
2000         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
2001         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
2002         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
2003         MBRTOWC_NULL_ARG1_BUG.
2004         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
2005         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
2006         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
2007         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
2008
2009 2010-12-27  Jim Meyering  <meyering@redhat.com>
2010
2011         read-file.c: tweak syntax
2012         * lib/read-file.c (fread_file): Remove space after "*" in function
2013         definitions.
2014
2015 2010-12-27  Bruno Haible  <bruno@clisp.org>
2016
2017         times test: Avoid gcc warnings on OSF/1.
2018         * tests/test-times.c (main): Cast printf arguments from clock_t to
2019         'long int'.
2020
2021 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2022
2023         utimens: work around glibc rounding bug on older Linux kernels
2024         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2025         on Linux with a glibc whose utimes might not work, then work
2026         around a longstanding glibc bug involving rounding rather than
2027         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
2028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2029
2030 2010-12-26  Bruno Haible  <bruno@clisp.org>
2031
2032         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
2033         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
2034         _GL_CXXALIAS_SYS.
2035         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2036
2037 2010-12-26  Bruno Haible  <bruno@clisp.org>
2038
2039         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
2040         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
2041         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2042         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
2043         looking for the declaration.
2044         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2045         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
2046         problem.
2047         * doc/posix-functions/inet_pton.texi: Likewise.
2048
2049 2010-12-26  Bruno Haible  <bruno@clisp.org>
2050
2051         arpa_inet: Use the common idioms with C++ support.
2052         * lib/arpa_inet.in.h: Include c++defs.h.
2053         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
2054         support.
2055         * modules/arpa_inet (Depends-on): Add c++defs.
2056         (Makefile.am): Substitute the contents of c++defs.h.
2057         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
2058         * modules/arpa_inet-c++-tests: New file.
2059         * tests/test-arpa_inet-c++.cc: New file.
2060
2061 2010-12-25  Bruno Haible  <bruno@clisp.org>
2062
2063         Fix more C++ link errors on Solaris 8.
2064         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
2065         $(LIB_EACCESS).
2066         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
2067         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
2068         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
2069         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
2070         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
2071
2072 2010-12-25  Bruno Haible  <bruno@clisp.org>
2073
2074         printf-posix: Fix link error when a non-GCC compiler is used.
2075         * lib/stdio.in.h (printf): When not using GCC, override printf
2076         correctly.
2077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2078
2079 2010-12-25  Bruno Haible  <bruno@clisp.org>
2080
2081         strerror_r-posix: Update doc.
2082         * doc/posix-functions/strerror_r.texi: Update doc about the return
2083         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2084
2085 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2086
2087         utimens: simplify the logic of the previous change
2088         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2089         This should not affect whether the test succeeds or fails.
2090
2091         utimens: configure better on hosts with NFS clock skew
2092         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2093         uses the clock of the local host.  It might use the clock of the
2094         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2096
2097 2010-12-25  Bruno Haible  <bruno@clisp.org>
2098
2099         ptsname test: Avoid failure on Solaris.
2100         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2101         open a pseudo-terminal; don't use BSD-style ptys.
2102         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2103
2104 2010-12-25  Bruno Haible  <bruno@clisp.org>
2105
2106         ptsname: Avoid ERANGE failure on some systems.
2107         * lib/ptsname.c (buffer): Increase size.
2108
2109 2010-12-25  Bruno Haible  <bruno@clisp.org>
2110
2111         rename, renameat: Avoid test failures at NFS mounted locations.
2112         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2113         so that subsequent mkdir calls succeed.
2114
2115 2010-12-25  Bruno Haible  <bruno@clisp.org>
2116
2117         iswblank: Fix C++ link error on Solaris 8.
2118         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2119         _GL_FUNCDECL_SYS.
2120
2121 2010-12-25  Bruno Haible  <bruno@clisp.org>
2122
2123         unistd: Fix C++ link error on Solaris 8.
2124         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2125
2126 2010-12-25  Bruno Haible  <bruno@clisp.org>
2127
2128         readlink doc: Mention an old glibc bug.
2129         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
2130
2131 2010-12-25  Bruno Haible  <bruno@clisp.org>
2132
2133         fcntl-h: Fix for use of C++ on glibc systems.
2134         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2135         also on glibc systems in C++ mode.
2136         Reported by Gary V. Vaughan <gary@gnu.org>.
2137
2138 2010-12-25  Bruno Haible  <bruno@clisp.org>
2139
2140         roundl-ieee: Make it work on OSF/1 5.1 with cc.
2141         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
2142
2143 2010-12-25  Bruno Haible  <bruno@clisp.org>
2144
2145         truncl-ieee: Make it work on OSF/1 5.1 with cc.
2146         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
2147         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
2148         test whether truncl works according to ISO C 99 with IEC 60559.
2149         * m4/truncl-ieee.m4: New file.
2150         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
2151         m4/signbit.m4.
2152         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
2153
2154 2010-12-25  Bruno Haible  <bruno@clisp.org>
2155
2156         ceill-ieee: Make it work on OSF/1 5.1 with cc.
2157         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
2158         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
2159         test whether ceill works according to ISO C 99 with IEC 60559.
2160         * m4/ceill-ieee.m4: New file.
2161         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
2162         m4/signbit.m4.
2163         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
2164
2165 2010-12-25  Bruno Haible  <bruno@clisp.org>
2166
2167         Ensure all prerequisites of <wchar.h> are included.
2168         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
2169         before <wchar.h>.
2170         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2171         gl_MBRLEN_NUL_RETVAL): Likewise.
2172         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2173         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
2174         AC_FUNC_MBRTOWC): Likewise.
2175         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2176         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
2177         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2178         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2179         Likewise.
2180         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2181         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
2182         (gl_WCHAR_H): Improve comments.
2183         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2184
2185 2010-12-25  Bruno Haible  <bruno@clisp.org>
2186
2187         strtok_r: Fix C syntax error in autoconf macro.
2188         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
2189         characters in test program.
2190
2191 2010-12-24  Bruno Haible  <bruno@clisp.org>
2192
2193         ceil, trunc, round: Fix gcc warnings.
2194         * lib/ceil.c (MIN): Undefine before redefining.
2195         * lib/trunc.c (MIN): Likewise.
2196         * lib/round.c (MIN): Likewise.
2197         Include <math.h> first.
2198
2199 2010-12-24  Bruno Haible  <bruno@clisp.org>
2200
2201         select tests: Avoid failures on OSF/1 5.1.
2202         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
2203         failure of closing the last socket; it may fail with ECONNRESET.
2204
2205 2010-12-24  Eric Blake  <eblake@redhat.com>
2206
2207         stdint: avoid HP-UX 10.20 preprocessor bug
2208         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
2209         than #if.
2210         * tests/test-floor2.c (main): Likewise.
2211         Reported by Peter O'Gorman.
2212
2213         pipe: make obsoletion transition easier
2214         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
2215         * modules/pipe (Files): Include revived file.
2216         (Include): Drop reference, to mirror getdate's behavior.
2217
2218 2010-12-24  Bruno Haible  <bruno@clisp.org>
2219
2220         sys_socket: Hide mismatch of declarations on NonStop Kernel.
2221         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
2222         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2223         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2224
2225 2010-12-24  Bruno Haible  <bruno@clisp.org>
2226
2227         gethostname: Ensure declaration on NonStop Kernel.
2228         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
2229         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2230
2231 2010-12-24  Bruno Haible  <bruno@clisp.org>
2232
2233         sys_select: Ensure all necessary types on NonStop Kernel.
2234         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
2235         include <sys/time.h>.
2236         * doc/posix-headers/sys_select.texi: Mention that it's missing on
2237         NonStop Kernel.
2238         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2239
2240 2010-12-24  Bruno Haible  <bruno@clisp.org>
2241
2242         sys_select: Remove unneeded include.
2243         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
2244         have <sys/select.h>.
2245
2246 2010-12-24  Bruno Haible  <bruno@clisp.org>
2247
2248         gethostname: Provide a fallback for HOST_NAME_MAX.
2249         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
2250         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
2251         instead.
2252         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2253
2254 2010-12-24  Bruno Haible  <bruno@clisp.org>
2255
2256         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2257         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2258         (SA_RESTART): Likewise.
2259         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2260
2261 2010-12-24  Bruno Haible  <bruno@clisp.org>
2262
2263         signal: Define NSIG.
2264         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2265         * tests/test-signal.c (nsig): New variable.
2266         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2267
2268 2010-12-24  Bruno Haible  <bruno@clisp.org>
2269
2270         rename, renameat: Avoid test failures on OSF/1 5.1.
2271         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2272         alternative error codes.
2273         * tests/test-renameat.c (main): Likewise.
2274
2275 2010-12-24  Bruno Haible  <bruno@clisp.org>
2276
2277         *printf: Detect large precisions bug on Solaris 10/SPARC.
2278         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2279         by Paul Eggert.
2280         * tests/test-snprintf-posix.h (test_function): Add this test code here
2281         too.
2282         * tests/test-sprintf-posix.h (test_function): Likewise.
2283         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2284         * tests/test-vasprintf-posix.c (test_function): Likewise.
2285         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2286         around by gnulib.
2287         * doc/posix-functions/printf.texi: Likewise.
2288         * doc/posix-functions/snprintf.texi: Likewise.
2289         * doc/posix-functions/sprintf.texi: Likewise.
2290         * doc/posix-functions/vfprintf.texi: Likewise.
2291         * doc/posix-functions/vprintf.texi: Likewise.
2292         * doc/posix-functions/vsnprintf.texi: Likewise.
2293         * doc/posix-functions/vsprintf.texi: Likewise.
2294         * doc/posix-functions/dprintf.texi: Undo last commit.
2295         * doc/posix-functions/vdprintf.texi: Likewise.
2296
2297 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2298
2299         tests: port test-fdutimensat.c to Solaris 8
2300         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2301         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2302         On Solaris 8, it fails with errno == ENOSYS, because there is no
2303         futimens (so it can't use the fd), and there is no lutimens (so it
2304         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2305
2306         vsnprintf: make more consistent with snprintf; doc fixes
2307
2308         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2309         the byte count return problem was promoted from the snprintf-posix
2310         to the snprintf module.
2311         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2312         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2313         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2314         * tests/test-snprintf.c (main): Check the byte count returned.
2315         * tests/test-vsnprintf.c (main): Likewise.
2316
2317 2010-12-23  Eric Blake  <eblake@redhat.com>
2318
2319         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2320         * modules/sigpipe (License): Relax license.
2321
2322 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2323
2324         doc: document Solaris printf bug with large float precisions
2325         * doc/posix-functions/dprintf.texi (dprintf):
2326         * doc/posix-functions/fprintf.texi (fprintf):
2327         * doc/posix-functions/printf.texi (printf):
2328         * doc/posix-functions/snprintf.texi (snprintf):
2329         * doc/posix-functions/sprintf.texi (sprintf):
2330         * doc/posix-functions/vdprintf.texi (vdprintf):
2331         * doc/posix-functions/vfprintf.texi (vfprintf):
2332         * doc/posix-functions/vprintf.texi (vprintf):
2333         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2334         * doc/posix-functions/vsprintf.texi (vsprintf):
2335         Mention that these functions mishandle large floating point
2336         precisions on Solaris 10.  The same bug is also present in Solaris
2337         8, and I assume earlier.  This causes "cd gnulib-tests; make
2338         check" to fail on Solaris 8 (and I assume, later) when building
2339         the latest coreutils, in test-vasprintf-posix's call to
2340         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2341         the wide flavors (e.g., wprintf) so this patch just updates the
2342         documentation for the narrow ones.
2343
2344         test-posixtm.c: add two tests
2345         * tests/test-posixtm.c: Add two tests, to highlight the
2346         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2347         around this bug; this is merely to document it.
2348
2349 2010-12-22  Bruno Haible  <bruno@clisp.org>
2350
2351         getlogin_r: Work around portability problem on OSF/1.
2352         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2353         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2354         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2355         test for a truncated result.
2356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2357         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2358         * modules/getlogin_r (Depends-on): Add memchr.
2359         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2360
2361 2010-12-22  Bruno Haible  <bruno@clisp.org>
2362
2363         ptsname: Avoid test failure on OSF/1 5.1.
2364         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2365         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2366         (same_slave): New function.
2367         (main): Use it to compare ptsname's result with the expected file name.
2368
2369 2010-12-22  Bruno Haible  <bruno@clisp.org>
2370
2371         Port extended stdio modules to HP NonStop Kernel.
2372         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2373         macros.
2374         * lib/fbufmode.c: Update comments.
2375         * lib/fflush.c: Likewise.
2376         * lib/fpurge.c: Likewise.
2377         * lib/freadable.c: Likewise.
2378         * lib/freadahead.c: Likewise.
2379         * lib/freading.c: Likewise.
2380         * lib/freadptr.c: Likewise.
2381         * lib/freadseek.c: Likewise.
2382         * lib/fseeko.c: Likewise.
2383         * lib/fseterr.c: Likewise.
2384         * lib/fwritable.c: Likewise.
2385         * lib/fwriting.c: Likewise.
2386         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2387
2388 2010-12-22  Bruno Haible  <bruno@clisp.org>
2389
2390         ttyname_r: Work around bug on OSF/1 5.1.
2391         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2392         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2393         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2394         present.
2395         * lib/ttyname_r.c (ttyname_r): Update comments.
2396
2397 2010-12-22  Bruno Haible  <bruno@clisp.org>
2398
2399         round: Implement result sign according to IEEE 754.
2400         * lib/round.c (MIN, MINUS_ZERO): New macros.
2401         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2402         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2403         * tests/test-round-ieee.c (main): Likewise.
2404         * tests/test-roundl-ieee.c (main): Likewise.
2405
2406         trunc: Implement result sign according to IEEE 754.
2407         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2408         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2409         * tests/test-trunc2.c: Include minus-zero.h.
2410         (MINUS_ZERO): New macro.
2411         (trunc_reference): Keep in sync with lib/trunc.c.
2412         * tests/test-truncf2.c: Include minus-zero.h.
2413         (MINUS_ZERO): New macro.
2414         (truncf_reference): Keep in sync with lib/trunc.c.
2415         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2416         * tests/test-trunc-ieee.c (main): Likewise.
2417         * tests/test-truncl-ieee.c (main): Likewise.
2418
2419         ceil: Implement result sign according to IEEE 754.
2420         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2421         (FUNC): Return -0.0 for -1 < x < 0.
2422         * tests/test-ceil2.c: Include minus-zero.h.
2423         (MINUS_ZERO): New macro.
2424         (ceil_reference): Keep in sync with lib/ceil.c.
2425         * tests/test-ceilf2.c: Include minus-zero.h.
2426         (MINUS_ZERO): New macro.
2427         (ceilf_reference): Keep in sync with lib/ceil.c.
2428         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2429         * tests/test-ceil-ieee.c (main): Likewise.
2430         * tests/test-ceill-ieee.c (main): Likewise.
2431
2432         floor: Implement result sign according to IEEE 754.
2433         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2434         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2435         * tests/test-floorf2.c (floorf_reference): Likewise.
2436         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2437         * tests/test-floor-ieee.c (main): Likewise.
2438         * tests/test-floorl-ieee.c (main): Likewise.
2439
2440 2010-12-22  Bruno Haible  <bruno@clisp.org>
2441
2442         getaddrinfo: Update doc.
2443         * doc/posix-functions/gai_strerror.texi: Return type is also different
2444         on AIX and HP-UX.
2445
2446 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2447
2448         getaddrinfo, inet_ntop: Update doc for Solaris.
2449         * doc/posix-functions/gai_strerror.texi: Return type is also an
2450         issue on Solaris 9 and earlier.
2451         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2452         on Solaris 10 and earlier.
2453
2454 2010-12-21  Bruno Haible  <bruno@clisp.org>
2455
2456         New module 'roundl-ieee'.
2457         * modules/roundl-ieee: New file.
2458         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2459         test whether roundl works according to ISO C 99 with IEC 60559.
2460         * m4/roundl-ieee.m4: New file.
2461         * modules/roundl-ieee-tests: New file.
2462         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2463         * tests/test-roundl.c (main): Remove signbit tests.
2464         * modules/roundl-tests (Depends-on): Remove signbit.
2465         * doc/posix-functions/roundl.texi: Mention the new module.
2466
2467 2010-12-21  Bruno Haible  <bruno@clisp.org>
2468
2469         New module 'truncl-ieee'.
2470         * modules/truncl-ieee: New file.
2471         * modules/truncl-ieee-tests: New file.
2472         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2473         * tests/test-truncl.c (main): Remove signbit tests.
2474         * modules/truncl-tests (Depends-on): Remove signbit.
2475         * doc/posix-functions/truncl.texi: Mention the new module.
2476
2477 2010-12-21  Bruno Haible  <bruno@clisp.org>
2478
2479         New module 'ceill-ieee'.
2480         * modules/ceill-ieee: New file.
2481         * modules/ceill-ieee-tests: New file.
2482         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2483         * tests/test-ceill.c (main): Remove signbit tests.
2484         * modules/ceill-tests (Depends-on): Remove signbit.
2485         * doc/posix-functions/ceill.texi: Mention the new module.
2486
2487 2010-12-21  Bruno Haible  <bruno@clisp.org>
2488
2489         New module 'floorl-ieee'.
2490         * modules/floorl-ieee: New file.
2491         * modules/floorl-ieee-tests: New file.
2492         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2493         * tests/test-floorl.c (main): Remove signbit tests.
2494         * modules/floorl-tests (Depends-on): Remove signbit.
2495         * doc/posix-functions/floorl.texi: Mention the new module.
2496
2497 2010-12-21  Bruno Haible  <bruno@clisp.org>
2498
2499         New module 'round-ieee'.
2500         * modules/round-ieee: New file.
2501         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2502         whether round works according to ISO C 99 with IEC 60559.
2503         * m4/round-ieee.m4: New file.
2504         * modules/round-ieee-tests: New file.
2505         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2506         * tests/test-round1.c (main): Remove signbit tests.
2507         * modules/round-tests (Depends-on): Remove 'signbit'.
2508         * doc/posix-functions/round.texi: Mention the new module.
2509
2510 2010-12-21  Bruno Haible  <bruno@clisp.org>
2511
2512         New module 'trunc-ieee'.
2513         * modules/trunc-ieee: New file.
2514         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2515         whether trunc works according to ISO C 99 with IEC 60559.
2516         * m4/trunc-ieee.m4: New file.
2517         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2519         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2520         * modules/trunc-ieee-tests: New file.
2521         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2522         * tests/test-trunc1.c (main): Remove signbit tests.
2523         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2524         * doc/posix-functions/trunc.texi: Mention the new module.
2525
2526 2010-12-21  Bruno Haible  <bruno@clisp.org>
2527
2528         New module 'ceil-ieee'.
2529         * modules/ceil-ieee: New file.
2530         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2531         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2532         ISO C 99 with IEC 60559.
2533         * m4/ceil-ieee.m4: New file.
2534         * modules/ceil (Files): Add lib/ceil.c.
2535         (Depends-on): Add 'float'.
2536         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2537         * lib/math.in.h (ceil): New declaration.
2538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2539         REPLACE_CEIL.
2540         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2541         * modules/ceil-ieee-tests: New file.
2542         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2543         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2544         * doc/posix-functions/ceil.texi: Mention the new module.
2545
2546 2010-12-21  Bruno Haible  <bruno@clisp.org>
2547
2548         New module 'floor-ieee'.
2549         * modules/floor-ieee: New file.
2550         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2551         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2552         ISO C 99 with IEC 60559.
2553         * m4/floor-ieee.m4: New file.
2554         * modules/floor (Files): Add lib/floor.c.
2555         (Depends-on): Add 'float'.
2556         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2557         * lib/math.in.h (floor): New declaration.
2558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2559         REPLACE_FLOOR.
2560         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2561         * modules/floor-ieee-tests: New file.
2562         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2563         * tests/test-math-c++.cc: Check the signature of 'floor'.
2564         * doc/posix-functions/floor.texi: Mention the new module.
2565
2566 2010-12-21  Bruno Haible  <bruno@clisp.org>
2567
2568         New module 'roundf-ieee'.
2569         * modules/roundf-ieee: New file.
2570         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2571         test whether roundf works according to ISO C 99 with IEC 60559.
2572         * m4/roundf-ieee.m4: New file.
2573         * modules/roundf-ieee-tests: New file.
2574         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2575         * tests/test-roundf1.c (main): Remove signbit tests.
2576         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2577         * doc/posix-functions/roundf.texi: Mention the new module.
2578
2579 2010-12-21  Bruno Haible  <bruno@clisp.org>
2580
2581         New module 'truncf-ieee'.
2582         * modules/truncf-ieee: New file.
2583         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2584         test whether truncf works according to ISO C 99 with IEC 60559.
2585         * m4/truncf-ieee.m4: New file.
2586         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2588         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2589         * modules/truncf-ieee-tests: New file.
2590         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2591         * tests/test-truncf1.c (main): Remove signbit tests.
2592         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2593         * doc/posix-functions/truncf.texi: Mention the new module.
2594
2595 2010-12-21  Bruno Haible  <bruno@clisp.org>
2596
2597         New module 'ceilf-ieee'.
2598         * modules/ceilf-ieee: New file.
2599         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2600         test whether ceilf works according to ISO C 99 with IEC 60559.
2601         * m4/ceilf-ieee.m4: New file.
2602         * modules/ceilf-ieee-tests: New file.
2603         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2604         * tests/test-ceilf1.c (main): Remove signbit tests.
2605         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2606         * doc/posix-functions/ceilf.texi: Mention the new module.
2607
2608 2010-12-21  Bruno Haible  <bruno@clisp.org>
2609
2610         New module 'floorf-ieee'.
2611         * modules/floorf-ieee: New file.
2612         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2613         test whether floorf works according to ISO C 99 with IEC 60559.
2614         * m4/floorf-ieee.m4: New file.
2615         * modules/floorf-ieee-tests: New file.
2616         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2617         * tests/test-floorf1.c (main): Remove signbit tests.
2618         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2619         * doc/posix-functions/floorf.texi: Mention the new module.
2620
2621 2010-12-21  Bruno Haible  <bruno@clisp.org>
2622
2623         Support for minus zero in autoconf macros.
2624         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2625         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2626         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2627         * tests/minus-zero.h: Update comments.
2628
2629 2010-12-21  Bruno Haible  <bruno@clisp.org>
2630
2631         Tests for module 'ceil'.
2632         * modules/ceil-tests: New file.
2633         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2634         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2635
2636 2010-12-21  Bruno Haible  <bruno@clisp.org>
2637
2638         Tests for module 'floor'.
2639         * modules/floor-tests: New file.
2640         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2641         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2642
2643 2010-12-21  Bruno Haible  <bruno@clisp.org>
2644
2645         math: Fix indentation.
2646         * lib/math.in.h (floorf): Fix indentation.
2647
2648 2010-12-21  Bruno Haible  <bruno@clisp.org>
2649
2650         Fix cross-compilation guesses on Solaris.
2651         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2652         not match "solaris2.10".
2653         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2654         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2655         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2656
2657 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2658
2659         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2660         This fixes a problem observed with the latest coreutils snapshot
2661         that caused a test to fail on Solaris 8.  src/csplit.c's call
2662         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2663         earlier, instead of returning the number of bytes that would have
2664         been generated; this causes csplit to incorrectly report memory
2665         exhaustion.
2666         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2667         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2668         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2669         comments to match.
2670         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2671         Fix typo in matching older versions of Solaris: "solaris2.10"
2672         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2673         only for guessing while cross-compiling.
2674         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2675
2676 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2677
2678         ftoastr: fix comment again
2679         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2680         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2681         Also, simplify example a bit by using flags = 0.
2682
2683 2010-12-20  Bruno Haible  <bruno@clisp.org>
2684
2685         round*, trunc*: Update documentation regarding glibc.
2686         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2687         * doc/posix-functions/round.texi: Likewise.
2688         * doc/posix-functions/roundl.texi: Likewise.
2689         * doc/posix-functions/truncf.texi: Likewise.
2690         * doc/posix-functions/trunc.texi: Likewise.
2691         * doc/posix-functions/truncl.texi: Likewise.
2692
2693 2010-12-20  Bruno Haible  <bruno@clisp.org>
2694
2695         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2696         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2697         * doc/posix-functions/round.texi: Likewise.
2698         * doc/posix-functions/roundl.texi: Likewise.
2699
2700 2010-12-20  Bruno Haible  <bruno@clisp.org>
2701
2702         ttyname_r: Add missing declaration on HP-UX 11.
2703         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2704         HAVE_TTYNAME_R.
2705         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2706         declared. Set HAVE_TTYNAME_R always.
2707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2708         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2709         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2710         HAVE_TTYNAME_R.
2711         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2712
2713 2010-12-20  Bruno Haible  <bruno@clisp.org>
2714
2715         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2716         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2717         * doc/posix-functions/getlogin_r.texi: Likewise.
2718         * tests/test-getlogin.c: Include <errno.h>.
2719         (main): Avoid test failure on HP-UX 11.11.
2720         * tests/test-getlogin_r.c (main): Likewise.
2721
2722 2010-12-20  Bruno Haible  <bruno@clisp.org>
2723
2724         getlogin_r: Add missing declaration on HP-UX 11.
2725         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2726         declared also when it exists as a function.
2727         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2728
2729 2010-12-20  Bruno Haible  <bruno@clisp.org>
2730
2731         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2732         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2733         through wcrtomb.
2734
2735 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2736
2737         ftoastr: fix comment
2738         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2740
2741 2010-12-19  Bruno Haible  <bruno@clisp.org>
2742
2743         isnan: Ensure it is a macro.
2744         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2745         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2746         Solaris.
2747
2748 2010-12-19  Bruno Haible  <bruno@clisp.org>
2749
2750         ldexpl test: Fix link error on OSF/1 5.1.
2751         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2752
2753 2010-12-19  Bruno Haible  <bruno@clisp.org>
2754
2755         wctype: Make it work in C++ mode on OSF/1 5.1.
2756         * lib/wctype.in.h (iswblank): Declare but not define here.
2757         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2758         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2759         * modules/wctype (Files): Add lib/iswblank.c.
2760
2761 2010-12-19  Bruno Haible  <bruno@clisp.org>
2762
2763         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2764         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2765         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2766
2767 2010-12-19  Bruno Haible  <bruno@clisp.org>
2768
2769         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2771         _POSIX_PII_SOCKET.
2772         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2773         * doc/posix-functions/recvfrom.texi: Likewise.
2774         * doc/posix-functions/send.texi: Likewise.
2775         * doc/posix-functions/sendto.texi: Likewise.
2776
2777 2010-12-19  Bruno Haible  <bruno@clisp.org>
2778
2779         tcgetsid: Add missing declaration on OSF/1 5.1.
2780         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2781         HAVE_TCGETSID.
2782         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2783         Don't set HAVE_TCGETSID.
2784         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2785         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2786         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2787         HAVE_TCGETSID.
2788         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2789
2790 2010-12-19  Bruno Haible  <bruno@clisp.org>
2791
2792         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2793         * lib/stdio.in.h: During the include_next statement, let recursive
2794         includes of this file include only the system header file.
2795
2796 2010-12-19  Bruno Haible  <bruno@clisp.org>
2797
2798         iconv_open: Fix regression from 2010-12-04.
2799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2800         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2801
2802 2010-12-19  Bruno Haible  <bruno@clisp.org>
2803
2804         stdbool test: Avoid a gcc warning.
2805         * tests/test-stdbool.c (main): Fail if e1 is false.
2806         Reported by Jim Meyering.
2807
2808 2010-12-19  Jim Meyering  <meyering@redhat.com>
2809
2810         setenv: restore to working order
2811         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2812         mistakenly removed.
2813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2814         HAVE_SETENV.
2815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2816         HAVE_SETENV.
2817
2818 2010-12-19  Bruno Haible  <bruno@clisp.org>
2819
2820         Document some different function declarations on OSF/1 5.1.
2821         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2822         * doc/posix-functions/inet_ntop.texi: Likewise.
2823         * doc/posix-functions/gethostname.texi: Likewise.
2824         * lib/unistd.in.h (gethostname): Update comment.
2825
2826 2010-12-19  Bruno Haible  <bruno@clisp.org>
2827
2828         doc: Mention vasprintf-posix module.
2829         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2830         the 'vasprintf-posix' module.
2831         * doc/glibc-functions/vasprintf.texi: Likewise.
2832
2833 2010-12-19  Bruno Haible  <bruno@clisp.org>
2834
2835         unsetenv: Add missing declaration on OSF/1 5.1.
2836         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2837         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2838         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2840         not HAVE_UNSETENV.
2841         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2842         HAVE_UNSETENV.
2843         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2844
2845 2010-12-19  Bruno Haible  <bruno@clisp.org>
2846
2847         setenv: Add missing declaration on OSF/1 5.1.
2848         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2850         declared. Don't set HAVE_SETENV.
2851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2852         not HAVE_SETENV.
2853         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2854         HAVE_SETENV.
2855         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2856
2857 2010-12-19  Bruno Haible  <bruno@clisp.org>
2858
2859         nl_langinfo tests: Avoid gcc warning.
2860         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2861
2862 2010-12-19  Bruno Haible  <bruno@clisp.org>
2863
2864         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2865         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2866         _GL_CXXALIAS_SYS.
2867
2868 2010-12-19  Bruno Haible  <bruno@clisp.org>
2869
2870         stdbool: Relax test.
2871         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2872         address to 'bool' work in static initializer, for compilers other than
2873         GCC.
2874
2875 2010-12-19  Bruno Haible  <bruno@clisp.org>
2876
2877         ftello: Add missing declaration on OSF/1 5.1.
2878         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2879         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2881         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2882         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2883
2884 2010-12-19  Bruno Haible  <bruno@clisp.org>
2885
2886         fseeko: Add missing declaration on OSF/1 5.1.
2887         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2888         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2890         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2891         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2892
2893 2010-12-19  Bruno Haible  <bruno@clisp.org>
2894
2895         fchdir: Add missing declaration on OSF/1 5.1.
2896         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2899         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2900         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2901
2902 2010-12-19  Bruno Haible  <bruno@clisp.org>
2903
2904         relocatable-prog-wrapper: Separate from relocatable-prog.
2905         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2906         uninstall-relocwrapper rule here.
2907         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2908         Reported by Ian Beckwith <ianb@erislabs.net>.
2909
2910 2010-12-19  Bruno Haible  <bruno@clisp.org>
2911
2912         unistr/u8-mbsnlen: Add missing dependency.
2913         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2914         Reported by Ian Beckwith <ianb@erislabs.net>.
2915
2916 2010-12-19  Bruno Haible  <bruno@clisp.org>
2917
2918         iconv: Make it possible again to use this module without 'iconv-h'.
2919         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2920         if it is not defined.
2921         Reported by Ian Beckwith <ianb@erislabs.net>.
2922
2923 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2924
2925         acl: port to Solaris 8 when copying from tmpfs to ufs
2926         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2927         error number.  Problem observed on Solaris 8 with latest
2928         coreutils, with "mv A B", where A is on a tmpfs file system and B
2929         is on a ufs file system.  This caused coreutils' mv/part-symlink
2930         test to fail.
2931
2932         tests: set fail=0 at start
2933         * tests/init.sh (setup_): Move fail=0 initialization here ...
2934         (mktempd_): ... from here, so that tests can rely on fail being
2935         set to 0 initially.  This fixes a problem in coreutils; see:
2936         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2937
2938 2010-12-18  Bruno Haible  <bruno@clisp.org>
2939
2940         memmem-simple: Stylistic changes.
2941         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2942         Fix preprocessor directive indentation.
2943
2944 2010-12-15  Pádraig Brady <P@draigBrady.com>
2945
2946         memmem, memmem-simple: reorganize and expand empty needle check
2947         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2948         functional checks to memmem-simple so that one has a fully functional
2949         memmem by using just this module.
2950         Restrict the performance only check to the memmem module.
2951         Also expand the empty needle check to ensure the correct
2952         pointer is returned, not just a non NULL pointer.
2953         * doc/glibc-functions/memmem.texi: Rearrange the portability
2954         documentation to correlate with the rearranged checks.
2955         Clarify exactly how the memmem and memmem-simple modules
2956         relate to each other.
2957
2958 2010-12-15  Pádraig Brady <P@draigBrady.com>
2959             Bruno Haible  <bruno@clisp.org>
2960
2961         Improve cross-compilation guesses for uClibc.
2962         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2963         that uClibc does not have the glibc bug.
2964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2965         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2966
2967 2010-12-14  Eric Blake  <eblake@redhat.com>
2968
2969         configmake: provide fallbacks for oldest supported autotools
2970         * m4/configmake.m4: New file.
2971         * modules/configmake (Files): Ship it.
2972         (configure.ac): Use it to guarantee fallbacks.
2973
2974 2010-12-13  Pádraig Brady <P@draigBrady.com>
2975
2976         read-file: Improve handling of large files
2977         * lib/read-file.c (fread_file): Minimize realloc()s
2978         for regular files, and better manage sizes around SIZE_MAX.
2979
2980 2010-12-13  Eric Blake  <eblake@redhat.com>
2981
2982         cloexec, fcntl: relax license
2983         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2984         consent from all contributors.
2985         * modules/fcntl (License): Likewise.
2986
2987 2010-12-10  Bruno Haible  <bruno@clisp.org>
2988
2989         Tests for module 'pipe-posix'.
2990         * modules/pipe-posix-tests: New file.
2991         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2992
2993 2010-12-10  Bruno Haible  <bruno@clisp.org>
2994
2995         pipe-posix: Make it work in C++ mode.
2996         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2997         (pipe): Use common idiom, not a macro definition.
2998         * lib/pipe.c: New file.
2999         * m4/pipe.m4: New file.
3000         * modules/pipe-posix (Description): Enhance.
3001         (Files): Add lib/pipe.c, m4/pipe.m4.
3002         (configure.ac): Invoke gl_FUNC_PIPE.
3003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
3004         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
3005         * tests/test-unistd-c++.cc: Check the signature of pipe.
3006
3007 2010-12-10  Bruno Haible  <bruno@clisp.org>
3008
3009         Rename module 'pipe' to 'spawn-pipe'.
3010         * modules/spawn-pipe: New file, renamed from modules/pipe.
3011         (Files, configure.ac, Makefile.am): Update.
3012         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
3013         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
3014         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
3015         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
3016         "spawn-pipe.h" instead of "pipe.h".
3017         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
3018         to gl_SPAWN_PIPE.
3019         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
3020         (Files, Makefile.am): Update.
3021         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
3022         Update.
3023         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3024         Include "spawn-pipe.h" instead of "pipe.h".
3025         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3026         * lib/javacomp.c: Likewise.
3027         * lib/javaversion.c: Likewise.
3028         * lib/pipe-filter-gi.c: Likewise.
3029         * lib/pipe-filter-ii.c: Likewise.
3030         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
3031         * modules/javacomp (Depends-on): Likewise.
3032         * modules/javaversion (Depends-on): Likewise.
3033         * modules/pipe-filter-gi (Depends-on): Likewise.
3034         * modules/pipe-filter-ii (Depends-on): Likewise.
3035         * MODULES.html.sh (Executing programs): Update.
3036         * NEWS: Mention the change.
3037
3038 2010-12-10  Eric Blake  <eblake@redhat.com>
3039
3040         pipe-posix: new module
3041         * modules/pipe-posix: New file.
3042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
3043         (gl_UNISTD_H): Check for declaration.
3044         * modules/unistd (Makefile.am): Substitute it.
3045         * lib/unistd.in.h (pipe): Provide it for mingw.
3046         * doc/posix-functions/pipe.texi (pipe): Update documentation.
3047         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
3048
3049 2010-12-07  Bruno Haible  <bruno@clisp.org>
3050
3051         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
3052         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
3053         u8_strcmp_gnu.
3054         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
3055
3056 2010-12-06  Bruno Haible  <bruno@clisp.org>
3057
3058         Update internal documentation.
3059         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
3060
3061 2010-12-04  Bruno Haible  <bruno@clisp.org>
3062
3063         Put more information about failed tests into the test return codes.
3064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
3065         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
3066         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3068         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3070         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3071         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3072         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
3073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3075         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3076         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3077         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3078         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3079         returns a bit mask.
3080         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3081         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3082         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3083         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3084         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3087         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3088         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3089         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3090         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3091         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3092         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3094         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3095         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3096         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3097         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3098         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3100         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3101         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3102         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3103         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3104         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3105         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3106         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3107         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3108         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3109         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3110         gl_PRINTF_PRECISION): Likewise.
3111         * m4/regex.m4 (gl_REGEX): Likewise.
3112         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3113         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3114         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3115         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3119         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3120         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3121         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3122         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3123         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3124         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3125         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3126         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3127         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3128         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3131         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
3132         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
3133         enumerated value.
3134         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
3135
3136 2010-12-04  Bruno Haible  <bruno@clisp.org>
3137
3138         Update for Solaris 11 2010-11.
3139         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
3140         Express, released in November 2010.
3141
3142 2010-12-04  Bruno Haible  <bruno@clisp.org>
3143
3144         nproc: Relax license.
3145         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
3146         and Paul Eggert.
3147         Requested by Ludovic Courtès <ludo@gnu.org>.
3148
3149 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
3150
3151         utimecmp: fine-grained src to nearby coarse-grained dest
3152
3153         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
3154         and the source is on a file system with higher-resolution time
3155         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
3156         not work, and the time stamps are close together, the algorithm to
3157         determine the exact resolution from the read-back mtime was buggy:
3158         it had a "!=" where it should have had an "==".  This bug has been
3159         in the code ever since it was introduced to gnulib.
3160         Problem reported by Dan Jacobson in
3161         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
3162
3163 2010-11-30  Bruno Haible  <bruno@clisp.org>
3164
3165         strerror_r-posix: Fix autoconf test.
3166         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
3167
3168 2010-11-28  Bruno Haible  <bruno@clisp.org>
3169             Paul Eggert  <eggert@cs.ucla.edu>
3170
3171         Tests for module 'getdomainname'.
3172         * modules/getdomainname-tests: New file.
3173         * tests/test-getdomainname.c: New file, based on
3174         tests/test-gethostname.c.
3175
3176 2010-11-28  Bruno Haible  <bruno@clisp.org>
3177             Paul Eggert  <eggert@cs.ucla.edu>
3178
3179         getdomainname: Use the system function when possible.
3180         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
3181         (getdomainname): Replace if needed. Provide the declaration if it is
3182         missing. Don't use _GL_CXXALIAS_SYS_CAST.
3183         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
3184         (getdomainname): When the system has getdomainname, call the system
3185         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
3186         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
3187         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
3188         found in libnsl. Look for the declaration also in <netdb.h>. Replace
3189         the function if its second argument is of type 'int' or if it is found
3190         in libnsl.
3191         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
3192         <sys/systeminfo.h> and sysinfo().
3193         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
3194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3195         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
3196         HAVE_GETDOMAINNAME.
3197         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
3198         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
3199         * doc/glibc-functions/getdomainname.texi: Document the problems with
3200         the getdomainname declaration.
3201
3202 2010-11-28  Bruno Haible  <bruno@clisp.org>
3203
3204         sys_socket: Ensure ss_family field on AIX.
3205         * lib/sys_socket.in.h (ss_family): New macro definition.
3206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
3207         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
3208         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
3209         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3210         * modules/sys_socket (Makefile.am): Substitute
3211         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
3212         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
3213
3214 2010-11-27  Bruno Haible  <bruno@clisp.org>
3215
3216         readline: Improve configure output.
3217         * m4/readline.m4 (gl_FUNC_READLINE): Make the
3218         "checking for readline..." result understandable.
3219
3220 2010-11-27  Bruno Haible  <bruno@clisp.org>
3221
3222         *printf-posix: Detect a bug on Solaris 10/x86.
3223         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
3224         for floating-point output.
3225         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
3226         directive.
3227         * tests/test-snprintf-posix.h (test_function): Likewise.
3228         * tests/test-sprintf-posix.h (test_function): Likewise.
3229         * tests/test-vasprintf-posix.c (test_function): Likewise.
3230         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
3231         * doc/posix-functions/printf.texi: Likewise.
3232         * doc/posix-functions/snprintf.texi: Likewise.
3233         * doc/posix-functions/sprintf.texi: Likewise.
3234         * doc/posix-functions/vfprintf.texi: Likewise.
3235         * doc/posix-functions/vprintf.texi: Likewise.
3236         * doc/posix-functions/vsnprintf.texi: Likewise.
3237         * doc/posix-functions/vsprintf.texi: Likewise.
3238         * doc/glibc-functions/obstack_printf.texi: Likewise.
3239         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3240
3241 2010-11-27  Bruno Haible  <bruno@clisp.org>
3242
3243         Fix link error when module libunistring-optional is in use.
3244         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
3245         * modules/striconveha-tests (Makefile.am): Likewise.
3246
3247 2010-11-27  Bruno Haible  <bruno@clisp.org>
3248
3249         regex: Mention link dependencies.
3250         * modules/regex (Link): New section.
3251         * modules/rpmatch (Link): Likewise.
3252         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
3253
3254 2010-11-27  Bruno Haible  <bruno@clisp.org>
3255
3256         ftoastr: Fix compilation error on Solaris.
3257         * lib/ftoastr.c: Include <config.h>.
3258
3259 2010-11-27  Bruno Haible  <bruno@clisp.org>
3260
3261         getloadavg: Update documentation.
3262         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3263
3264 2010-11-27  Bruno Haible  <bruno@clisp.org>
3265
3266         sys_socket: Fix test whether the functions are declared.
3267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3268         not <sys/select.h>.
3269
3270 2010-11-27  Bruno Haible  <bruno@clisp.org>
3271
3272         getpass: Make sure to get system declaration on some platforms.
3273         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3274         gl_USE_SYSTEM_EXTENSIONS.
3275         * modules/getpass (Depends-on): Add extensions.
3276
3277 2010-11-26  Bruno Haible  <bruno@clisp.org>
3278
3279         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3280         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3281         'iconv' module is present.
3282         (ICONV_CONST): New macro.
3283         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3284         ICONV_CONST.
3285         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3286         set ICONV_CONST.
3287         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3288         here.
3289         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3290         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3291         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3292         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3293         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3294         present.
3295
3296 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         ftoastr: comment fix
3299         * lib/ftoastr.c: "little" -> "little or no" in comment
3300
3301 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3302
3303         stdint: port to GCC 4.3 + OSX + Octave
3304         On this platform, stdint.h is buggy and defines int64_t to long
3305         long int.  The replacement defined it to long int, causing
3306         problems with C++ style name mangling.  Instead, trust the system
3307         definition if INT64_MAX is defined, and likewise for the unsigned
3308         variant.   Problem reported by Jarno Rajahalme in
3309         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3310         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3311         and don't mess with int64_t and INT64_MAX in this case.
3312         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3313
3314 2010-11-24  Bruno Haible  <bruno@clisp.org>
3315
3316         doc: Corrections regarding MacOS X 10.4 and 10.5.
3317         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3318         MacOS X.
3319         Reported by Simon Josefsson.
3320
3321 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3322
3323         Uninstall ".bin" files installed by relocwrapper.
3324         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3325         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3326         unless it is already there.
3327
3328 2010-11-21  Bruno Haible  <bruno@clisp.org>
3329
3330         Update for NetBSD 5.0.
3331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3332         NetBSD; the test fails on NetBSD 5.0.
3333         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3334         about NetBSD.
3335
3336 2010-11-21  Bruno Haible  <bruno@clisp.org>
3337
3338         Update for HP-UX 11.23 and HP-UX 11.31.
3339         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3340         HP-UX.
3341
3342 2010-11-21  Bruno Haible  <bruno@clisp.org>
3343
3344         Update for MacOS X 10.5.
3345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3346         MacOS X; the test fails on MacOS X 10.5.8.
3347         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3348         about MacOS X.
3349
3350 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3351
3352         bootstrap: add bootstrap_sync option.
3353         See discussion at
3354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3356         * build-aux/bootstrap: Accept --bootstrap-sync to update
3357         bootstrap if it is not identical to the local gnulib's
3358         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3359         enable this by default.  Accept --no-bootstrap-sync to disable
3360         it.
3361
3362 2010-11-20  Bruno Haible  <bruno@clisp.org>
3363
3364         Ensure that <features.h> is included before __GLIBC__ is tested.
3365         * lib/printf-parse.h: Include <features.h>.
3366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3367         Reported by Mike Frysinger <vapier@gentoo.org>.
3368
3369         Ensure that <features.h> is included before __GLIBC__ is tested.
3370         * lib/wchar.in.h: Include <features.h>.
3371         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3372         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3373         Reported by Mike Frysinger <vapier@gentoo.org>.
3374
3375         Ensure that <features.h> is included before __GLIBC__ is tested.
3376         * lib/arpa_inet.in.h: Include <features.h>.
3377         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3378         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3379         Reported by Mike Frysinger <vapier@gentoo.org>.
3380
3381         Ensure that <features.h> is included before __GLIBC__ is tested.
3382         * build-aux/link-warning.h: Include <features.h>.
3383         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3384         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3385         Reported by Mike Frysinger <vapier@gentoo.org>.
3386
3387         Ensure that <features.h> is included before __GLIBC__ is tested.
3388         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3389         Reported by Mike Frysinger <vapier@gentoo.org>.
3390
3391 2010-11-20  Bruno Haible  <bruno@clisp.org>
3392
3393         memmem: Fix autoconf test.
3394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3395
3396 2010-11-20  Bruno Haible  <bruno@clisp.org>
3397
3398         Port to uClibc.
3399         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3400         * lib/fcntl.in.h: Likewise.
3401         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3402         * lib/mbrtowc.c (mbrtowc): Likewise.
3403         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3404         * lib/strerror_r.c: Likewise.
3405         * lib/unistr/u8-strnlen.c: Likewise.
3406         * lib/vasnprintf.c (decimal_point_char): Likewise.
3407         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3410         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3411         * tests/test-sigaction.c (handler, main): Likewise.
3412         * lib/freading.h: Treat uClibc like a non-glibc platform.
3413         * lib/freading.c: Likewise.
3414         * lib/gettext.h: Likewise.
3415         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3416         Likewise.
3417         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3418         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3419         * lib/propername.c (proper_name_utf8): Likewise.
3420         * lib/spawn.in.h: Likewise.
3421         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3422         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3423         mem_cd_iconveh_internal): Likewise.
3424         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3425         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3426         strstr, strcasestr): Likewise.
3427         * lib/unicodeio.c (unicode_to_mb): Likewise.
3428         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3429         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3430         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3431         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3432         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3433         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3434         * lib/unistr/u8-stpncpy.c: Likewise.
3435         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3436         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3437         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3438         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3439         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3440         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3441         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3444         Likewise.
3445         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3446         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3450         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3451         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3452         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3453         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3454         * tests/test-striconveha.c (main): Likewise.
3455         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3456         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3457         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3458         * doc/posix-functions/getline.texi: Likewise.
3459         Reported by Mike Frysinger <vapier@gentoo.org>.
3460
3461 2010-11-20  Bruno Haible  <bruno@clisp.org>
3462
3463         nproc: Fix condition.
3464         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3465         HAVE_PTHREAD_AFFINITY_NP.
3466
3467 2010-11-20  Bruno Haible  <bruno@clisp.org>
3468
3469         Fix a comment.
3470         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3471
3472 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         ftoastr: don't assume snprintf
3475         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3476         Implement a subset of snprintf here, by using sprintf safely.
3477         * modules/ftoastr (Depends-on): Remove snprintf.
3478
3479 2010-11-19  Jim Meyering  <meyering@redhat.com>
3480
3481         test-rename.h: fix compilation failure
3482         * tests/test-rename.h (test_rename): Add omitted "}".
3483
3484 2010-11-17  Jim Meyering  <meyering@redhat.com>
3485
3486         maint.mk: add a URL discussing the no-@acronym policy
3487         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3488
3489 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3490
3491         ftoastr: depend on snprintf, improve comments
3492         * lib/ftoastr.c: Also mention Loitsch's draft.
3493         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3494         needed in the current implementation, but it might simplify
3495         speeding up the code later.
3496         * modules/ftoastr: Depend on snprintf; this improves portability.
3497         Suggested by Bruno Haible in the same email.
3498
3499         ftoastr: port to hosts lacking strtof and strtold
3500         Problem reported by Bruno Haible in
3501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3502         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3503         environment and strtold (and presumably strtof) are not available.
3504         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3505         (configure.ac): Require gl_C99_STRTOLD.
3506
3507 2010-11-18  Bruno Haible  <bruno@clisp.org>
3508
3509         c-strtold: Avoid link error on AIX 7.
3510         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3511         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3512         (gl_C_STRTOLD): Test whether strtold_l exists.
3513         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3514
3515 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3516
3517         intprops: new macro INT_BITS_STRLEN_BOUND
3518         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3519         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3520         not exposed.  Also, it uses a slightly tighter bound than before;
3521         though this makes no practical difference, we might as well be as
3522         tight as we easily can.
3523
3524         ftoastr: new module, for lossless conversion of floats to short strings
3525         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3526         * modules/ftoastr: New files.
3527
3528 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3529
3530         bootstrap: port to Solaris sed
3531         * build-aux/bootstrap (get_version): Port to Solaris sed.
3532         See Ralf Wildenhues's note in
3533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3534
3535 2010-11-14  Jim Meyering  <meyering@redhat.com>
3536
3537         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3538         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3539         and move definition closer to sole use.
3540
3541 2010-11-13  Jim Meyering  <meyering@redhat.com>
3542
3543         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3544         Now we require at least autoconf-2.59, which means the work-around
3545         is no longer needed.
3546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3547         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3548         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3549         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3550         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3551
3552 2010-11-13  Bruno Haible  <bruno@clisp.org>
3553
3554         rename, renameat: Avoid test failures at NFS mounted locations.
3555         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3556         functions.
3557         (test_rename): Use assert_nonexistent.
3558         * tests/test-rename.c: Include <dirent.h>.
3559         * tests/test-renameat.c: Likewise.
3560         Reported by Gary V. Vaughan <gary@gnu.org>.
3561
3562         rename, renameat: Document Linux bug with NFS
3563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3564         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3565         * doc/posix-functions/renameat.texi: Likewise.
3566         Suggested by Eric Blake.
3567
3568 2010-11-13  Bruno Haible  <bruno@clisp.org>
3569
3570         rename test: Add comments.
3571         * tests/test-rename.h (test_rename): Add structure and comments.
3572
3573 2010-11-13  Eric Blake  <eblake@redhat.com>
3574
3575         maintainer-makefile: cover a few more files
3576         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3577         scripts generated within C files, for libvirt.
3578
3579 2010-11-13  Bruno Haible  <bruno@clisp.org>
3580
3581         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3582         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3583         character, return the number of bytes that belong together, not always
3584         1.
3585         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3586         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3587         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3588         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3589         number of bytes of an invalid character.
3590         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3591         (main): Invoke it.
3592         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3593         results.
3594         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3595         malformed byte sequences.
3596         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3597         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3598         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3599         Reported by Ben Pfaff and Paolo Bonzini.
3600
3601 2010-11-13  Bruno Haible  <bruno@clisp.org>
3602
3603         openat: Work around glibc bug with fchownat() and empty file names.
3604         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3605         (gl_FUNC_FCHOWNAT): Invoke it.
3606         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3607         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3608         Reported by Gary V. Vaughan <gary@gnu.org>.
3609
3610 2010-11-13  Bruno Haible  <bruno@clisp.org>
3611
3612         openat: Ensure autoconf macro ordering.
3613         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3614         gl_USE_SYSTEM_EXTENSIONS.
3615         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3616
3617 2010-11-13  Bruno Haible  <bruno@clisp.org>
3618
3619         Update comments.
3620         * lib/unistr/u8-check.c: Update file name in comments.
3621         * lib/unistr/u8-mblen.c: Likewise.
3622         * lib/unistr/u8-prev.c: Likewise.
3623         * lib/unistr/u8-strmblen.c: Likewise.
3624         * lib/unistr/u8-strmbtouc.c: Likewise.
3625
3626 2010-11-13  Jim Meyering  <meyering@redhat.com>
3627
3628         tests: avoid test failure on Solaris 10 due to lack of PATH export
3629         * tests/test-update-copyright.sh: Don't forget to export PATH.
3630
3631         init.sh: ensure that IFS is defined, just in case...
3632         * tests/init.sh (setup_): Ensure that IFS is defined,
3633         so that saving and restoring it works as expected.  This
3634         appears to be useful at least for an old version of dash
3635         from a long time ago (RH 6).  See here for details:
3636         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3637
3638         maint.mk: tighten "test a == b" check
3639         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3640         test to files that contain something like #!/bin/sh.
3641         Without this, coreutils would get two false positives in
3642         the comments of C source files.
3643
3644 2010-11-12  Eric Blake  <eblake@redhat.com>
3645
3646         bootstrap: fix typo in previous attempt
3647         * build-aux/bootstrap (buildreq): Correct the grouping.
3648         Reported by Paul Eggert.
3649
3650         maintainer-makefile: prohibit test x == x
3651         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3652         Based on a report by Matthias Bolte.
3653
3654         bootstrap: allow FreeBSD gzip
3655         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3656         which has no '.' and goes to stderr.
3657         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3658         Reported by Matthias Bolte.
3659
3660         maintainer-makefile: check for i18n setup
3661         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3662         will likely work.
3663
3664 2010-11-12  Bruno Haible  <bruno@clisp.org>
3665
3666         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3667         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3668         * lib/nanosleep.c (nanosleep): Likewise.
3669
3670 2010-11-11  Bruno Haible  <bruno@clisp.org>
3671
3672         fcntl-h: Fix for use of C++ on glibc systems.
3673         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3674         also on glibc systems in C++ mode.
3675         Reported by Gary V. Vaughan <gary@gnu.org>.
3676
3677 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3678
3679         mknod: avoid false failure with dash
3680         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3681
3682 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3683
3684         unlink: Fix "is it should" typo in diagnostic.
3685         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3687
3688 2010-11-11  Bruno Haible  <bruno@clisp.org>
3689
3690         Tests for module 'strerror_r-posix'.
3691         * modules/strerror_r-posix-tests: New file.
3692         * tests/test-strerror_r.c: New file.
3693         * tests/test-string-c++.cc: Check the signature of strerror_r.
3694
3695         New module 'strerror_r-posix'.
3696         * lib/string.in.h (strerror_r): New declaration.
3697         * lib/strerror_r.c: New file.
3698         * m4/strerror_r.m4: New file.
3699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3700         of strerror_r.
3701         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3702         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3703         * modules/strerror_r-posix: New file.
3704         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3705         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3706         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3707         portability problems.
3708
3709 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3710
3711         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3712         line is also considered for output. Quoted function name in shell
3713         command, so temporary files for functions like MyClass::operator()
3714         are removed correctly without errors.
3715
3716 2010-11-09  Bruno Haible  <bruno@clisp.org>
3717
3718         * doc/posix-functions/strerror.texi: List more failing platforms.
3719
3720         * doc/posix-functions/strerror.texi: Add a comment.
3721
3722 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3723
3724         fdopendir: fix bug on MacOS X when low on file descriptors
3725
3726         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3727         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3728         All callers changed.
3729         (fdopendir): Invoke save_cwd at the top level, not after using
3730         multiple dup() calls to use up file descriptors.  Then retry
3731         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3732         less than the maximum number of open file descriptors, because
3733         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3734         on Mac OS X 10.6.4 for tar 1.24
3735         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3736         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3737         and for tar 1.25
3738         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3739
3740 2010-11-07  Bruno Haible  <bruno@clisp.org>
3741
3742         vasnprintf: Support I flag on glibc systems.
3743         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3744         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3745         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3746         snprintf function.
3747         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3748         glibc systems.
3749         * tests/test-vasnprintf-posix3.c: New file.
3750         * modules/vasnprintf-posix-tests (Files): Add it.
3751         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3752
3753 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3754
3755         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3756         * MODULES.html.sh: For compiler warnings, use name
3757         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3758
3759 2010-11-05  Eric Blake  <eblake@redhat.com>
3760
3761         ceil, floor: avoid spurious failure with icc
3762         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3763         [denormals-as-zero] when optimizing without -mieee-fp option.
3764         * tests/test-floorf2.c (floorf_reference): Likewise.
3765         * tests/test-ceilf1.c (dummy): New function.
3766         (main): Use it to outsmart icc's optimization.
3767         * tests/test-floorf1.c (dummy, main): Likewise.
3768
3769         tests: require working signbit
3770         * modules/ceilf-tests (Depends-on): Add signbit.
3771         * modules/ceill-tests (Depends-on): Likewise.
3772         * modules/floorf-tests (Depends-on): Likewise.
3773         * modules/floorl-tests (Depends-on): Likewise.
3774         * modules/round-tests (Depends-on): Likewise.
3775         * modules/roundf-tests (Depends-on): Likewise.
3776         * modules/roundl-tests (Depends-on): Likewise.
3777         * modules/trunc-tests (Depends-on): Likewise.
3778         * modules/truncf-tests (Depends-on): Likewise.
3779         * modules/truncl-tests (Depends-on): Likewise.
3780
3781         strtod: work around icc bug
3782         * lib/strtod.c (minus_zero): Define to working value.
3783         (strtod): Use it to avoid icc bug.
3784
3785         copysign: enhance tests
3786         * modules/copysign-tests (Files): Add minus-zero.h.
3787         * tests/test-copysign.c (main): Also test zeros.
3788
3789 2010-11-04  Eric Blake  <eblake@redhat.com>
3790
3791         ceil, floor, round, trunc: enhance tests of -0
3792         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3793         * tests/test-ceill.c (main): Likewise.
3794         * tests/test-floorf1.c (main): Likewise.
3795         * tests/test-floorl.c (main): Likewise.
3796         * tests/test-round1.c (main): Likewise.
3797         * tests/test-roundf1.c (main): Likewise.
3798         * tests/test-roundl.c (main): Likewise.
3799         * tests/test-trunc1.c (main): Likewise.
3800         * tests/test-truncf1.c (main): Likewise.
3801         * tests/test-truncl.c (main): Likewise.
3802
3803 2010-11-04  Eric Blake  <eblake@redhat.com>
3804
3805         frexp, tests: work around ICC bug with -zero
3806         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3807         works with more compilers.
3808         * tests/minus-zero.h: New file.
3809         * modules/ceilf-tests (Files): Include it.
3810         * modules/ceill-tests (Files): Likewise.
3811         * modules/floorf-tests (Files): Likewise.
3812         * modules/floorl-tests (Files): Likewise.
3813         * modules/frexp-nolibm-tests (Files): Likewise.
3814         * modules/frexp-tests (Files): Likewise.
3815         * modules/frexpl-nolibm-tests (Files): Likewise.
3816         * modules/frexpl-tests (Files): Likewise.
3817         * modules/isnan-tests (Files): Likewise.
3818         * modules/isnand-nolibm-tests (Files): Likewise.
3819         * modules/isnand-tests (Files): Likewise.
3820         * modules/isnanf-nolibm-tests (Files): Likewise.
3821         * modules/isnanf-tests (Files): Likewise.
3822         * modules/isnanl-nolibm-tests (Files): Likewise.
3823         * modules/isnanl-tests (Files): Likewise.
3824         * modules/round-tests (Files): Likewise.
3825         * modules/roundf-tests (Files): Likewise.
3826         * modules/roundl-tests (Files): Likewise.
3827         * modules/ldexpl-tests (Files): Likewise.
3828         * modules/signbit-tests (Files): Likewise.
3829         * modules/snprintf-posix-tests (Files): Likewise.
3830         * modules/sprintf-posix-tests (Files): Likewise.
3831         * modules/strtod-tests (Files): Likewise.
3832         * modules/trunc-tests (Files): Likewise.
3833         * modules/truncf-tests (Files): Likewise.
3834         * modules/truncl-tests (Files): Likewise.
3835         * modules/vsnprintf-posix-tests (Files): Likewise.
3836         * modules/vsprintf-posix-tests (Files): Likewise.
3837         * modules/vasnprintf-posix-tests (Files): Likewise.
3838         * modules/vasprintf-posix-tests (Files): Likewise.
3839         * tests/test-ceilf1.c (main): Use it.
3840         * tests/test-ceill.c (main): Likewise.
3841         * tests/test-floorf1.c (main): Likewise.
3842         * tests/test-floorl.c (main): Likewise.
3843         * tests/test-frexp.c (main): Likewise.
3844         * tests/test-frexpl.c (main): Likewise.
3845         * tests/test-isnan.c (main): Likewise.
3846         * tests/test-isnand.h (main): Likewise.
3847         * tests/test-isnanf.h (main): Likewise.
3848         * tests/test-isnanl.h (main): Likewise.
3849         * tests/test-ldexpl.c (main): Likewise.
3850         * tests/test-round.c (main): Likewise.
3851         * tests/test-roundf.c (main): Likewise.
3852         * tests/test-roundl.c (main): Likewise.
3853         * tests/test-signbit.c (test_signbitf, test_signbitd)
3854         (test_signbitl): Likewise.
3855         * tests/test-snprintf-posix.h (test_function): Likewise.
3856         * tests/test-sprintf-posix.h (test_function): Likewise.
3857         * tests/test-strtod.c (main): Likewise.
3858         * tests/test-trunc1.c (main): Likewise.
3859         * tests/test-truncf1.c (main): Likewise.
3860         * tests/test-truncl.c (main): Likewise.
3861
3862         isnanl: work around icc bug
3863         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3864
3865 2010-11-03  Eric Blake  <eblake@redhat.com>
3866
3867         tests: fix compiler warnings
3868         * tests/test-getopt.h (test_getopt): Fix condition.
3869         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3870         * tests/test-pipe2.c (main): Likewise.
3871         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3872
3873         utimens: fix broken m4 test
3874         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3875
3876 2010-10-28  Bruno Haible  <bruno@clisp.org>
3877
3878         posix_spawn*, getdtablesize: Relax license.
3879         * modules/posix_spawn (License): Change to LGPLv2+.
3880         * modules/posix_spawnp (License): Likewise.
3881         * modules/posix_spawn-internal (License): Likewise.
3882         * modules/posix_spawnattr_init (License): Likewise.
3883         * modules/posix_spawnattr_getflags (License): Likewise.
3884         * modules/posix_spawnattr_setflags (License): Likewise.
3885         * modules/posix_spawnattr_getpgroup (License): Likewise.
3886         * modules/posix_spawnattr_setpgroup (License): Likewise.
3887         * modules/posix_spawnattr_getschedparam (License): Likewise.
3888         * modules/posix_spawnattr_setschedparam (License): Likewise.
3889         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3890         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3891         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3892         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3893         * modules/posix_spawnattr_getsigmask (License): Likewise.
3894         * modules/posix_spawnattr_setsigmask (License): Likewise.
3895         * modules/posix_spawnattr_destroy (License): Likewise.
3896         * modules/posix_spawn_file_actions_init (License): Likewise.
3897         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3898         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3899         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3900         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3901         * modules/getdtablesize (License): Likewise.
3902         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3903
3904 2010-10-26  Bruno Haible  <bruno@clisp.org>
3905
3906         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3907         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3908         Cygwin and mingw.
3909         Suggested by Eric Blake.
3910
3911 2010-10-26  Bruno Haible  <bruno@clisp.org>
3912
3913         stdio: Work around compilation error due to renameat() on Solaris 10.
3914         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3915         * lib/renameat.c: Don't include <unistd.h> here.
3916         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3917         Reported by Paul Eggert and Eric Blake.
3918
3919 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3920
3921         renameat: port to Solaris 10, which declares renameat in unistd.h
3922
3923         * lib/renameat.c: Include unistd.h before stdio.h, because
3924         Solaris 10 declares renameat in unistd.h.  Problem encountered
3925         when building GNU tar 1.24 on Solaris 10.
3926
3927 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3928
3929         fdopendir: fix C89 compilation
3930         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3931         compilers.
3932
3933 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3934
3935         inttostr: simplify by removing unnecessary redundancy
3936         * lib/anytostr.c: Don't include verify.h.
3937         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3938         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3939         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3940         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3941         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3942         Likewise.
3943         * modules/inttostr (Depends-on): Remove 'verify'.
3944
3945 2010-10-23  Bruno Haible  <bruno@clisp.org>
3946
3947         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3948         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3949         Reported by Eric Blake.
3950
3951 2010-10-23  Bruno Haible  <bruno@clisp.org>
3952
3953         Tests: Fix LOCALE_JA on MirBSD 10.
3954         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3955         to an UTF-8 locale.
3956         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3957         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3958         Reported by Eric Blake.
3959
3960 2010-10-21  Bruno Haible  <bruno@clisp.org>
3961
3962         nl_langinfo test: Avoid test failure on NetBSD 5.
3963         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3964         Reported by Eric Blake.
3965
3966 2010-10-21  Eric Blake  <eblake@redhat.com>
3967
3968         c-stack: work around libsigsegv 2.8 bug
3969         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3970         overflow on at least PowerPC64.
3971
3972 2010-10-17  Bruno Haible  <bruno@clisp.org>
3973
3974         userspec: Drop redundant file.
3975         * modules/userspec (Files): Remove lib/inttostr.h.
3976
3977 2010-10-17  Bruno Haible  <bruno@clisp.org>
3978
3979         nl_langinfo tests: Silence some warnings.
3980         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3981         Reported by Jim Meyering.
3982
3983 2010-10-17  Bruno Haible  <bruno@clisp.org>
3984
3985         Make use of GCC's attribute __alloc_size__.
3986         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3987         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3988         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3989         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3990         __alloc_size__.
3991         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3992         Suggested by Jim Meyering.
3993
3994 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3995
3996         bootstrap: anchor .gitignore entries.
3997         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3998         with...
3999         (insert_vc_ignore): ... this new function, which prepends `/' to
4000         all .gitignore entries before passing them to
4001         insert_sorted_if_absent.
4002
4003 2010-10-16  Bruno Haible  <bruno@clisp.org>
4004
4005         nextafter: Fix configure check.
4006         * modules/nextafter (configure.ac): Correct expected prototype.
4007
4008 2010-10-16  Bruno Haible  <bruno@clisp.org>
4009
4010         termios: Update documentation.
4011         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
4012
4013 2010-10-16  Bruno Haible  <bruno@clisp.org>
4014
4015         tests: Make them compile with TinyCC.
4016         * tests/test-strstr.c (main): Remove parentheses around array
4017         initializer.
4018
4019 2010-10-15  Eric Blake  <eblake@redhat.com>
4020
4021         ignore-value: make header idempotent
4022         * lib/ignore-value.h: Add double-inclusion guards.
4023         Reported by Stefan Berger.
4024
4025 2010-10-15  Jim Meyering  <meyering@redhat.com>
4026
4027         GNUmakefile: handle "stable" target, not "major"
4028         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
4029         lists in maint.mk and announce-gen.  Without this, "make stable"
4030         would fail to ensure that $(VERSION) is up to date.
4031
4032 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
4033
4034         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
4035         & co.
4036
4037 2010-10-14  Bruno Haible  <bruno@clisp.org>
4038
4039         vasnprintf: Don't set errno to 0.
4040         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
4041         block that sets it to 0.
4042         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4043
4044 2010-10-14  Bruno Haible  <bruno@clisp.org>
4045
4046         socketlib: Fix.
4047         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
4048         gl_PREREQ_SYS_H_WINSOCK2.
4049         Reported by Ian Beckwith <ianb@erislabs.net>.
4050
4051 2010-10-13  Jim Meyering  <meyering@redhat.com>
4052
4053         test-select-stdin.c: avoid warn_unused_result warnings
4054         * tests/test-select-stdin.c: Include "macros.h".
4055         ASSERT that read and fflush succeed.
4056
4057 2010-10-13  Jim Meyering  <meyering@redhat.com>
4058
4059         git-version-gen: do require git-VC'd files in cwd
4060         * build-aux/git-version-gen: Reject a git version string
4061         if there are no commits associated with the current directory.
4062         This avoids an unlikely false-positive (unrelated dir whose parent
4063         repository also contains a tag matching v*), as pointed out
4064         by Giuseppe Scrivano in
4065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
4066
4067 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4068
4069         argv-iter: omit nonconforming declaration
4070         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
4071         enum arg_iter_err declaration, which doesn't conform to C99.
4072         Solaris 10 cc warns about this.
4073
4074 2010-10-13  Eric Blake  <eblake@redhat.com>
4075
4076         termios: fix compilation on mingw
4077         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4078         (gl_TERMIOS_H): Adjust it on mingw.
4079         * modules/termios (Makefile.am): Substitute new key.
4080         * lib/termios.in.h (includes): Make include_next conditional.
4081         * doc/posix-headers/termios.texi (termios.h): Update
4082         documentation.
4083         Reported by Daniel P. Berrange.
4084
4085 2010-10-13  Jim Meyering  <meyering@redhat.com>
4086
4087         git-version-gen: don't require that .git/ be in the current dir
4088         * build-aux/git-version-gen: Adjust this script so that it works
4089         when run from any working directory beneath the top-level .git/-
4090         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4091         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4092
4093         test-select: avoid warn_unused_result warnings
4094         * tests/test-select.c: Include "macros.h".
4095         ASSERT that each call to read, write, and pipe succeeds.
4096         While not technically required, also check each "close".
4097         * modules/select-tests (Files): Add tests/macros.h.
4098
4099         test-symlinkat: remove declaration of unused local
4100         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4101
4102         test-inttostr: avoid shadowing warnings
4103         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4104         and use malloc rather than the stack for the same reason as
4105         mentioned in the comment justifying the other allocation.
4106
4107 2010-10-11  Bruno Haible  <bruno@clisp.org>
4108
4109         stdlib: Allow multiple gnulib generated replacements to coexist.
4110         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4111         Reported by Sam Steingold <sds@gnu.org>.
4112
4113 2010-10-11  Jim Meyering  <meyering@redhat.com>
4114
4115         fix a documentation typo
4116         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4117
4118 2010-10-11  Eric Blake  <eblake@redhat.com>
4119
4120         futimens: work around Solaris 11 bug
4121         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4122         * tests/test-futimens.h (test_futimens): Enhance, rather than
4123         weaken test.
4124         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4125
4126 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4127
4128         Indentation.
4129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
4130         higher-level operators more to the left.
4131
4132 2010-10-11  Jim Meyering  <meyering@redhat.com>
4133
4134         test-futimens: avoid unwarranted test failure on Solaris 5.11
4135         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
4136         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
4137         because it tries to dereference the NULL name argument.
4138
4139 2010-10-11  Bruno Haible  <bruno@clisp.org>
4140
4141         Indentation.
4142         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
4143         indentation.
4144
4145 2010-10-11  Jim Meyering  <meyering@redhat.com>
4146
4147         spawn.in.h: make indentation consistent with parentheses
4148         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
4149         Make indentation consistent with parentheses.
4150
4151 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
4152
4153         Fix mismatched parens in previous commit
4154         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
4155         parens.
4156
4157 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4158
4159         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
4160
4161         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
4162         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
4163         * lib/malloca.c: Include "verify.h".
4164         (verify1): Remove, replacing with a verify call.
4165         * lib/relocwrapper.c (verify1): Likewise.
4166         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
4167         Likewise.
4168         * modules/malloca (Depends-on): Add 'verify'.
4169         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
4170         * modules/vasnprintf (Depends-on): Add 'verify'.
4171         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4172         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4173         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4174         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4175         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4176         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4177         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4178
4179         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
4180
4181         Formerly the style was sometimes 2*X - 1, because the C standard
4182         was wrongly thought to disallow ?: in integral constant expressions.
4183         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
4184         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
4185         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4186         * lib/stdint.in.h (_verify_intmax_size): Likewise.
4187         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
4188         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
4189         verify that time_t cannot be floating.
4190
4191 2010-10-08  Eric Blake  <eblake@redhat.com>
4192
4193         time: enforce recent POSIX ruling that time_t is integral
4194         * lib/time.in.h (__time_t_must_be_integral): Detect any
4195         problematic systems, allowing the rest of gnulib to assume POSIX.
4196
4197 2010-10-08  Jim Meyering  <meyering@redhat.com>
4198
4199         fdopendir: fix a bug on systems lacking openat and /proc support
4200         OpenBSD 4.7 is one such system.  The most noticeable effect was
4201         failure of any application making nontrivial use of fts: rm, du,
4202         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
4203           ./rm: traversal failed: `a': Bad file descriptor
4204         Debugging that, you see that even though FD 6 was closed just
4205         prior to the opendir call in fd_clone_opendir, its resulting
4206         dir->dd_fd was 8, rather than the expected value of 6:
4207
4208         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
4209         93                close (fd);
4210         (gdb) n
4211         94                dir = fd_clone_opendir (dupfd);
4212         (gdb) n
4213         95                saved_errno = errno;
4214         (gdb) p dir->dd_fd
4215         $11 = 8
4216
4217         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
4218         The problem is that on OpenBSD, fd_clone_opendir has to resort
4219         to using the old-style save/restore CWD mechanism, due to its
4220         lack of openat/proc support, and *that* would steal the FD (6)
4221         that opendir was supposed to use.
4222
4223         The fix is to squirrel away the desired FD so that save_cwd uses a
4224         different one, and then free the dest FD right before calling opendir.
4225         That guarantees opendir will use the required file descriptor.
4226
4227         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
4228
4229 2010-10-08  Bruno Haible  <bruno@clisp.org>
4230
4231         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
4232         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
4233
4234 2010-10-08  Bruno Haible  <bruno@clisp.org>
4235
4236         nanosleep: Make replacement POSIX compliant.
4237         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
4238         is out of range.
4239         Reported by Jim Meyering.
4240
4241 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         bootstrap: add hook for altering gnulib.mk, for Bison
4244         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
4245         the Bison bootstrapping process can rewrite file names and variables
4246         in this file before later parts of 'bootstrap' use the file.
4247         Bison wants to include lib/gnulib.mk from the top-level makefile,
4248         so it needs the file names in this file to be relative to the top
4249         level, not relative to lib; plus it needs variable names to be
4250         rewritten.
4251         (slurp): Use the new function.
4252
4253         bootstrap: reformat for readability
4254         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4255
4256 2010-10-08  Eric Blake  <eblake@redhat.com>
4257
4258         docs: update cygwin progress
4259         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4260         1.7.7.
4261         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4262         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4263         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4264         * doc/posix-functions/carg.texi (carg): Likewise.
4265         * doc/posix-functions/cargf.texi (cargf): Likewise.
4266         * doc/posix-functions/casin.texi (casin): Likewise.
4267         * doc/posix-functions/casinf.texi (casinf): Likewise.
4268         * doc/posix-functions/casinh.texi (casinh): Likewise.
4269         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4270         * doc/posix-functions/catan.texi (catan): Likewise.
4271         * doc/posix-functions/catanf.texi (catanf): Likewise.
4272         * doc/posix-functions/catanh.texi (catanh): Likewise.
4273         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4274         * doc/posix-functions/ccos.texi (ccos): Likewise.
4275         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4276         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4277         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4278         * doc/posix-functions/cexp.texi (cexp): Likewise.
4279         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4280         * doc/posix-functions/cimag.texi (cimag): Likewise.
4281         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4282         * doc/posix-functions/clog.texi (clog): Likewise.
4283         * doc/posix-functions/clogf.texi (clogf): Likewise.
4284         * doc/posix-functions/conj.texi (conj): Likewise.
4285         * doc/posix-functions/conjf.texi (conjf): Likewise.
4286         * doc/posix-functions/cpow.texi (cpow): Likewise.
4287         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4288         * doc/posix-functions/cproj.texi (cproj): Likewise.
4289         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4290         * doc/posix-functions/creal.texi (creal): Likewise.
4291         * doc/posix-functions/crealf.texi (crealf): Likewise.
4292         * doc/posix-functions/csin.texi (csin): Likewise.
4293         * doc/posix-functions/csinf.texi (csinf): Likewise.
4294         * doc/posix-functions/csinh.texi (csinh): Likewise.
4295         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4296         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4297         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4298         * doc/posix-functions/ctan.texi (ctan): Likewise.
4299         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4300         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4301         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4302         * doc/posix-headers/complex.texi (complex.h): Likewise.
4303
4304 2010-10-07  Jim Meyering  <meyering@redhat.com>
4305
4306         parse-datetime: avoid compilation failure on OpenBSD 4.7
4307         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4308         This works around a compilation failure on OpenBSD 4.7:
4309         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4310
4311 2010-10-07  Eric Blake  <eblake@redhat.com>
4312
4313         docs: update cygwin progress
4314         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4315         1.7.6.
4316         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4317         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4318         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4319         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4320         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4321         Likewise.
4322         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4323         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4324         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4325         Likewise.
4326         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4327         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4328         Likewise.
4329         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4330         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4331         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4332         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4333         Likewise.
4334         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4335         Likewise.
4336         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4337
4338         docs: update parse-datetime history
4339         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4340         documentation of this function's history and alternatives.
4341
4342         cygwin: use more robust version check
4343         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4344         exclude an eventual cygwin 1.9.1.
4345         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4347         (gl_FUNC_STRCASESTR): Likewise.
4348         Reported by Bruno Haible.
4349
4350 2010-10-06  Bruno Haible  <bruno@clisp.org>
4351
4352         string, sys_select: Avoid #including large headers unless necessary.
4353         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4354         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4355         OSF/1, BeOS, Haiku.
4356         Reported by Jim Meyering.
4357
4358 2010-10-05  Eric Blake  <eblake@redhat.com>
4359
4360         memmem, strstr, strcasestr: fix bug with long periodic needle
4361         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4362         periodic needle having false positive.
4363         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4364         and cygwin 1.7.7.
4365         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4367         (gl_FUNC_STRCASESTR): Likewise.
4368         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4369         * tests/test-memmem.c (main): Expose the bug.
4370         * tests/test-strcasestr.c (main): Likewise.
4371         * tests/test-strstr.c (main): Likewise.
4372         * tests/test-c-strcasestr.c (main): Likewise.
4373         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4374         * doc/posix-functions/strstr.texi (strstr): Likewise.
4375         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4376         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4377
4378 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4379
4380         parse-datetime: do some more renaming
4381         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4382         parse_datetime, not get_date.  Mention the renaming.
4383         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4384         in comments.
4385         * m4/bison.m4: Likewise.
4386
4387 2010-10-05  Eric Blake  <eblake@redhat.com>
4388
4389         parse-datetime: better name than get_date
4390         * NEWS: Reword the deprecation notice.
4391         * modules/get_date: Rename to modules/parse-datetime.
4392         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4393         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4394         * lib/get_date.y: Rename to lib/parse-datetime.y.
4395         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4396         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4397         * doc/getdate.texi: Provide fallback wrapper.
4398         * lib/getdate.h: Move guts, and wrap...
4399         * lib/parse-datetime.h: ...new file.
4400         * lib/parse-datetime.y (get_date): Rename...
4401         (parse_datetime): ...to this.
4402         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4403         (gl_PARSE_DATETIME): ...to this.
4404         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4405         documentation.
4406         * modules/getdate (Files): Provide fallback docs and header.
4407         (Notice, Depends-on): Update references.
4408         * tests/test-parse-datetime.c: Likewise.
4409         * DEPENDENCIES: Likewise.
4410         * MODULES.html.sh (Date and time <time.h>): Likewise.
4411         * doc/parse-datetime.texi (Date input formats)
4412         (Authors of parse_datetime): Likewise.
4413         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4414         (Include): Likewise.
4415         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4416         * gnulib-tool: Likewise.
4417         * m4/bison.m4 (gl_BISON): Likewise.
4418         Suggested by Bruno Haible.
4419
4420 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4421
4422         more ports to Solaris tr, which needs [] around ranges
4423         * gnulib-tool: Solaris tr needs [] around ranges.
4424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4425         * tests/test-pipe-filter-gi1.c (main): Likewise.
4426         * tests/test-pipe-filter-ii1.c (main): Likewise.
4427
4428 2010-10-05  Eric Blake  <eblake@redhat.com>
4429
4430         bootstrap: fix Solaris regression
4431         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4432         around ranges.
4433         Reported by Pádraig Brady.
4434
4435         bootstrap: work with pkg-config
4436         * build-aux/bootstrap (check_versions): Also transliterate - in
4437         prerequisite name.
4438         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4439         prerequisites that were already found, to avoid confusion.
4440         Reported by Justin Clift.
4441
4442         faccessat: remove unused wrappers
4443         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4444         presence of these wrappers dragged in -lgen on Solaris.
4445         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4446
4447 2010-10-05  Jim Meyering  <meyering@redhat.com>
4448
4449         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4450         * Makefile (sc_pragma_columns): New syntax-check rule.
4451
4452 2010-10-04  Bruno Haible  <bruno@clisp.org>
4453
4454         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4455         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4456         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4457         Reported by Bruce Korb and Eric Blake.
4458
4459 2010-10-04  Bruno Haible  <bruno@clisp.org>
4460
4461         threadlib: Make option --with-libpth-prefix work.
4462         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4463         use $LIBPTH, not just -lpth.
4464
4465 2010-10-04  Bruno Haible  <bruno@clisp.org>
4466
4467         Avoid line length limitation from HP NonStop system header files.
4468         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4469         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4470         * lib/ctype.in.h: Likewise.
4471         * lib/dirent.in.h: Likewise.
4472         * lib/errno.in.h: Likewise.
4473         * lib/fcntl.in.h: Likewise.
4474         * lib/float.in.h: Likewise.
4475         * lib/getopt.in.h: Likewise.
4476         * lib/iconv.in.h: Likewise.
4477         * lib/inttypes.in.h: Likewise.
4478         * lib/langinfo.in.h: Likewise.
4479         * lib/locale.in.h: Likewise.
4480         * lib/math.in.h: Likewise.
4481         * lib/netdb.in.h: Likewise.
4482         * lib/netinet_in.in.h: Likewise.
4483         * lib/poll.in.h: Likewise.
4484         * lib/pthread.in.h: Likewise.
4485         * lib/pty.in.h: Likewise.
4486         * lib/sched.in.h: Likewise.
4487         * lib/se-selinux.in.h: Likewise.
4488         * lib/search.in.h: Likewise.
4489         * lib/signal.in.h: Likewise.
4490         * lib/spawn.in.h: Likewise.
4491         * lib/stdarg.in.h: Likewise.
4492         * lib/stddef.in.h: Likewise.
4493         * lib/stdint.in.h: Likewise.
4494         * lib/stdio.in.h: Likewise.
4495         * lib/stdlib.in.h: Likewise.
4496         * lib/string.in.h: Likewise.
4497         * lib/strings.in.h: Likewise.
4498         * lib/sys_file.in.h: Likewise.
4499         * lib/sys_ioctl.in.h: Likewise.
4500         * lib/sys_select.in.h: Likewise.
4501         * lib/sys_socket.in.h: Likewise.
4502         * lib/sys_stat.in.h: Likewise.
4503         * lib/sys_time.in.h: Likewise.
4504         * lib/sys_times.in.h: Likewise.
4505         * lib/sys_utsname.in.h: Likewise.
4506         * lib/sys_wait.in.h: Likewise.
4507         * lib/sysexits.in.h: Likewise.
4508         * lib/termios.in.h: Likewise.
4509         * lib/time.in.h: Likewise.
4510         * lib/unistd.in.h: Likewise.
4511         * lib/wchar.in.h: Likewise.
4512         * lib/wctype.in.h: Likewise.
4513         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4514         * modules/ctype (Makefile.am): Likewise.
4515         * modules/dirent (Makefile.am): Likewise.
4516         * modules/errno (Makefile.am): Likewise.
4517         * modules/fcntl-h (Makefile.am): Likewise.
4518         * modules/float (Makefile.am): Likewise.
4519         * modules/getopt-posix (Makefile.am): Likewise.
4520         * modules/iconv-h (Makefile.am): Likewise.
4521         * modules/inttypes (Makefile.am): Likewise.
4522         * modules/langinfo (Makefile.am): Likewise.
4523         * modules/locale (Makefile.am): Likewise.
4524         * modules/math (Makefile.am): Likewise.
4525         * modules/netdb (Makefile.am): Likewise.
4526         * modules/netinet_in (Makefile.am): Likewise.
4527         * modules/poll-h (Makefile.am): Likewise.
4528         * modules/pthread (Makefile.am): Likewise.
4529         * modules/pty (Makefile.am): Likewise.
4530         * modules/sched (Makefile.am): Likewise.
4531         * modules/search (Makefile.am): Likewise.
4532         * modules/selinux-h (Makefile.am): Likewise.
4533         * modules/signal (Makefile.am): Likewise.
4534         * modules/spawn (Makefile.am): Likewise.
4535         * modules/stdarg (Makefile.am): Likewise.
4536         * modules/stddef (Makefile.am): Likewise.
4537         * modules/stdint (Makefile.am): Likewise.
4538         * modules/stdio (Makefile.am): Likewise.
4539         * modules/stdlib (Makefile.am): Likewise.
4540         * modules/string (Makefile.am): Likewise.
4541         * modules/strings (Makefile.am): Likewise.
4542         * modules/sys_file (Makefile.am): Likewise.
4543         * modules/sys_ioctl (Makefile.am): Likewise.
4544         * modules/sys_select (Makefile.am): Likewise.
4545         * modules/sys_socket (Makefile.am): Likewise.
4546         * modules/sys_stat (Makefile.am): Likewise.
4547         * modules/sys_time (Makefile.am): Likewise.
4548         * modules/sys_times (Makefile.am): Likewise.
4549         * modules/sys_utsname (Makefile.am): Likewise.
4550         * modules/sys_wait (Makefile.am): Likewise.
4551         * modules/sysexits (Makefile.am): Likewise.
4552         * modules/termios (Makefile.am): Likewise.
4553         * modules/time (Makefile.am): Likewise.
4554         * modules/unistd (Makefile.am): Likewise.
4555         * modules/wchar (Makefile.am): Likewise.
4556         * modules/wctype (Makefile.am): Likewise.
4557
4558 2010-10-04  Bruno Haible  <bruno@clisp.org>
4559
4560         read-file tests: Avoid a test failure on NonStop Kernel.
4561         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4562         a regular file.
4563         Reported by Joachim Schmitz <schmitz@hp.com>.
4564
4565 2010-10-03  Bruno Haible  <bruno@clisp.org>
4566
4567         gnulib-tool: Fixes for --create-testdir with --libtool.
4568         * gnulib-tool (func_get_automake_snippet): Don't augment
4569         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4570         an executable.
4571         (func_create_testdir): Handle module 'alloca' like func_import.
4572         Reported by Bruce Korb <bruce.korb@gmail.com>.
4573
4574 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4575
4576         Avoid some lines longer than 80 characters.
4577         * lib/stdint.in.h: Break long comment lines.
4578         * lib/math.in.h: Likewise.
4579         (_GL_NUM_UINT_WORDS): New macro, for readability.
4580         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4581         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4582         * lib/stdlib.in.h: Likewise.
4583         * lib/spawn.in.h: Likewise.
4584         * lib/sys_socket.in.h: Update an URL.
4585         * lib/sys_stat.in.h: Break long line.
4586
4587 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4588
4589         Improve pmccabe2html.
4590         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4591         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4592         when the sources change. Remove the line in the HTML about "Used
4593         ranges" (which implied that there might be other unused ranges),
4594         rename "Resume" to "Summary" (easier to understand for more users).
4595         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4596         styles, and some unnecessary blank lines.
4597
4598 2010-10-03  Bruno Haible  <bruno@clisp.org>
4599             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4600
4601         acl: Add support for ACLs on NonStop Kernel.
4602         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4603         Check whether the function aclsort() exists.
4604         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4605         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4606         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4607         (acl_nontrivial [HAVE_ACLSORT]: New function.
4608         (file_has_acl): Implement for NonStop Kernel.
4609         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4610         (qset_acl): Implement for NonStop Kernel.
4611         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4612         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4613         (main): Implement for NonStop Kernel.
4614         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4615         Kernel. Handle this flavor.
4616         * tests/test-set-mode-acl.sh: Likewise.
4617         * tests/test-copy-acl.sh: Likewise.
4618         * tests/test-copy-file.sh: Likewise.
4619
4620 2010-10-03  Bruno Haible  <bruno@clisp.org>
4621
4622         Info about ACLs on NonStop Kernel.
4623         * doc/acl-resources.txt: Add info about NonStop Kernel.
4624         References by Joachim Schmitz <schmitz@hp.com>.
4625
4626 2010-10-02  Bruno Haible  <bruno@clisp.org>
4627
4628         Define missing EDQUOT on NonStop Kernel.
4629         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4630         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4632         missing.
4633         * doc/posix-headers/errno.texi: Mention the NSK bug.
4634         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4635         Reported by Joachim Schmitz <schmitz@hp.com>.
4636
4637 2010-10-02  Bruno Haible  <bruno@clisp.org>
4638
4639         Update doc for POSIX:2008.
4640         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4641         Update URL of POSIX specification.
4642
4643 2010-10-02  Bruno Haible  <bruno@clisp.org>
4644
4645         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4646         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4647         from gnulib, not from Automake.
4648
4649 2010-10-02  Bruno Haible  <bruno@clisp.org>
4650
4651         New module 'system-posix'.
4652         * modules/system-posix: New file.
4653         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4654         module is present.
4655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4656         GNULIB_SYSTEM_POSIX.
4657         * modules/stdlib (Depends-on): Remove sys_wait.
4658         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4659         * doc/posix-functions/system.texi: Mention the new module.
4660         * doc/posix-headers/stdlib.texi: Likewise.
4661         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4662         define test_sys_wait_macros to a no-op.
4663         Reported by Sam Steingold <sds@gnu.org>.
4664
4665 2010-09-30  Bruno Haible  <bruno@clisp.org>
4666
4667         More renaming from 'getdate' to 'get_date'.
4668         * doc/get_date.texi: Renamed from doc/getdate.texi.
4669         * modules/get_date (Files): Update.
4670         * MODULES.html.sh (Date and time <time.h>): Update.
4671         * DEPENDENCIES: Update.
4672         * gnulib-tool: Update comment.
4673         * m4/bison.m4 (gl_BISON): Likewise.
4674         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4675
4676 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4677
4678         bootstrap: support ACLOCAL_FLAGS during aclocal
4679         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4680         can add additional -I dir for third-party .m4 files.
4681
4682 2010-09-30  Eric Blake  <eblake@redhat.com>
4683
4684         bootstrap: use glibtoolize on MacOS
4685         * build-aux/bootstrap (check_versions): Convert libtool into
4686         libtoolize.
4687         (tool search): Move libtool check earlier, and look for
4688         glibtoolize for MacOS.
4689         (gnulib_tool_options): Auto-add --libtool when appropriate.
4690         Reported by Justin Clift.
4691
4692         poll: fix typo that broke test on MacOS
4693         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4694         Reported by Justin Clift.
4695
4696         getdate: rename to get_date
4697         Note: getdate.h is not renamed, to minimize client impact.
4698         * modules/getdate: Mark obsolete.  Move old contents...
4699         * modules/get_date: ...to new module name.
4700         * modules/getdate-tests: Move...
4701         * modules/get_date-tests: ...here.
4702         * m4/getdate.m4: Move...
4703         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4704         * lib/getdate.y: Move...
4705         * lib/get_date.y: ...here.
4706         * tests/test-getdate.c: Move...
4707         * tests/test-get_date.c: ...here.
4708         * doc/posix-functions/getdate.texi (getdate): Update name.
4709         * NEWS: Mention the change.
4710
4711 2010-09-29  Bruno Haible  <bruno@clisp.org>
4712
4713         Separate the module 'waitpid' from the module 'sys_wait'.
4714         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4715         present.
4716         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4717         gl_MODULE_INDICATOR_FOR_TESTS.
4718         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4719         * modules/sys_wait (Depends-on): Remove waitpid.
4720         (Makefile.am): Substitute GNULIB_WAITPID.
4721         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4722         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4723         signature only if the 'waitpid' module is present.
4724         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4725         * NEWS: Mention the change.
4726         * modules/grantpt (Depends-on): Add waitpid.
4727         * modules/wait-process (Depends-on): Likewise.
4728
4729 2010-09-29  Bruno Haible  <bruno@clisp.org>
4730
4731         More tests for module 'sys_wait'.
4732         * modules/sys_wait-c++-tests: New file.
4733         * tests/test-sys_wait-c++.cc: New file.
4734         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4735         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4736
4737 2010-09-29  Bruno Haible  <bruno@clisp.org>
4738
4739         New module 'waitpid'.
4740         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4741         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4742         Don't include <process.h>.
4743         (waitpid): Declare only, using modern idiom.
4744         * m4/waitpid.m4: New file.
4745         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4746         * modules/waitpid: New file.
4747         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4748         (Makefile.am): Update.
4749         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4750
4751 2010-09-28  Bruno Haible  <bruno@clisp.org>
4752
4753         poll: Assume ANSI C.
4754         * lib/poll.c (poll): Use an ANSI C declaration.
4755
4756 2010-09-28  Bruno Haible  <bruno@clisp.org>
4757
4758         poll-h: Create poll.h on all platforms.
4759         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4760         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4761         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4762         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4763         (gl_REPLACE_POLL_H): Don't set POLL_H.
4764         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4765         * modules/poll-h (Depends-on): Add include_next.
4766         (Makefile.am): Create poll.h unconditionally. Substitute also
4767         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4768
4769 2010-09-28  Bruno Haible  <bruno@clisp.org>
4770
4771         Tests for module 'poll-h'.
4772         * modules/poll-h-c++-tests: New file.
4773         * tests/test-poll-h-c++.cc: New file.
4774
4775         Tests for module 'poll-h'.
4776         * modules/poll-h-tests: New file.
4777         * tests/test-poll-h.c: New file.
4778
4779 2010-09-28  Bruno Haible  <bruno@clisp.org>
4780
4781         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4782         * modules/poll-h (Depends-on): Add 'extensions'.
4783
4784 2010-09-28  Bruno Haible  <bruno@clisp.org>
4785
4786         New module 'poll-h'.
4787         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4788         (poll): Use modern idiom.
4789         * modules/poll-h: New file.
4790         * modules/poll (Files): Remove lib/poll.in.h.
4791         (Depends-on): Add poll-h.
4792         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4793         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4794         * m4/poll_h.m4: New file.
4795         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4796         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4797         and invoke gl_REPLACE_POLL_H.
4798         * lib/poll.c: Use common idiom.
4799         * tests/test-poll.c: Likewise.
4800         * doc/posix-headers/poll.texi: Mention the poll-h module.
4801         Suggested by Eric Blake.
4802
4803 2010-09-26  Bruno Haible  <bruno@clisp.org>
4804
4805         sys_wait: Implement WSTOPSIG.
4806         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4807         Reported by Simon Josefsson.
4808
4809 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4810
4811         stdlib, sys_wait: Avoid compilation error on mingw.
4812         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4813
4814 2010-09-26  Bruno Haible  <bruno@clisp.org>
4815
4816         stdlib tests: Avoid code duplication.
4817         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4818         * modules/sys_wait-tests (Files): Likewise.
4819         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4820         * tests/test-stdlib.c: Include test-sys_wait.h.
4821         (main): Invoke test_sys_wait_macros.
4822         * tests/test-sys_wait.c: Include test-sys_wait.h.
4823         (main): Invoke test_sys_wait_macros.
4824
4825 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4826
4827         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4828         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4829         sure Windows sockets are working before calling getaddrinfo.
4830         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4831         * doc/gnulib.texi (Windows sockets): Fix typo.
4832
4833 2010-09-25  Bruno Haible  <bruno@clisp.org>
4834
4835         Tests for module 'regex-quote'.
4836         * modules/regex-quote-tests: New file.
4837         * tests/test-regex-quote.c: New file.
4838
4839         New module 'regex-quote'.
4840         * lib/regex-quote.h: New file.
4841         * lib/regex-quote.c: New file.
4842         * modules/regex-quote: New file.
4843         Suggested by Reuben Thomas <rrt@sc3d.org>.
4844
4845 2010-09-24  Bruno Haible  <bruno@clisp.org>
4846
4847         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4848         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4849
4850 2010-09-23  Bruno Haible  <bruno@clisp.org>
4851
4852         setenv: Relax license.
4853         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4854         Blake.
4855         Requested by Eric Blake.
4856
4857 2010-09-22  Bruno Haible  <bruno@clisp.org>
4858
4859         termios: Relax license.
4860         * modules/termios (License): Change to LGPLv2+.
4861         Requested by Eric Blake.
4862
4863 2010-09-22  Bruno Haible  <bruno@clisp.org>
4864
4865         threadlib: Allow the package to change the default to 'no'.
4866         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4867         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4868         Reported by Paul Eggert.
4869
4870 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4871             Bruno Haible  <bruno@clisp.org>
4872
4873         Fix endless loop in mbmemcasecoll.
4874         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4875         byte.
4876         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4877
4878 2010-09-22  Bruno Haible  <bruno@clisp.org>
4879
4880         Tests for module 'memcoll'.
4881         * modules/memcoll-tests: New file.
4882         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4883
4884         memcoll, xmemcoll: Clarify size vs. length.
4885         * modules/memcoll.c (memcoll0): Clarify specification.
4886         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4887         passed to collate_error.
4888
4889 2010-09-22  Bruno Haible  <bruno@clisp.org>
4890
4891         Tests for module 'memcasecmp'.
4892         * modules/memcasecmp-tests: New file.
4893         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4894
4895 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         * lib/pthread.in.h: Add split double-inclusion guard, and include
4898         system <pthread.h> if there is one.  Use @@-style as in other
4899         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4900         pthread.h doesn't.
4901         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4902         (pthread_mutexattr_settype, pthread_mutex_trylock):
4903         New static inline functions, if there's no system <pthread.h>.
4904         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4905         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4906         Approximate with mutexes if the system lacks spinlocks, as in
4907         MacOS.
4908         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4909         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4910         @@-style.  Check for spinlocks separately.
4911         (gl_PTHREAD_DEFAULTS): New macro.
4912         * modules/pthread: Redo to use a more typical style for in.h files.
4913
4914 2010-09-21  Eric Blake  <eblake@redhat.com>
4915
4916         net_if: enhance tests
4917         * tests/test-net_if.c (main): Move signature checks earlier.
4918         Print failures to stderr.
4919         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4920         Document the bug that we do not yet fix.
4921
4922 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4923
4924         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4925         about gnulib, not GSS.
4926
4927 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4928
4929         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4930         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4931         for Emacs.
4932         * build-aux/pmccabe2html: Make Makefile.am example code more
4933         cut-and-paste friendly.
4934
4935 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4936
4937         * tests/test-net_if.c: New file.
4938         * modules/net_if-tests: New file.
4939
4940 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4941
4942         pthread: add pthread_spin_destroy
4943         * lib/pthread.in.h (pthread_spin_destroy): New function.
4944
4945 2010-09-19  Bruno Haible  <bruno@clisp.org>
4946
4947         gnulib-tool: Fix --help output.
4948         * gnulib-tool (func_usage): Fix help message.
4949         Reported by Reuben Thomas <rrt@sc3d.org>.
4950
4951 2010-09-18  Jim Meyering  <meyering@redhat.com>
4952
4953         maint.mk: avoid unexpanded \n in two diagnostics
4954         * top/maint.mk (sc_prohibit_always_true_header_tests):
4955         Don't use a literal \n in a halt=... assignment.  It would not be
4956         expanded, and the two \n bytes would appear in the diagnostic output
4957         rather than the desired newline.  Use halt=$$(printf ... instead.
4958         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4959
4960 2010-09-18  Bruno Haible  <bruno@clisp.org>
4961
4962         netinet_in: Doc tweak.
4963         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4964         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4965
4966 2010-09-18  Jim Meyering  <meyering@redhat.com>
4967
4968         init.sh: correct an outdated comment
4969         * tests/init.sh (create_exe_shims_):  s/function/alias/
4970
4971         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4972         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4973         a file named "*.exe" is removed between the glob expansion and the
4974         processing of that oddly named file.
4975
4976 2010-09-17  Eric Blake  <eblake@redhat.com>
4977
4978         mirbsd: add some more support
4979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4980         in BSD family.
4981         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4982         devices as OpenBSD.
4983         * m4/host-os.m4 (mirbsd): Add MirBSD.
4984
4985         tests: fix unportable assumption on sys/wait.h
4986         * tests/test-sys_wait.c (main): Relax test.
4987         * tests/test-stdlib.c (main): Likewise.
4988
4989         init.sh: accomodate directory with no .exes
4990         * tests/init.sh: Accomodate directory containing only scripts.
4991
4992         tests: avoid compiler warning
4993         * tests/test-stdlib.c (main): Use the variable.
4994
4995         fdutimens, fdutimensat: update signature, again
4996         * lib/utimens.h (gl_futimens): Delete, and move signature...
4997         (fdutimens): ...here.
4998         (fdutimensat): Rearrange signature.
4999         (lutimensat): Rename variable for clarity.
5000         * lib/fdutimensat.c (fdutimensat): Update signature.
5001         * lib/utimens.c (fdutimens): Likewise.
5002         (gl_futimens): Delete.
5003         (utimens, lutimens): Update callers.
5004         * lib/futimens.c (futimens): Likewise.
5005         * tests/test-fdutimensat.c: Likewise.
5006         * tests/test-utimens.c: Likewise.
5007         * tests/test-futimens.h: Update comment.
5008         * NEWS: Mention this.
5009         Suggested by Paul Eggert.
5010
5011 2010-09-17  Bruno Haible  <bruno@clisp.org>
5012
5013         Take over the maintenance of some older macros from Autoconf.
5014         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
5015         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
5016         GNU Autoconf.
5017         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
5018         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
5019
5020 2010-09-17  Eric Blake  <eblake@redhat.com>
5021
5022         fdutimensat: drop atflag validation
5023         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5024         with valid fd, to close a race scenario where futimens is
5025         unsupported and FILE was replaced by a symlink.
5026         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
5027         accordingly.
5028         Suggested by Paul Eggert.
5029
5030 2010-09-16  Bruno Haible  <bruno@clisp.org>
5031
5032         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
5033         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
5034
5035 2010-09-16  Bruno Haible  <bruno@clisp.org>
5036
5037         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
5038         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
5039         login_tty exists.
5040         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5041
5042 2010-09-16  Bruno Haible  <bruno@clisp.org>
5043
5044         login_tty: Make the replacement code work on BSD systems.
5045         * lib/login_tty.c: Include <sys/ioctl.h>.
5046         (login_tty): Use ioctl TIOCSCTTY when available.
5047         * modules/login_tty (Depends-on): Add sys_ioctl.
5048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5049
5050 2010-09-16  Bruno Haible  <bruno@clisp.org>
5051
5052         login_tty: Stricter unit test.
5053         * modules/login_tty-tests (Depends-on): Add tcgetsid.
5054         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
5055         and tcgetsid() after login_tty.
5056         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5057
5058 2010-09-16  Bruno Haible  <bruno@clisp.org>
5059
5060         New module 'tcgetsid'.
5061         * lib/tcgetsid.c: New file.
5062         * m4/tcgetsid.m4: New file.
5063         * modules/tcgetsid: New file.
5064         * modules/termios (Depends-on): Add c++defs, warn-on-use.
5065         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
5066         GNULIB_TCGETSID, HAVE_TCGETSID.
5067         * lib/termios.in.h: Include <sys/types.h>.
5068         (tcgetsid): New declaration.
5069         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
5070         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
5071         * doc/posix-functions/tcgetsid.texi: Mention the new module.
5072         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
5073
5074 2010-09-16  Bruno Haible  <bruno@clisp.org>
5075
5076         Tests for module 'termios'.
5077         * modules/termios-c++-tests: New file.
5078         * modules/termios-tests: New file.
5079         * tests/test-termios-c++.cc: New file.
5080         * tests/test-termios.c: New file.
5081
5082         New module 'termios'.
5083         * modules/termios: New file.
5084         * lib/termios.in.h: New file.
5085         * m4/termios_h.m4: New file.
5086         * doc/posix-headers/termios.texi: Mention the new module.
5087
5088 2010-09-16  Eric Blake  <eblake@redhat.com>
5089
5090         fdutimensat: add an atflag parameter
5091         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5092         * lib/utimens.h (fdutimensat): Update prototype.
5093         * tests/test-fdutimensat.c: Adjust test to match.
5094         * NEWS: Document the change.
5095         Suggested by Paul Eggert.
5096
5097 2010-09-16  Bruno Haible  <bruno@clisp.org>
5098
5099         Fix typos in comments.
5100         * lib/striconveh.h: Fix typo in comment.
5101         * lib/login_tty.c (login_tty): Likewise.
5102
5103 2010-09-15  Bruno Haible  <bruno@clisp.org>
5104
5105         stdlib: clarify MirBSD WEXITSTATUS bug
5106         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5107         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5108
5109 2010-09-15  Eric Blake  <eblake@redhat.com>
5110
5111         stdlib: work around MirBSD WEXITSTATUS bug
5112         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5113         * modules/stdlib (Depends-on): Add sys_wait.
5114         * tests/test-sys_wait.c (main): Enhance test.
5115         * tests/test-stdlib.c (main): Likewise.
5116         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5117
5118         docs: mention MacOS issue with WEXITSTATUS(constant)
5119         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5120         issue.
5121         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5122
5123         strnlen: add tests
5124         * modules/strnlen-tests: New file.
5125         * tests/test-strnlen.c: Likewise.
5126
5127 2010-09-14  Bruno Haible  <bruno@clisp.org>
5128
5129         unistr/base: Avoid link errors when module 'libunistring' is also used.
5130         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
5131         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
5132         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
5133         Declare also when HAVE_LIBUNISTRING is set.
5134         Reported by Pádraig Brady <P@draigbrady.com>.
5135
5136 2010-09-14  Eric Blake  <eblake@redhat.com>
5137
5138         test-rawmemchr: make more robust
5139         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
5140         (Depends-on, configure.ac): Add needed prerequisites to use it.
5141         * modules/memchr-tests (Files, Depends-on, configure.ac):
5142         Likewise, to avoid implicit reliance on memchr module prereqs.
5143         * tests/test-memchr.c (main): Ensure proper masking.
5144         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
5145         reads.
5146
5147         memchr: detect glibc Alpha bug
5148         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
5149         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
5150         Alpha.
5151         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
5152         * tests/test-memchr.c (main): Enhance test.
5153         Reported by Nelson H. F. Beebe.
5154
5155 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5156
5157         fts, getcwd, glob: audit for dirfd returning -1
5158         * lib/fts.c (opendir): Remove #define; no longer used.
5159         (opendirat): New arg PDIR_FD.  All callers changed.
5160         (fts_build, _opendir2): Use new opendirat to avoid the need for
5161         dirfd, or for checking whether dirfd returns a negative value.
5162         Don't use opendir; always use openat followed by fdopendir.
5163         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
5164         it.
5165         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
5166         returns -1 here.
5167         * modules/fts (Depends-on): Remove dirfd.
5168         * modules/getcwd (Depends-on): Likewise.
5169
5170 2010-09-13  Eric Blake  <eblake@redhat.com>
5171
5172         float: fix broken MirBSD header
5173         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
5174         * doc/posix-headers/float.texi (float.h): Document it.
5175
5176 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5177
5178         fts: use O_NOFOLLOW to avoid race condition when opening a directory
5179         * lib/fts.c (opendirat): New arg extra_flags.
5180         (__opendir2): Use it to avoid following symlinks when opening
5181         a directory, if symlinks are not supposed to be followed.  See
5182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
5183
5184         fdopendir: preserve argument fd before returning
5185         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
5186         (fdopendir_with_dup, fd_clone_opendir): New static functions.
5187         (fdopendir): Use them, arranging for FD to be open to the same
5188         directory that it was when it started.  (It might be temporarily
5189         closed while fdopendir is running, so this not thread- or
5190         signal-safe.)  Be careful to do the right thing even when file
5191         descriptors are scarce and dup fails with errno == EMFILE.  See
5192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
5193
5194 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
5195
5196         regex: Pass the system regex if its only problem is 32-bit regoff_t.
5197         * NEWS: Document change.
5198         * m4/regex.m4: Disable test for regoff_t size.
5199
5200 2010-09-13  Jim Meyering  <meyering@redhat.com>
5201
5202         fts: don't operate on an invalid file descriptor after failed dup
5203         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
5204         negative file descriptor.
5205
5206 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5207
5208         savedir: add streamsavedir, deprecate fdsavedir
5209         * NEWS: Mention deprecation of fdsavedir.
5210         * lib/savedir.c (streamsavedir): New extern function, whose name
5211         ends in "savedir" to be consistent with the others.  This differs
5212         from savedirstream in that it doesn't close its argument.  The
5213         next version of GNU tar will use this instead of fdsavedir, to
5214         avoid some race conditions and conserve file descriptors.
5215         (savedirstream): Reimplement as a wrapper around streamsavedir.
5216         (fdsavedir): Add a comment deprecating this function.  As far as
5217         I know, only GNU tar used it, and GNU tar doesn't need it any more.
5218         * lib/savedir.h (streamsavedir): New decl.
5219         (fdsavedir): Add a comment deprecating this.
5220
5221 2010-09-10  Bruno Haible  <bruno@clisp.org>
5222
5223         langinfo: Fix last commit.
5224         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
5225         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
5226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5227
5228 2010-09-10  Bruno Haible  <bruno@clisp.org>
5229
5230         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
5231         * lib/progreloc.c (O_EXEC): Define fallback.
5232
5233 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
5236         * NEWS: Document recent changes to fcntl-h.
5237         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
5238         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
5239         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
5240         Similarly for O_SEARCH; this last was already true, but not documented.
5241         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
5242         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
5243         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
5244         Likewise.
5245         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
5246         is zero, not whether it is defined.
5247         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
5248         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
5249         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
5250
5251 2010-09-10  Bruno Haible  <bruno@clisp.org>
5252
5253         langinfo, nl_langinfo: Fix for IRIX 5.3.
5254         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5255         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5256         HAVE_LANGINFO_YESEXPR.
5257         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5258         HAVE_LANGINFO_YESEXPR.
5259         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5260         HAVE_LANGINFO_T_FMT_AMPM is 0.
5261         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5262         HAVE_LANGINFO_YESEXPR is 0.
5263         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5264         NOEXPR.
5265         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5266         * doc/posix-functions/nl_langinfo.texi: Likewise.
5267         Reported by Eric Blake.
5268
5269 2010-09-10  Bruno Haible  <bruno@clisp.org>
5270
5271         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5272         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5273         on FreeBSD 8.0 and OpenBSD 4.6.
5274         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5275         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5276         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5277         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5278         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5279         ac_includes_default.
5280         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5281
5282 2010-09-09  Eric Blake  <eblake@redhat.com>
5283
5284         strsignal: work around NetBSD bug
5285         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5286         * lib/string.in.h (includes): Likewise.
5287         * doc/posix-functions/strsignal.texi (strsignal): Document the
5288         bug.
5289         Reported by Nelson H. F. Beebe.
5290
5291         gnulib-tool: work with NetBSD /bin/sh
5292         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5293         (func_get_description, func_get_comment, func_get_status)
5294         (func_get_notice, func_get_applicability, func_get_filelist)
5295         (func_get_dependencies, func_get_autoconf_early_snippet)
5296         (func_get_autoconf_snippet, func_get_automake_snippet)
5297         (func_get_include_directive, func_get_link_directive)
5298         (func_get_license, func_get_maintainer, func_import): Avoid
5299         shell syntax errors from parsing syntax extensions.
5300
5301 2010-09-09  Bruno Haible  <bruno@clisp.org>
5302
5303         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5304         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5305         a reliable way to determine whether the 'alias' command works.
5306
5307 2010-09-08  Jim Meyering  <meyering@redhat.com>
5308
5309         init.sh: penalize a set-x-impaired shell; don't disqualify it
5310         * tests/init.sh: Too many shells corrupt application stderr when
5311         you set -x, so we can't afford to disqualify them, since at least
5312         on Irix-6.5, that would disqualify all bourne shells.
5313         Instead, use a two-pass approach.
5314         On the first pass, try to find a shell that meets the stricter
5315         condition that set -x does not corrupt stderr.
5316         If no shell meets the stricter condition, retest each candidate
5317         shell, but without that extra condition.  Finally, when
5318         VERBOSE=yes is requested and set -x might cause trouble, simply
5319         issue a warning and refrain from enabling debug output.
5320
5321 2010-09-08  Eric Blake  <eblake@redhat.com>
5322
5323         unsetenv: fix OpenBSD bug
5324         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5325         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5326         documentation.
5327         Reported by Jim Meyering.
5328
5329         strtod: work around IRIX 6.5 bug
5330         * lib/strtod.c (strtod): Reparse number on shorter string if
5331         exponent parse was invalid.
5332         * tests/test-strtod.c (main): Add check for "0x1p 2".
5333         Reported by Tom G. Christensen.
5334
5335         getopt: optimize previous patch
5336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5337         empty variable.  Speed up awk script.
5338         Reported by Paolo Bonzini.
5339
5340 2010-09-08  Jim Meyering  <meyering@redhat.com>
5341
5342         test.sh: disqualify shells for which set -x corrupts stderr
5343         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5344         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5345         appear in stderr output.  For example, this command:
5346             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5347         prints "P=1" on those two systems:
5348
5349 2010-09-08  Bruno Haible  <bruno@clisp.org>
5350
5351         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5352         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5353         commands, because some shells ignore redirections when there is an
5354         error in the command lookup.
5355         Reported by Eric Blake.
5356
5357 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5358
5359         * lib/regex.h: Fix a mention of `regex_compile' (should be
5360         `re_compile_pattern').
5361         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5362         (re_set_registers): Correct name of parameter in comment.
5363
5364         * doc/regex.texi: Add documentation for missing syntax flags.
5365         Remove commented-out documentation of defunct syntax option
5366         RE_NO_EMPTY_ALTS.
5367         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5368         Add documentation of re_set_registers.
5369         Document trick to re-use a pattern buffer by setting fastmap manually.
5370         Update documentation of struct re_pattern_buffer per public members.
5371         Uncomment documentation of equivalence class operators and
5372         collating symbol operators, since they are now implemented,
5373         Explain leftmost-longest matching in relation to alternatives.
5374         Tidy documentation of substring matching.
5375         Remove POSIX documentation, which is done better in
5376         glibc, and refer the reader there. Keep BSD API documentation, as
5377         that is not readily available elsewhere.
5378
5379 2010-09-07  Eric Blake  <eblake@redhat.com>
5380
5381         getopt: handle POSIXLY_CORRECT set but not exported
5382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5383         export state of POSIXLY_CORRECT, due to bash set -o posix.
5384         Reported by Dustin J. Mitchell.
5385
5386 2010-09-05  Bruno Haible  <bruno@clisp.org>
5387
5388         gnulib-tool: Highlight the changed options.
5389         * gnulib-tool (func_usage): Display the --import, --add-import,
5390         --remove-import explanations in bold font.
5391
5392 2010-09-06  Karl Berry  <karl@gnu.org>
5393
5394         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5395
5396 2010-09-05  Bruno Haible  <bruno@clisp.org>
5397
5398         uniwidth/width: Update comment.
5399         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5400         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5401
5402 2010-09-05  Bruno Haible  <bruno@clisp.org>
5403
5404         isinf, isnan: Relax license.
5405         * modules/isinf (License): Change from GPL to LGPL, with consent from
5406         Ben Pfaff.
5407         * modules/isnan (License): Likewise.
5408         Requested by Ludovic Courtès.
5409
5410 2010-09-04  Bruno Haible  <bruno@clisp.org>
5411
5412         gnulib-tool: Help migration from --import to --add-import or --update.
5413         * gnulib-tool: Emit a verbose error message when --import is used
5414         without any module name.
5415
5416 2010-09-04  Bruno Haible  <bruno@clisp.org>
5417
5418         Update doc about gnulib-tool.
5419         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5420         'gnulib-tool --update' in more detail.
5421         Reported by Eric Blake.
5422
5423 2010-09-04  Bruno Haible  <bruno@clisp.org>
5424
5425         gnulib-tool: Change --import. New options --add/remove-import.
5426         * gnulib-tool: New options --add-import, --remove-import.
5427         (func_usage): Document them.
5428         (have_associative): Define always.
5429         (func_import): In import mode, don't merge the specified settings with
5430         the cached settings. Implement remove-import mode.
5431         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5432         Explain when to use them versus --import.
5433         (Simple update): Use --add-import instead of --import.
5434         * NEWS: Mention the change.
5435
5436 2010-09-04  Bruno Haible  <bruno@clisp.org>
5437
5438         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5439         separate gnulib.mk.
5440
5441 2010-09-04  Bruno Haible  <bruno@clisp.org>
5442
5443         gnulib-tool: Don't talk about CVS any more.
5444         * gnulib-tool (func_usage, func_import): Write "version control"
5445         instead of CVS.
5446
5447 2010-09-04  Jim Meyering  <meyering@redhat.com>
5448
5449         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5450         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5451         false positives (whose names may be ill-chosen) when searching
5452         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5453         would cause a false-positive.
5454
5455         avoid coreutils "make distcheck" failure
5456         Coreutils tests with an absolute build directory name that contains
5457         a space.  Not quoting this directory name caused a failure.
5458         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5459         * tests/test-vc-list-files-cvs.sh: Likewise.
5460
5461 2010-09-04  Bruno Haible  <bruno@clisp.org>
5462
5463         gnulib-tool: Avoid error when run in a package without Makefile.am.
5464         * gnulib-tool: When collecting the m4dirs in a package that does not
5465         have a Makefile.am, eliminate those directories that contain no
5466         gnulib-cache.m4. Fix expression that counts these directories.
5467
5468 2010-09-04  Bruno Haible  <bruno@clisp.org>
5469
5470         update-copyright test: Improve output when perl is missing or too old.
5471         * tests/test-update-copyright.sh: Move test of Perl version down after
5472         the test whether Perl exists. Provide an explanation relating Perl's
5473         error message to Automake's SKIP: message.
5474
5475 2010-09-04  Bruno Haible  <bruno@clisp.org>
5476
5477         Don't augment PATH in TESTS_ENVIRONMENT.
5478         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5479         set abs_aux_dir instead of augmenting PATH.
5480         * modules/vc-list-files-tests (Makefile.am): Likewise.
5481         * tests/test-update-copyright.sh: Augment PATH here.
5482         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5483         path_prepend_.
5484         * tests/test-vc-list-files-git.sh: Likewise.
5485
5486 2010-09-04  Jim Meyering  <meyering@redhat.com>
5487
5488         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5489         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5490
5491 2010-09-04  Bruno Haible  <bruno@clisp.org>
5492
5493         strdup: Fix compilation error in C++ mode.
5494         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5495         the macro.
5496
5497 2010-09-04  Bruno Haible  <bruno@clisp.org>
5498
5499         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5500         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5501         macro into a function.
5502         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5503
5504 2010-09-04  Bruno Haible  <bruno@clisp.org>
5505
5506         Set PATH_SEPARATOR the same way autoconf does.
5507         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5508         the value of PATH_SEPARATOR the same way autoconf-generated configure
5509         scripts do.
5510         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5511         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5512
5513 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5514
5515         Set PATH_SEPARATOR the same way autoconf does.
5516         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5517         the same way autoconf-generated configure scripts do.
5518         * posix-modules: Likewise.
5519
5520 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5521
5522         hash: fix safe_hasher const typo
5523         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5524         const; otherwise, there is a type error later.
5525
5526 2010-09-02  Jim Meyering  <meyering@redhat.com>
5527
5528         test-update-copyright.sh: require perl 5.8.0
5529         * tests/test-update-copyright.sh: Require 5.8.0,
5530         which Tom G. Christensen has confirmed is adequate,
5531         while 5.6.1 is not.
5532
5533 2010-09-02  Eric Blake  <eblake@redhat.com>
5534
5535         tests: init.sh improvements for re-exec'ing with zsh
5536         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5537         -vx through shell re-exec.
5538         Reported by Tom G. Christensen.
5539
5540         wctype: fix typo in previous commit
5541         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5542         Reported by Ludovic Courtès.
5543
5544 2010-09-02  Jim Meyering  <meyering@redhat.com>
5545
5546         test-update-copyright.sh: skip test if Perl is too old
5547         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5548         Reported by Tom G. Christensen.
5549
5550 2010-09-02  Bruno Haible  <bruno@clisp.org>
5551
5552         wctype: Avoid compilation error on IRIX 6.5.30.
5553         * lib/wctype.in.h (iswblank): Declare with a replacement if
5554         REPLACE_ISWBLANK is set.
5555         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5556         declared. Set REPLACE_ISWBLANK.
5557         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5558         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5559         * doc/posix-headers/wctype.texi: Likewise.
5560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5561
5562 2010-09-01  Bruno Haible  <bruno@clisp.org>
5563
5564         New module 'socketlib'.
5565         * modules/socketlib: New file.
5566         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5567         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5568         * modules/sockets (Depends-on): Add socketlib.
5569         Suggested by Sam Steingold <sds@gnu.org>.
5570
5571 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5574
5575         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5576         when one needs search access to a directory but not read access.
5577         On systems where it is available, it works in some cases where
5578         O_RDONLY does not, namely on directories that are searchable but
5579         not readable, and which need only to be searchable.  If O_SEARCH
5580         is not available, fall back to the traditional method of using
5581         O_RDONLY.
5582
5583         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5584         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5585         when opening a directory that needs only to be searchable.
5586         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5587         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5588         * lib/openat-proc.c (openat_proc_name): Likewise.
5589         * lib/openat.c (openat_needs_fchdir): Likewise.
5590         * lib/save-cwd.c (save_cwd): Likewise.
5591         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5592
5593 2010-08-28  Bruno Haible  <bruno@clisp.org>
5594
5595         New module 'host-cpu-c-abi'.
5596         * modules/host-cpu-c-abi: New file.
5597         * m4/host-cpu-c-abi.m4: New file, based on part of
5598         clisp/src/m4/general.m4.
5599         Requested by Sam Steingold <sds@gnu.org>.
5600
5601 2010-08-31  Eric Blake  <eblake@redhat.com>
5602         and Jim Meyering  <meyering@redhat.com>
5603
5604         hash: factor, and guard against misbehaving hasher function
5605         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5606         of table->hasher's return value.  Also protect against a hash value
5607         so large that adding it to table->bucket results in a NULL pointer.
5608         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5609         Use it in place of open-coded check-and-abort.
5610
5611 2010-08-30  Bruno Haible  <bruno@clisp.org>
5612
5613         hash: silence spurious clang warning
5614         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5615         Reported by Eric Blake.
5616
5617 2010-08-30  Eric Blake  <eblake@redhat.com>
5618
5619         strstr, memmem, strcasestr: avoid leaked shell message
5620         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5621         FreeBSD.
5622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5624
5625         tests: silence clang warning
5626         * tests/test-malloca.c (do_allocation): Avoid dead store.
5627
5628 2010-08-29  Bruno Haible  <bruno@clisp.org>
5629
5630         gettext: Fix recent mistake.
5631         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5632
5633 2010-08-29  Bruno Haible  <bruno@clisp.org>
5634
5635         selinux-h: Offer a --without-selinux option.
5636         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5637         --without-selinux was specified, skip all tests and define
5638         HAVE_SELINUX_SELINUX_H to 0.
5639         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5640         set LIB_SELINUX to empty.
5641         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5642         gl_LIBSELINUX. If --without-selinux was specified, replace
5643         selinux/context.h.
5644         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5645
5646 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5647             Bruno Haible  <bruno@clisp.org>
5648
5649         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5650         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5651         of HAVE_REALLOC.
5652         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5653         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5654         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5655         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5656
5657 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5658             Bruno Haible  <bruno@clisp.org>
5659
5660         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5661         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5662         HAVE_CALLOC.
5663         * lib/xmalloc.c: Update accordingly.
5664         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5665         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5666         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5667
5668 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5669             Bruno Haible  <bruno@clisp.org>
5670
5671         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5672         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5673         HAVE_MALLOC.
5674         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5675         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5676         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5677
5678 2010-08-29  Bruno Haible  <bruno@clisp.org>
5679
5680         Update modules list.
5681         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5682         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5683         (String handling <string.h>): Add astrxfrm.
5684         (File system functions): Add readlinkat.
5685
5686 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5687
5688         Tests for module 'realloc-gnu'.
5689         * modules/realloc-gnu-tests: New file.
5690         * tests/test-realloc-gnu.c: New file.
5691
5692         Tests for module 'calloc-gnu'.
5693         * modules/calloc-gnu-tests: New file.
5694         * tests/test-calloc-gnu.c: New file.
5695
5696         Tests for module 'malloc-gnu'.
5697         * modules/malloc-gnu-tests: New file.
5698         * tests/test-malloc-gnu.c: New file.
5699
5700 2010-08-28  Bruno Haible  <bruno@clisp.org>
5701
5702         Rename module 'realloc' -> 'realloc-gnu'.
5703         * modules/realloc-gnu: New file, copied from modules/realloc.
5704         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5705         obsolete.
5706         * modules/mgetgroups (Depends-on): Update.
5707         * doc/posix-functions/realloc.texi: Update.
5708         * NEWS: Mention the change.
5709
5710         Rename module 'calloc' -> 'calloc-gnu'.
5711         * modules/calloc-gnu: New file, copied from modules/calloc.
5712         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5713         obsolete.
5714         * doc/posix-functions/calloc.texi: Update.
5715         * NEWS: Mention the change.
5716
5717         Rename module 'malloc' -> 'malloc-gnu'.
5718         * modules/malloc-gnu: New file, copied from modules/malloc.
5719         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5720         obsolete.
5721         * modules/argp (Depends-on): Update.
5722         * modules/regex (Depends-on): Update.
5723         * doc/posix-functions/malloc.texi: Update.
5724         * NEWS: Mention the change.
5725
5726 2010-08-28  Eric Blake  <eblake@redhat.com>
5727
5728         pread, pwrite: add missing dependency
5729         * modules/pread (Depends-on): Add extensions.
5730         * modules/pwrite (Depends-on): Likewise.
5731
5732 2010-08-28  Bruno Haible  <bruno@clisp.org>
5733
5734         unistr/u*-strchr: Fix tests dependencies.
5735         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5736         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5737         Reported by Ian Beckwith <ianb@erislabs.net>.
5738
5739 2010-08-28  Bruno Haible  <bruno@clisp.org>
5740
5741         read-file: Don't occupy too much unused memory.
5742         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5743
5744 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5745             Eric Blake  <eblake@redhat.com>
5746             Bruno Haible  <bruno@clisp.org>
5747
5748         read-file: Avoid memory reallocations with regular files.
5749         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5750         (fread_file): With regular files, use the remaining length as the
5751         initial buffer size.  Check against overflow.
5752         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5753         sys_stat.
5754
5755 2010-08-28  Bruno Haible  <bruno@clisp.org>
5756
5757         ftello: Relax license.
5758         * modules/ftello (License): Relax to LGPLv2+.
5759         Reported by Eric Blake.
5760
5761 2010-08-28  Bruno Haible  <bruno@clisp.org>
5762
5763         Avoid relocwrapper link errors due to gnulib replacement functions.
5764         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5765         function.
5766         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5767
5768 2010-08-28  Bruno Haible  <bruno@clisp.org>
5769
5770         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5771         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5772         defined.
5773         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5774         Suggested by Eric Blake.
5775
5776 2010-08-28  Bruno Haible  <bruno@clisp.org>
5777
5778         sys_socket, netdb: Ensure socklen_t gets defined.
5779         * modules/sys_socket (Depends-on): Add socklen.
5780         * modules/netdb (Depends-on): Likewise.
5781         * modules/getaddrinfo (Depends-on): Remove socklen.
5782         * modules/getsockopt (Depends-on): Likewise.
5783         * modules/setsockopt (Depends-on): Likewise.
5784         * tests/test-sys_socket.c: Check that socklen_t is defined.
5785         * tests/test-netdb.c: Likewise.
5786         * m4/socklen.m4: Update comments.
5787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5788
5789 2010-08-27  Eric Blake  <eblake@redhat.com>
5790
5791         login_tty: add missing dependency
5792         * modules/login_tty (Depends-on): Add pty.
5793
5794 2010-08-26  Eric Blake  <eblake@redhat.com>
5795
5796         lib-symbol-versions: fix m4 quoting
5797         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5798         format for AC_LINK_IFELSE.
5799
5800         glob: fix compile test
5801         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5802
5803         btowc: fix missing file
5804         * modules/btowc (Files): Also ship locale-fr.m4.
5805
5806         lseek: fix link test
5807         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5808         AC_LINK_IFELSE.
5809
5810         include_next: silence autoconf 2.68 warning
5811         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5812         AC_COMPILE_IFELSE as special.
5813         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5814         autoconf < 2.68.
5815
5816         acl: fix compilation test
5817         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5818         AC_COMPILE_IFELSE.
5819
5820 2010-08-26  Bruno Haible  <bruno@clisp.org>
5821
5822         Modernize AC_TRY_RUN invocations.
5823         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5824         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5825         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5826         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5827         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5828         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5829         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5830         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5831         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5832         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5833         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5834         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5835         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5836         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5837         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5838         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5839         gl_MBRLEN_NUL_RETVAL): Likewise.
5840         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5841         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5842         Likewise.
5843         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5844         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5845         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5846         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5847         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5848         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5849         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5850         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5851         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5852         Likewise.
5853         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5854         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5856         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5858         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5859         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5860         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5861         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5863
5864 2010-08-26  Bruno Haible  <bruno@clisp.org>
5865
5866         Modernize AC_TRY_LINK invocations.
5867         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5868         AC_TRY_LINK.
5869         * m4/argp.m4 (gl_ARGP): Likewise.
5870         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5871         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5872         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5873         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5874         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5875         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5876         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5877         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5878         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5879         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5880         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5881         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5882         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5883         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5884         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5885         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5886         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5887         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5888         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5889         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5890         Likewise.
5891         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5892         Likewise.
5893         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5894         Likewise.
5895         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5897         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5898         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5899         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5900         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5901         * m4/servent.m4 (gl_SERVENT): Likewise.
5902         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5903         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5904         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5905         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5906         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5907         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5908         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5909         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5910         * modules/tsearch-tests (configure.ac): Likewise.
5911
5912 2010-08-26  Bruno Haible  <bruno@clisp.org>
5913
5914         Modernize AC_TRY_COMPILE invocations.
5915         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5916         AC_TRY_COMPILE.
5917         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5918         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5919         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5920         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5921         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5922         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5923         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5924         * m4/lock.m4 (gl_LOCK): Likewise.
5925         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5926         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5927         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5929         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5930         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5931         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5933         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5934         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5935         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5936         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5937         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5938         extraneous semicolon.
5939
5940 2010-08-26  Jim Meyering  <meyering@redhat.com>
5941
5942         stat-time: relax license LGPL
5943         * modules/stat-time (License): Change from GPL to LGPL,
5944         with consent from all contributors, for use in libguile.
5945         Requested by Ludovic Courtès.
5946
5947 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5948
5949         poll: return immediately on POLLHUP.
5950         * lib/poll.c (poll): Always set timeout before wait_timeout is
5951         computed.
5952
5953 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5954
5955         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5956         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5957         rmdir ("dir/.//"), unlinkat.
5958
5959 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5960
5961         stdbool: avoid spurious failure with modern xlc
5962         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5963
5964 2010-08-24  Bruno Haible  <bruno@clisp.org>
5965
5966         getloadavg: simplify code
5967         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5968         gl_have_func. Update comments.
5969
5970 2010-08-24  Eric Blake  <eblake@redhat.com>
5971
5972         getloadavg: don't define SVR4 on cygwin
5973         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5974         only define SVR4 when -lkvm is required.
5975         Reported by Yaakov Selkowitz.
5976
5977 2010-08-24  Bruno Haible  <bruno@clisp.org>
5978
5979         priv-set: fix comment
5980         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5981
5982 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5983
5984         priv-set: fix comments
5985         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5986         to match code, as suggested by David Bartley in:
5987         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5988
5989 2010-08-23  Eric Blake  <eblake@redhat.com>
5990
5991         stdbool: avoid rejecting clang
5992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5993         * tests/test-stdbool.c: Enable more tests if using the system
5994         <stdbool.h> instead of the gnulib replacement.
5995         (main): Move xlc bug test to a runtime test for all compilers.
5996         Reported by Anders Kaseorg.
5997
5998         argz: fix shell quoting issue
5999         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
6000         Reported by Charles Wilson.
6001
6002 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
6003             Erik Faye-Lund <kusmabite@gmail.com>
6004
6005         poll, select: handle ERROR_BROKEN_PIPE.
6006         * lib/poll.c (win32_compute_revents): Return POLLHUP when
6007         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6008         * lib/select.c (win32_compute_revents): Do not mark a pipe
6009         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6010
6011 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
6012
6013         fts: allow compilation with C++
6014         * lib/fts_.h: Specify extern "C" linkage with C++.
6015
6016 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6017
6018         Fix gnulib-tool sed script de-commentation for AIX sed.
6019         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
6020         sed.
6021
6022 2010-08-17  Eric Blake  <eblake@redhat.com>
6023
6024         test-stddef: test for (some) offsetof bugs
6025         * tests/test-stddef.c: Enhance test to ensure correct type of
6026         offsetof.
6027         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
6028         that we are not fixing at this time.
6029
6030 2010-08-15  Bruno Haible  <bruno@clisp.org>
6031
6032         stpncpy: Allow stpncpy to be defined as a macro.
6033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
6034         if it's already correctly declared.
6035         * lib/string.in.h (stpncpy): Undefine before redefining.
6036         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
6037
6038 2010-08-14  Bruno Haible  <bruno@clisp.org>
6039
6040         Rename module 'memxfrm' to 'amemxfrm'.
6041         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
6042         (amemxfrm): Renamed from memxfrm.
6043         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
6044         (amemxfrm): Renamed from memxfrm.
6045         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
6046         * NEWS: Mention the change.
6047         * MODULES.html.sh (String handling <string.h>): Update.
6048         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
6049         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
6050         * lib/unicase/u16-casexfrm.c: Likewise.
6051         * lib/unicase/u32-casexfrm.c: Likewise.
6052         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
6053         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
6054         * lib/uninorm/u16-normxfrm.c: Likewise.
6055         * lib/uninorm/u32-normxfrm.c: Likewise.
6056         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
6057         memxfrm.
6058         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
6059         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
6060         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
6061         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
6062         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
6063         Suggested by Paul Eggert.
6064
6065 2010-08-14  Bruno Haible  <bruno@clisp.org>
6066
6067         Tests for module 'astrxfrm'.
6068         * modules/astrxfrm-tests: New file.
6069         * tests/test-astrxfrm.c: New file.
6070
6071         New module 'astrxfrm'.
6072         * lib/astrxfrm.h: New file.
6073         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
6074         * modules/astrxfrm: New file.
6075
6076 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6077
6078         regex: Tweak doc.
6079         * doc/regex.texi (Overview): Don't mention regex.c.
6080         (GNU Regular Expression Compiling): Likewise.
6081         (Match-end-of-line Operator): Mention 'not_eol'.
6082
6083 2010-08-14  Brian Gough  <bjg@gnu.org>
6084             Bruno Haible  <bruno@clisp.org>
6085
6086         git-merge-changelog: add doc relating to use with bzr and hg.
6087         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6088
6089 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6090
6091         pthread: fix pthread.h creation for srcdir != builddir
6092         * modules/pthread (Makefile.am): Fix the rule to work also in a
6093         non-srcdir build.
6094
6095 2010-08-13  Karl Berry  <karl@gnu.org>
6096
6097         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6098         * doc/posix-*/*: force line break before @url of POSIX
6099         specifications.
6100         Suggested by Werner Lemberg.
6101
6102 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6103
6104         strtod: fix const diagnostic
6105         * lib/strtod.c (strtod): Don't assign const char * to char *,
6106         as this elicits a warning from GCC when warnings are enabled.
6107
6108 2010-08-10  Pádraig Brady <P@draigbrady.com>
6109         and Eric Blake  <eblake@redhat.com>
6110
6111         copy-acl: ignore ENOTSUP on HP-UX
6112         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6113         so that it is available for HP-UX.
6114         * lib/copy-acl.c (qcopy_acl): Use it.
6115         Reported by Patrick M. Callahan.
6116
6117 2010-08-10  Eric Blake  <eblake@redhat.com>
6118
6119         open, chown: relax license
6120         * modules/open (License): Change to LGPLv2+, with consent by all
6121         authors, for use in augeas.
6122         * modules/chown (License): Likewise.
6123         * modules/lchown (Likewise): Likewise.
6124         Requested by Adam Stokes.
6125
6126 2010-08-09  Karl Berry  <karl@gnu.org>
6127
6128         * build-aux/ar-lib: new file, import from Automake.
6129         * config/srclist.txt: autocheck for updates.
6130
6131 2010-08-09  Eric Blake  <eblake@redhat.com>
6132
6133         readlinkat: adjust client modules
6134         * modules/areadlinkat (Depends-on): Use readlinkat, not
6135         symlinkat.
6136         * modules/areadlinkat-with-size (Depends-on): Likewise.
6137
6138         mknod: be more vocal about danger of running tests as root
6139         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
6140         root, since that is just asking for problems.
6141         Suggested by Bruno Haible, based on a report by Rainer Tammer.
6142
6143         readlinkat: split into its own module
6144         * modules/symlinkat: Split readlinkat...
6145         * modules/readlinkat: ...into separate module.
6146         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
6147         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
6148         * lib/symlinkat.c (readlinkat): Move...
6149         * lib/readlinkat.c: ...into new file.
6150         * modules/symlinkat-tests: Split readlinkat test...
6151         * modules/readlinkat-tests: ...into separate module.
6152         * tests/test-symlinkat.c: Split...
6153         * tests/test-readlinkat.c: ...into new file.
6154         * NEWS: Document the split.
6155         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6156         * lib/unistd.in.h (readlinkat): Likewise.
6157         Suggested by Bruno Haible.
6158
6159 2010-08-08  Bruno Haible  <bruno@clisp.org>
6160
6161         memxfrm: Speed up.
6162         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
6163         that usually only one call to strxfrm is necessary for each string
6164         part.
6165         Reported by Paul Eggert <eggert@cs.ucla.edu>.
6166
6167 2010-08-07  Karl Berry  <karl@gnu.org>
6168
6169         * doc/posix-headers/limits.texi,
6170         * doc/posix-functions/malloc.texi,
6171         * doc/posix-functions/strsignal.texi: missing @item.
6172         * doc/ld-version-script.texi: spurious leading i.
6173         * doc/regex.texi (Interval Operators): no commas inside @var.
6174
6175 2010-08-01  Bruno Haible  <bruno@clisp.org>
6176
6177         Integrate the regex documentation.
6178         * doc/gnulib.texi: Define 'cn' index.
6179         (Regular expressions): New a chapter that includes regex.texi and
6180         regexprops-generic.texi.
6181         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
6182         syntax.
6183
6184         Whitespace cleanup.
6185         * doc/regex.texi: Remove trailing spaces.
6186
6187         Add regex documentation.
6188         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
6189         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
6190         Written by Kathy A. Hargreaves and Karl Berry.
6191
6192 2010-08-01  Bruno Haible  <bruno@clisp.org>
6193
6194         link: Update documentation.
6195         * doc/posix-functions/link.texi: Update regarding Solaris.
6196
6197 2010-07-31  Bruno Haible  <bruno@clisp.org>
6198
6199         Update modules list.
6200         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
6201         (String handling <string.h>): Add memcmp2, memxfrm.
6202         (Container data structures): Add xlist, xsublist, xoset.
6203         (Core language properties): Add alignof, unused-parameter.
6204         (Process control, Numeric conversion functions <stdlib.h>): Renamed
6205         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
6206         (Unibyte characters <ctype.h>): New section.
6207         (String handling <string.h>): New section.
6208         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
6209         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
6210         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
6211         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
6212         tan, tanh, tanl, y0, y1, yn.
6213         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
6214         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
6215         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
6216         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
6217         unlockpt, vdprintf, vdprintf-posix.
6218         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
6219         (File system functions): Add concat-filename, sys_file, sys_ioctl,
6220         xconcat-filename.
6221         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
6222         getdtablesize, pipe2, pipe2-safer.
6223         (Security): New section.
6224         (Networking functions): Add accept4.
6225         (Signal handling): Add sigpipe.
6226         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
6227         mbmemcasecoll.
6228         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
6229         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
6230         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
6231         pipe-filter-ii.
6232         (Misc): Add argp-version-etc, login_tty, parse-duration.
6233
6234 2010-07-31  Bruno Haible  <bruno@clisp.org>
6235
6236         Improve doc in MODULES.html.
6237         * modules/linkat (Description): Add the word "function".
6238         * modules/mkfifo (Description): Likewise.
6239         * modules/mknod (Description): Likewise.
6240         * modules/remove (Description): Likewise.
6241         * modules/renameat (Description): Likewise.
6242         * modules/stat (Description): Likewise.
6243         * modules/symlink (Description): Likewise.
6244         * modules/unlink (Description): Likewise.
6245
6246 2010-07-31  Bruno Haible  <bruno@clisp.org>
6247
6248         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
6249         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
6250         option --enable/disable-c++ instead of --enable/disable-cxx.
6251         * NEWS: Mention the change.
6252
6253 2010-07-31  Bruno Haible  <bruno@clisp.org>
6254
6255         readlink, areadlink: Relax test a bit.
6256         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6257         alternative to ENOTDIR.
6258         * tests/test-areadlink.h (test_areadlink): Likewise.
6259         Reported by Rainer Tammer.
6260
6261 2010-07-31  Bruno Haible  <bruno@clisp.org>
6262
6263         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6264         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6265         character, perform the search using U_STRCHR.
6266         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6267         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6268         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6269         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6270         Suggested by Paolo Bonzini.
6271
6272 2010-07-31  Bruno Haible  <bruno@clisp.org>
6273
6274         unistr/u*-strstr: Fix dependencies.
6275         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6276         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6277         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6278
6279 2010-07-31  Bruno Haible  <bruno@clisp.org>
6280
6281         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6282         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6283         the beginning of the loop.
6284         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6285         cases in 'switch' statement.
6286
6287         unistr/u8-strchr: Fix several bugs.
6288         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6289         the string. When not found, return NULL, not a pointer near the end.
6290
6291         More tests for unistr/u8-strchr.
6292         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6293         that the function does not read past the first occurrence of the byte
6294         being searched.
6295         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6296         * tests/unistr/test-u16-strchr.c (main): New function.
6297         * tests/unistr/test-u32-strchr.c (main): New function.
6298
6299 2010-07-31  Bruno Haible  <bruno@clisp.org>
6300
6301         posix-modules: Ignore backup files of documentation files.
6302         * posix-modules: grep only through files named *.texi.
6303
6304 2010-07-31  Bruno Haible  <bruno@clisp.org>
6305
6306         symlinkat: Fix documentation.
6307         * doc/posix-functions/readlinkat.texi: Fix module name.
6308
6309 2010-07-31  Bruno Haible  <bruno@clisp.org>
6310
6311         fchownat: Replace also when chown has the trailing slash bug.
6312         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6313         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6314         introduced on 2010-04-10.
6315         Reported by Rainer Tammer.
6316
6317 2010-07-31  Bruno Haible  <bruno@clisp.org>
6318
6319         linkat: Work around AIX 7.1 bug.
6320         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6321         whether linkat handles trailing slash correctly. If not, replace linkat
6322         and define LINKAT_TRAILING_SLASH_BUG.
6323         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6324         check whether (fd1,file1) points to a directory if file1 or file2 ends
6325         in a slash. Code taken from lib/link.c.
6326         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6327         Reported by Rainer Tammer.
6328
6329 2010-07-31  Bruno Haible  <bruno@clisp.org>
6330
6331         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6332         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6333         This disables an xlc optimization that was causing wrong test results.
6334         Reported by Rainer Tammer.
6335
6336 2010-07-31  Bruno Haible  <bruno@clisp.org>
6337
6338         iconv: Work around AIX 6.1..7.1 bug.
6339         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6340         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6341         cross-compiling, guess no on all versions of AIX.
6342         Reported by Rainer Tammer.
6343
6344 2010-07-31  Bruno Haible  <bruno@clisp.org>
6345
6346         readlink: Relax test a bit.
6347         * tests/test-readlink.h (test_readlink): Allow different errno value
6348         when readlink is called with a file name that ends in / and refers to
6349         a file.
6350         Suggested by Eric Blake.
6351         Reported by Rainer Tammer.
6352
6353 2010-07-31  Bruno Haible  <bruno@clisp.org>
6354
6355         copysign: Does not require -lm on glibc systems.
6356         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6357         gl_COMMON_DOUBLE_MATHFUNC.
6358         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6359
6360 2010-07-31  Bruno Haible  <bruno@clisp.org>
6361
6362         duplocale: Work around AIX 7.1 bug.
6363         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6364         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6365         * lib/duplocale.c (rpl_duplocale): Update comment.
6366         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6367         Reported by Rainer Tammer.
6368
6369 2010-07-30  Bruno Haible  <bruno@clisp.org>
6370
6371         dirfd: Avoid link error on AIX 7.1.
6372         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6373         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6374         exist, set REPLACE_DIRFD.
6375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6376         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6377         * doc/posix-functions/dirfd.texi: Update.
6378         Reported by Rainer Tammer.
6379
6380 2010-07-30  Eric Blake  <eblake@redhat.com>
6381
6382         strtod: next round of AIX fixes
6383         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6384         exponent.
6385         * tests/test-strtod.c (main): Enhance tests.
6386         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6387         Reported by Rainer Tammer.
6388
6389         futimens: fix configure check
6390         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6391         Reported by Bruno Haible.
6392
6393 2010-07-30  Bruno Haible  <bruno@clisp.org>
6394
6395         getline: Update regarding AIX.
6396         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6397         Reported by Rainer Tammer.
6398
6399 2010-07-30  Bruno Haible  <bruno@clisp.org>
6400
6401         wcwidth: Drop replacement on AIX 7.
6402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6403         AIX 7.
6404         Reported by Rainer Tammer.
6405
6406 2010-07-30  Bruno Haible  <bruno@clisp.org>
6407
6408         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6409         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6410         a 'char *'.
6411         Reported by Rainer Tammer.
6412
6413 2010-07-30  Bruno Haible  <bruno@clisp.org>
6414
6415         unlink: Update regarding AIX.
6416         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6417         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6418         Reported by Rainer Tammer.
6419
6420 2010-07-30  Bruno Haible  <bruno@clisp.org>
6421
6422         symlink: Update regarding AIX.
6423         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6424         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6425         Reported by Rainer Tammer.
6426
6427 2010-07-30  Bruno Haible  <bruno@clisp.org>
6428
6429         strndup: Update regarding AIX.
6430         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6431         AIX 7.
6432         Reported by Rainer Tammer.
6433
6434 2010-07-30  Bruno Haible  <bruno@clisp.org>
6435
6436         stat: Update regarding AIX.
6437         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6438         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6439         Reported by Rainer Tammer.
6440
6441 2010-07-30  Bruno Haible  <bruno@clisp.org>
6442
6443         truncl: Fix autoconf test.
6444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6445         whether truncl works.
6446         Reported by Rainer Tammer.
6447
6448 2010-07-30  Bruno Haible  <bruno@clisp.org>
6449
6450         round: Update regarding AIX.
6451         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6452         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6453         Reported by Rainer Tammer.
6454
6455 2010-07-30  Bruno Haible  <bruno@clisp.org>
6456
6457         rename: Update regarding AIX.
6458         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6459         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6460         Reported by Rainer Tammer.
6461
6462 2010-07-30  Bruno Haible  <bruno@clisp.org>
6463
6464         printf.m4: Update regarding AIX.
6465         * m4/printf.m4: Update comments regarding AIX.
6466         Reported by Rainer Tammer.
6467
6468 2010-07-30  Bruno Haible  <bruno@clisp.org>
6469
6470         iconv: Update regarding AIX.
6471         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6472         AIX 7.
6473         Reported by Rainer Tammer.
6474
6475 2010-07-30  Bruno Haible  <bruno@clisp.org>
6476
6477         getopt: Update regarding AIX.
6478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6479         no on AIX.
6480         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6481         Reported by Rainer Tammer.
6482
6483 2010-07-30  Bruno Haible  <bruno@clisp.org>
6484
6485         ldexpl; Update regarding AIX.
6486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6487         on AIX 7.
6488         Reported by Rainer Tammer.
6489
6490 2010-07-30  Bruno Haible  <bruno@clisp.org>
6491
6492         frexpl: Update regarding AIX.
6493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6494         on AIX 7.
6495         Reported by Rainer Tammer.
6496
6497 2010-07-30  Bruno Haible  <bruno@clisp.org>
6498
6499         open, fopen: Update regarding AIX.
6500         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6501         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6502         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6503         * doc/posix-functions/fopen.texi: Likewise.
6504         Reported by Rainer Tammer.
6505
6506 2010-07-30  Bruno Haible  <bruno@clisp.org>
6507
6508         chown: Update doc regarding AIX.
6509         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6510         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6511         Reported by Rainer Tammer.
6512
6513 2010-07-30  Eric Blake  <eblake@redhat.com>
6514
6515         strtod: fix bug in replacement function on AIX
6516         * lib/strtod.c (strtod): Special case broken "0x" parse in
6517         underlying strtod.
6518         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6519         * doc/posix-functions/strtod.texi (strtod): Likewise.
6520         Reported by Rainer Tammer.
6521
6522 2010-07-30  Bruno Haible  <bruno@clisp.org>
6523
6524         mbrlen: Fix cross-compilation guess for AIX.
6525         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6526         guess. Leftover from 2008-12-22.
6527
6528 2010-07-30  Bruno Haible  <bruno@clisp.org>
6529
6530         mbrtowc: Fix cross-compilation guess for AIX.
6531         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6532         guess. Leftover from 2008-12-21.
6533
6534 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6535
6536         init.sh: work around trap limitation of some shells
6537         * tests/init.sh (setup_): Move exit trap outside of shell function.
6538
6539 2010-07-29  Eric Blake  <eblake@redhat.com>
6540
6541         strtod: aid debugging
6542         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6543         understanding why strtod is rejected.
6544
6545 2010-07-28  Bruno Haible  <bruno@clisp.org>
6546
6547         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6548         * lib/unistr/u8-chr.c: Include <string.h>.
6549         * tests/unistr/test-u8-chr.c: Likewise.
6550         * tests/unistr/test-u16-chr.c: Likewise.
6551         * tests/unistr/test-u32-chr.c: Likewise.
6552         * tests/unistr/test-u8-strchr.c: Likewise.
6553         * tests/unistr/test-u16-strchr.c: Likewise.
6554         * tests/unistr/test-u32-strchr.c: Likewise.
6555         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6556         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6557         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6558         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6559
6560 2010-07-28  Bruno Haible  <bruno@clisp.org>
6561
6562         Use spaces for indentation, not tabs.
6563         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6564
6565 2010-07-27  Bruno Haible  <bruno@clisp.org>
6566
6567         mbspcasecmp: Fix function specification.
6568         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6569         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6570         Reported by Eric Blake <eblake@redhat.com>.
6571
6572 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6573
6574         timespec: use cast and not conditional, as truncation isn't possible
6575         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6576         instead of a conditional.  Comment about the situation in more detail.
6577         This undoes most of the 2009-10-29 patch.
6578
6579 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6580
6581         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6582         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6583         * lib/unistr/u8-strchr.c: Likewise.
6584         * modules/unistr/u8-chr: Depend on memchr.
6585
6586         unistr/u*-strchr: add tests
6587         * modules/unistr/u8-strchr-tests: New file.
6588         * modules/unistr/u16-strchr-tests: New file.
6589         * modules/unistr/u32-strchr-tests: New file.
6590         * tests/unistr/test-strchr.h: New file.
6591         * tests/unistr/test-u8-strchr.c: New file.
6592         * tests/unistr/test-u16-strchr.c: New file.
6593         * tests/unistr/test-u32-strchr.c: New file.
6594
6595         unistr/u*-chr: test multibyte sequences more
6596         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6597         test vector.
6598         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6599         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6600         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6601
6602         unistr/u*-chr: test multibyte sequences
6603         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6604
6605         unistr/u*-chr: prepare for multibyte tests
6606         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6607         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6608         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6609         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6610         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6611         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6612
6613 2010-07-18  Bruno Haible  <bruno@clisp.org>
6614
6615         unistr/u8-strchr: Optimize non-ASCII argument case.
6616         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6617         because the first byte often matches anyway.
6618         Reported by Pádraig Brady <P@draigbrady.com>.
6619
6620 2010-07-15  Karl Berry  <karl@gnu.org>
6621
6622         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6623
6624 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6625
6626         getcwd: on Solaris, work better if ancestors are inaccessible
6627         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6628         buffer and size, try again with a large buffer.  This works better
6629         on Solaris, since its getcwd succeeds even if the path to the root
6630         is inaccessible, and this is helpful in common cases such as .zfs
6631         hidden directories.  Problem reported by J Chapman Flack in
6632         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6633         Use system getcwd if it's declared, not merely if it's partly
6634         working; use the partly-working test only to avoid needless effort
6635         if the system getcwd fails.
6636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6637         comment that was already obsolete and is now even more obsolete.
6638         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6639         now might call strdup.
6640
6641 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6642
6643         pthread: Add enough so that coreutils/src/sort.c compiles.
6644         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6645         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6646         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6647         Include <sys/types.h>, in case it defines pthread_t.
6648         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6649         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6650         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6651         (pthread_rwlockattr_t, pthread_spinlock_t):
6652         New typedefs, if HAVE_PTHREAD_T is not defined.
6653         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6654         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6655         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6656         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6657         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6658         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6659         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6660         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6661         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6662         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6663         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6664         New macros.
6665         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6666         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6667         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6668         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6669         (pthread_spin_unlock): New dummy functions.
6670         (pthread_create): Return EAGAIN; don't set errno.
6671         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6672         require AC_C_INLINE.
6673         * modules/pthread (Depends-on): Add sched, time.
6674         (pthread.h): Use AM_V_GEN.
6675
6676 2010-07-13  Bruno Haible  <bruno@clisp.org>
6677
6678         striconveh: Don't malloc memory if the result buffer is sufficient.
6679         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6680         buffer if its size is sufficient.
6681         Reported by Ludovic Courtès <ludo@gnu.org>.
6682
6683 2010-07-13  Bruno Haible  <bruno@clisp.org>
6684
6685         strtod: Add safety check.
6686         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6687
6688 2010-07-12  Bruno Haible  <bruno@clisp.org>
6689
6690         Unify tests that set gl_cv_func_ldexpl_no_libm.
6691         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6692         gl_FUNC_LDEXPL.
6693         (gl_FUNC_LDEXPL): Invoke it.
6694         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6695
6696 2010-07-12  Bruno Haible  <bruno@clisp.org>
6697
6698         Unify tests that set gl_cv_func_ldexp_no_libm.
6699         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6700         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6701         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6702         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6703         * modules/strtod (Files): Add m4/ldexp.m4.
6704
6705 2010-07-12  Bruno Haible  <bruno@clisp.org>
6706
6707         Unify tests that set gl_cv_func_frexpl_no_libm.
6708         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6709         gl_FUNC_FREXPL_NO_LIBM.
6710         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6711         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6712
6713 2010-07-12  Bruno Haible  <bruno@clisp.org>
6714
6715         Unify tests that set gl_cv_func_frexp_no_libm.
6716         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6717         gl_FUNC_FREXP_NO_LIBM.
6718         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6719         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6720
6721 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6722
6723         memcoll: clarify sizes versus lengths, document better, and tweak perf
6724         * lib/memcoll.c (strcoll_loop, memcoll0):
6725         Improve quality of descriptive comments.  Name variables
6726         consistently as to whether they are lengths (which do not include
6727         terminating null) versus sizes (which do).
6728         * lib/xmemcoll.c (xmemcoll0): Likewise.
6729         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6730         returned when s1size == 0; this is easier to compile and saves
6731         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6732
6733 2010-07-12  Bruno Haible  <bruno@clisp.org>
6734
6735         Tests for module '_Exit'.
6736         * modules/_Exit-tests: New file.
6737         * tests/test-_Exit.sh: New file.
6738         * tests/test-_Exit.c: New file.
6739
6740         New module '_Exit'.
6741         * lib/stdlib.in.h (__attribute__): New macro.
6742         (_Exit): New declaration.
6743         * lib/_Exit.c: New file.
6744         * m4/_Exit.m4: New file.
6745         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6746         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6747         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6748         * modules/_Exit: New file.
6749         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6750         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6751
6752 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6753
6754         strtod: make it more-accurate typically, and don't require libm
6755         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6756         Include limits.h.  Don't include string.h.
6757         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6758         (locale_isspace): New function, so that no casts are needed to
6759         check whether *s is a space.
6760         (ldexp): Provide an unused dummy if not available.
6761         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6762         (strtod): Use them.  This implementation prefers to use the
6763         underlying strtod if available, falling back on our own code
6764         only to fix known bugs.  This is more likely to produce an
6765         accurate result.  Also, it avoids the use of libm functions.
6766         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6767         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6768         was absent, but it caused a test failure with coreutils.
6769         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6770         with libm.
6771         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6772         * modules/strtod-tests (Makefile.am): Likewise.
6773
6774 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6775             Bruno Haible  <bruno@clisp.org>
6776
6777         unistr/u8-strchr: Optimize ASCII argument case.
6778         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6779
6780 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6781
6782         (x)memcoll: minor tweaks
6783         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6784         is after the type that it qualifies.
6785         (memcoll0): Likewise.
6786         * lib/memcoll.h (memcoll0): Likewise.
6787         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6788         * lib/xmemcoll.h (xmemcoll0): Likewise.
6789         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6790         differs from memcoll in that the NUL byte is part of the argument.
6791         Omit the abort-checks, as performance is a real issue here.  Plus,
6792         the checks were wrong anyway (an off-by-one error).  Omit local
6793         variable 'diff', as it's a bit clearer that way.
6794         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6795         no longer needed.
6796
6797 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6798
6799         (x)memcoll: speedup when input is known to be NUL delimited
6800         * lib/memcoll.c: Include stdlib.
6801         (memcoll0) New function.
6802         (strcoll_loop) New function, refactored for use in both memcoll
6803         and memcoll0.
6804         * lib/memcoll.h: Add prototype for memcoll0.
6805         * lib/xmemcoll.c: (xmemcoll0) New function.
6806         (collate_error) New function, refactored for use in both xmemcoll
6807         and xmemcoll0.
6808         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6809         * m4/memcoll.m4: add inline invocation.
6810
6811 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6812
6813         * build-aux/bootstrap: Remove any local translations
6814         from the translation project synchronization directory,
6815         so that local only translations are not distributed.
6816
6817 2010-07-04  Bruno Haible  <bruno@clisp.org>
6818
6819         fsusage: Clarify which code applies to which platforms.
6820         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6821         platform.
6822         * lib/fsusage.c (get_fs_usage): Likewise.
6823
6824 2010-07-04  Bruno Haible  <bruno@clisp.org>
6825
6826         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6827         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6828         Reported by Martin Lambers <marlam@marlam.de>.
6829
6830 2010-07-04  Jim Meyering  <meyering@redhat.com>
6831
6832         hash: once again explicitly disallow insertion of NULL
6833         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6834         inserting a NULL pointer cannot work with these functions.
6835         Add a comment with details.
6836         This reverts part of the 2010-07-01 commit, 5bef1a35
6837         "hash: extend module to deal with non-pointer keys".
6838
6839 2010-07-01  Bruno Haible  <bruno@clisp.org>
6840
6841         stdbool: Update doc.
6842         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6843         Info from Christian Weisgerber <naddy@mips.inka.de>.
6844
6845 2010-07-01  Jim Meyering  <meyering@redhat.com>
6846
6847         hash: extend module to deal with non-pointer keys
6848         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6849         but that allows insertion of non-pointer entries.
6850         Do not disallow an ENTRY value of NULL.
6851         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6852         * lib/hash.h (hash_insert0): Declare.
6853
6854 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6855
6856         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6857         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6858         not present (i.e. with autoconf 2.59 and when using gettextize, not
6859         gnulib), require AC_GNU_SOURCE instead.
6860
6861 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6862
6863         idpriv-drop: Fix tests.
6864         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6865         not to the test-idpriv-droptemp program.
6866
6867 2010-06-29  Bruno Haible  <bruno@clisp.org>
6868
6869         string: Fix syntax error with g++ 2.96.
6870         * lib/string.in.h (__pure__): Remove definition.
6871         (_GL_ATTRIBUTE_PURE): New macro.
6872         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6873         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6874         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6875
6876 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6877
6878         unitypes: Fix bug introduced on 2010-05-18.
6879         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6880
6881 2010-06-22  Eric Blake  <eblake@redhat.com>
6882
6883         memmem: slight optimization
6884         * lib/str-two-way.h (critical_factorization): Update comments.
6885         Reduce work during factorization phase.
6886         Reported by Carlos Bueno <carlos@bueno.org>.
6887
6888 2010-06-21  Bruno Haible  <bruno@clisp.org>
6889
6890         Fix HAVE_CALLOC_POSIX misnomer.
6891         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6892         !HAVE_CALLOC_POSIX.
6893         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6894         HAVE_CALLOC_POSIX.
6895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6896         instead of HAVE_CALLOC_POSIX.
6897         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6898         HAVE_CALLOC_POSIX.
6899
6900         Use modern idiom for calloc() replacement.
6901         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6902         AC_FUNC_CALLOC.
6903         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6904         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6905         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6906         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6907         (gl_REPLACE_CALLOC): New macro.
6908
6909 2010-06-21  Bruno Haible  <bruno@clisp.org>
6910
6911         Fix HAVE_REALLOC_POSIX misnomer.
6912         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6913         !HAVE_REALLOC_POSIX.
6914         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6915         HAVE_REALLOC_POSIX.
6916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6917         instead of HAVE_REALLOC_POSIX.
6918         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6919         HAVE_REALLOC_POSIX.
6920
6921         Use modern idiom for realloc() replacement.
6922         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6923         AC_FUNC_REALLOC.
6924         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6925         Autoconf's AC_FUNC_REALLOC.
6926         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6927         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6928         (gl_REPLACE_REALLOC): New macro.
6929         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6930
6931 2010-06-21  Bruno Haible  <bruno@clisp.org>
6932
6933         Fix HAVE_MALLOC_POSIX misnomer.
6934         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6935         !HAVE_MALLOC_POSIX.
6936         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6937         HAVE_MALLOC_POSIX.
6938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6939         instead of HAVE_MALLOC_POSIX.
6940         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6941         HAVE_MALLOC_POSIX.
6942
6943         Use modern idiom for malloc() replacement.
6944         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6945         AC_FUNC_MALLOC.
6946         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6947         Autoconf's AC_FUNC_MALLOC.
6948         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6949         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6950         (gl_REPLACE_MALLOC): New macro.
6951         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6952
6953 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6954
6955         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6956         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6957         This macro takes 3 arguments, not 4.
6958
6959 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6960
6961         ipv6: fix detection under mingw
6962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6963         in6_addr.
6964
6965 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6966
6967         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6968         that strtod() works when cross-compiling to a glibc version known
6969         to work.
6970
6971 2010-06-15  Bruno Haible  <bruno@clisp.org>
6972
6973         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6974
6975 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6976
6977         select: Correct timeout.
6978         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6979
6980 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6981
6982         git-version-gen: init shell var to avoid env var influence
6983         * build-aux/git-version-gen (v): Init shell var to empty.
6984
6985 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6986
6987         priv-set: Don't assume that priv.h exists merely because getppriv does.
6988         See Jan Andersen's bug report about AIX 5L in
6989         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6990         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6991         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6992         * lib/priv-set.h: Likewise.
6993         * tests/test-priv-set.c: Likewise.
6994
6995 2010-06-13  Bruno Haible  <bruno@clisp.org>
6996
6997         relocatable: Make it easier to test whether to install wrappers.
6998         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6999         RELOCATABLE_VIA_WRAPPER.
7000
7001 2010-06-13  Bruno Haible  <bruno@clisp.org>
7002
7003         gnulib-tool: Display specified modules and dependencies differently.
7004         * gnulib-tool (func_show_module_list): New function.
7005         (func_import, func_create_testdir): Invoke it.
7006         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7007
7008 2010-06-13  Bruno Haible  <bruno@clisp.org>
7009
7010         gnulib-tool: Align code of func_import and func_create_testdir.
7011         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
7012         specified_modules.
7013
7014 2010-06-12  Jim Meyering  <meyering@redhat.com>
7015
7016         test-inttostr: avoid spurious failure on Solaris 9
7017         * tests/test-inttostr.c (main): Skip the test when snprintf fails
7018         to accept "%ju".  Reported by Bruno Haible.
7019
7020 2010-06-11  Jim Meyering  <meyering@redhat.com>
7021
7022         test-sys_socket: mark variables as used more readably
7023         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7024         as "used" explicitly via (void) statement casts.  This is more
7025         readable than using them in an artificial return expression.
7026         Suggestion from Bruno Haible.
7027
7028 2010-06-11  Bruno Haible  <bruno@clisp.org>
7029
7030         Avoid some more warnings from "gcc -Wwrite-strings".
7031         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
7032         to 'const char *'.
7033         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
7034         * tests/test-c-strcasestr.c (main): Likewise.
7035         * tests/test-mbscasestr1.c (main): Likewise.
7036         * tests/test-mbscasestr2.c (main): Likewise.
7037         * tests/test-memmem.c (main): Likewise.
7038         * tests/test-strstr.c (main): Likewise.
7039         * tests/test-strcasestr.c (main): Likewise.
7040
7041 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7042
7043         init.sh: change framework_failure_ to fail with status 99, not 1
7044         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
7045         automake's parallel-tests rule that this is an unexpected failure,
7046         even if the test is listed in XFAIL_TESTS.
7047
7048 2010-06-11  Jim Meyering  <meyering@redhat.com>
7049
7050         test-inttostr: avoid warnings about 4-6KB literal strings
7051         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
7052         Include "macros.h", for its definition of ASSERT.
7053         (CK): s/assert/ASSERT/
7054         * modules/inttostr-tests (Files): Add macros.h.
7055
7056         init.sh: don't use $ME_ or skip_ before they are defined
7057         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
7058         their first uses.  Also hoist their companions: warn_, fail_,
7059         framework_failure_, $stderr_fileno.  Prompted by a patch from
7060         Stefano Lattarini.
7061
7062         test-sys_socket: avoid set-but-not-used warnings from gcc
7063         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
7064         avoid warning about set-but-not-used variables.
7065
7066         test-xvasprintf: avoid 'const' discard warnings
7067         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
7068         "const" when assigning from literal strings.
7069         (test_xasprintf): Add "void" in function argument list to placate
7070         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
7071
7072         tests: avoid compilation warnings in argmatch and exclude tests...
7073         in packages that define ARGMATCH_DIE_DECL, like coreutils.
7074         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7075         Since it always exits, declare with the "noreturn" attribute.
7076         * tests/test-argmatch.c: Likewise.
7077
7078         tests: avoid 'const' discard warnings in mbsstr tests
7079         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7080         * tests/test-mbsstr2.c (main): Likewise.
7081
7082         test-verify: avoid warning from gcc's -Wmissing-declarations
7083         * tests/test-verify.c (function): Declare to be static.
7084
7085         test-inttostr.c: include <string.h> for use of strcmp
7086         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7087
7088         test-linkat: avoid failed assertion on "other" architectures
7089         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7090         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7091         sparc: https://bugs.launchpad.net/bugs/591968
7092
7093 2010-06-11  Jim Meyering  <meyering@redhat.com>
7094
7095         printf.m4: avoid autoconf's "Expanded Before Required" warning
7096         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7097         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7098         autoconf warning.
7099
7100 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7101
7102         Replacement header templates are now named with ".in", not "_".
7103         * doc/gnulib-intro.texi: Correct.
7104
7105 2010-06-10  Jim Meyering  <meyering@redhat.com>
7106
7107         inttostr-tests: depend on snprintf, not snprintf-posix
7108         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7109         snprintf-posix, to avoid this aclocal failure:
7110           missing file gnulib-tests/vasnprintf.c
7111           configure.ac:45: error: expected source file, required through \
7112           AC_LIBSOURCES, not found
7113
7114 2010-06-10  Jim Meyering  <meyering@redhat.com>
7115
7116         inttostr: add a new function, inttostr, and tests
7117         The namesake function was not available.  The existence of the
7118         template file, inttostr.c makes its addition nontrivial.
7119         * lib/anytostr.c: Rename from inttostr.c.
7120         (anytostr): Rename from inttostr.
7121         * lib/inttostr.c: New file.
7122         * modules/inttostr (Files): Add anytostr.c.
7123         (Makefile.am): Set lib_SOURCES instead of ...
7124         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7125         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7126         * lib/offtostr.c: Likewise.
7127         * lib/uinttostr.c: Likewise.
7128         * lib/umaxtostr.c: Likewise.
7129         * modules/inttostr-tests: New file.
7130         * tests/test-inttostr.c: New file.  Test these functions.
7131
7132 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
7133             Bruno Haible  <bruno@clisp.org>
7134
7135         Add "Extending Gnulib" chapter to manual.
7136         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
7137         chapter.
7138         (Extending Gnulib): New chapter.
7139         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
7140         chapter.
7141
7142 2010-06-09  Bruno Haible  <bruno@clisp.org>
7143
7144         Avoid relocwrapper link errors due to gnulib replacement functions.
7145         * lib/areadlink.c: Use the system's malloc, realloc functions.
7146         (areadlink): Set errno to ENOMEM explicitly.
7147         * modules/areadlink (Depends-on): Remove malloc-posix.
7148         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7149
7150 2010-06-09  Bruno Haible  <bruno@clisp.org>
7151
7152         Avoid relocwrapper link errors due to gnulib replacement functions.
7153         * lib/canonicalize-lgpl.c: Use the system's malloc function.
7154         * lib/malloca.c: Likewise.
7155         * lib/relocatable.c: Likewise.
7156         * lib/progreloc.c: Use the system's malloc, sprintf functions.
7157         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
7158         * lib/setenv.c: Use the system's malloc, realloc functions.
7159         * lib/strerror.c: Use the system's sprintf function.
7160         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7161
7162 2010-06-04  Bruno Haible  <bruno@clisp.org>
7163
7164         Prefer documented low-level autoconf macro names.
7165         * m4/lib-link.m4: Use m4_translit instead of translit.
7166         * m4/environ.m4: Likewise.
7167         * m4/mathfunc.m4: Likewise.
7168         * m4/onceonly.m4: Likewise.
7169         * m4/stdint.m4: Likewise.
7170         Suggested by Eric Blake.
7171
7172 2010-06-04  Martin Lambers  <marlam@marlam.de>
7173             Bruno Haible  <bruno@clisp.org>
7174
7175         havelib: Allow library names with '+' characters.
7176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7177         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
7178
7179 2010-06-09  Bruno Haible  <bruno@clisp.org>
7180
7181         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
7182         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
7183         realloc failed.
7184
7185 2010-06-08  Peter Simons  <simons@cryp.to>
7186
7187         maint.mk: make the news-check rule more configurable
7188         * top/maint.mk (news-check-lines-spec) New variable.
7189         (news-check): Use "sed -n 1,10p" in place of "head".
7190
7191 2010-06-07  Jim Meyering  <meyering@redhat.com>
7192
7193         do-release-commit-and-tag: fix typo in --help
7194         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
7195
7196         regex: avoid new dead-code warning with gcc-4.6.0
7197         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
7198         if-block containing a while-loop.  It's been unused for at least
7199         5 years.
7200
7201 2010-06-05  Bruno Haible  <bruno@clisp.org>
7202
7203         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
7204         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
7205
7206 2010-06-04  Bruno Haible  <bruno@clisp.org>
7207
7208         Update to GNU gettext 0.18.1.
7209         * modules/gettext (configure.ac): Require gettext infrastructure from
7210         version 0.18.1.
7211
7212 2010-06-03  Bruno Haible  <bruno@clisp.org>
7213
7214         Don't use AC_LIBOBJ with file names in subdirectories.
7215         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
7216         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
7217         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
7218         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
7219         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
7220         gl_LIBUNISTRING_LIBSOURCE.
7221         (Makefile.am): Augment lib_SOURCES here, conditionally.
7222         * NEWS: Drop requirement for Automake option 'subdir-objects'.
7223
7224 2010-06-03  Bruno Haible  <bruno@clisp.org>
7225
7226         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
7227         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
7228         expansion does not end with a newline.
7229         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
7230         unnecessary newline.
7231
7232 2010-06-03  Bruno Haible  <bruno@clisp.org>
7233
7234         Reduce dependencies.
7235         * tests/test-quotearg.h: New file, extracted from
7236         tests/test-quotearg.c.
7237         * tests/test-quotearg-simple.c: New file, extracted from
7238         tests/test-quotearg.c.
7239         * tests/test-quotearg.c: Don't include <ctype.h>.
7240         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
7241         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
7242         use_quote_double_quotes, use_quotearg_colon): Moved to
7243         tests/test-quotearg.h.
7244         (results_g, flag_results, custom_quotes, custom_results): Moved
7245         to tests/test-quotearg-simple.c.
7246         (main): Moved the part that does not depend on gettext to
7247         tests/test-quotearg-simple.c. Return 77 if the test cannot be
7248         performed.
7249         * modules/quotearg-simple: New file.
7250         * modules/quotearg-simple-tests: New file.
7251         * modules/quotearg (Depends-on): Add quotearg-simple.
7252         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
7253         (Files): Add tests/test-quotearg.h.
7254         Reported by Paolo Bonzini.
7255
7256 2010-06-03  Bruno Haible  <bruno@clisp.org>
7257
7258         Reduce dependencies.
7259         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7260
7261 2010-06-03  Bruno Haible  <bruno@clisp.org>
7262
7263         time: Undefine more broken macros.
7264         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7265         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7266         Reported by Eric Blake.
7267
7268 2010-06-03  Bruno Haible  <bruno@clisp.org>
7269
7270         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7271         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7272         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7273         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7274         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7275         Reported by Ludovic Courtès <ludo@gnu.org>.
7276
7277 2010-06-02  Eric Blake  <eblake@redhat.com>
7278
7279         time: work with mingw + pthreads-win32 library
7280         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7281         if timespec is defined only in pthread.h.
7282         * modules/time (Makefile.am): Substitute it.
7283         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7284         <pthread.h>, when needed.
7285         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7286         from the library.
7287
7288 2010-05-31  Bruno Haible  <bruno@clisp.org>
7289
7290         Avoid expanding two macros in the wrong order.
7291         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7292         gl_LIBUNISTRING if it is defined.
7293         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7294         autoconf >= 2.64.
7295         Reported by Ludovic Courtès <ludo@gnu.org>.
7296
7297 2010-05-27  Jim Meyering  <meyering@redhat.com>
7298
7299         maint.mk: also prohibit "#undef" of always-defined symbols
7300         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7301         Allow more than one space before the symbol name.
7302         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7303         the regexp uses alternation.
7304
7305 2010-05-26  Eric Blake  <eblake@redhat.com>
7306
7307         maint.mk: avoid echo -e
7308         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7309         Convert all uses of echo -* to printf.
7310         Reported by Matthias Bolte.
7311
7312 2010-05-25  Bruno Haible  <bruno@clisp.org>
7313
7314         Update to GNU gettext 0.18, part 2.
7315         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7316         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7317
7318 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7319
7320         Add missing include in test-pwrite.c.
7321         * tests/test-pwrite.c: Include string.h, for strcmp.
7322
7323 2010-05-24  Bruno Haible  <bruno@clisp.org>
7324
7325         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7326
7327 2010-05-24  Bruno Haible  <bruno@clisp.org>
7328
7329         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7330         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7331         iconveh_error argument.
7332         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7333         U_STRCONV_TO_LOCALE.
7334         * lib/unistr/u16-strcoll.c: Likewise.
7335         * lib/unistr/u32-strcoll.c: Likewise.
7336         * modules/unistr/u8-strcoll (Depends-on): Add
7337         uniconv/u8-strconv-to-enc, localcharset. Remove
7338         uniconv/u8-strconv-to-locale.
7339         (configure.ac): Bump version number.
7340         * modules/unistr/u16-strcoll (Depends-on): Add
7341         uniconv/u16-strconv-to-enc, localcharset. Remove
7342         uniconv/u16-strconv-to-locale.
7343         (configure.ac): Bump version number.
7344         * modules/unistr/u32-strcoll (Depends-on): Add
7345         uniconv/u32-strconv-to-enc, localcharset. Remove
7346         uniconv/u32-strconv-to-locale.
7347         (configure.ac): Bump version number.
7348
7349 2010-05-24  Bruno Haible  <bruno@clisp.org>
7350
7351         Avoid a test failure on NetBSD 5.0.
7352         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7353         an iconv() bug.
7354
7355 2010-05-24  Bruno Haible  <bruno@clisp.org>
7356
7357         Adjust #include directive style.
7358         * modules/regex (Includes): Recommend to write <regex.h>.
7359
7360 2010-05-24  Bruno Haible  <bruno@clisp.org>
7361
7362         regex: Don't require alloca.
7363         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7364         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7365         only inside if (0).
7366
7367 2010-05-23  Jim Meyering  <meyering@redhat.com>
7368
7369         test-renameat.c: include <sys/stat.h>
7370         * tests/test-renameat.c: Include <sys/stat.h>; required for
7371         definition of S_IS* macros.
7372
7373 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7374
7375         Update maintainer documentation for 'relocatable-prog' module.
7376         * doc/relocatable-maint.texi: Update.
7377         Comments by Bruno Haible.
7378
7379 2010-05-23  Bruno Haible  <bruno@clisp.org>
7380
7381         git-merge-changelog: Enable --split-merged-entry by default.
7382         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7383         (usage): Don't mention this option any more.
7384         Reported by Ralf Wildenhues.
7385
7386 2010-05-23  Jim Meyering  <meyering@redhat.com>
7387
7388         test-pwrite: do not leave behind a test file named "out"
7389         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7390         The trivial-looking use of init.sh is really necessary.
7391         It ensures that the temporary file, "out", is created in
7392         a temporary directory, and removed upon termination.
7393         * tests/test-pwrite.sh: Re-add file.
7394         * modules/pwrite-tests: Reference it.
7395
7396 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7397
7398         Fix output redirection buglet in init.sh.
7399         * tests/init.sh: Fix redirection of stderr.
7400
7401 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7402
7403         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7404
7405 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7406
7407         * modules/valgrind-tests: New file.
7408         * m4/valgrind-tests.m4: New file.
7409         * doc/valgrind-tests.texi: New file.
7410         * doc/gnulib.texi (Running self-tests under valgrind): New
7411         section.
7412
7413 2010-05-19  Bruno Haible  <bruno@clisp.org>
7414
7415         Clean up dead code in recent commit.
7416         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7417         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7418         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7419         Suggested by Paolo Bonzini.
7420
7421 2010-05-19  Bruno Haible  <bruno@clisp.org>
7422
7423         Avoid valgrind error reports from libunistring.
7424         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7425         * modules/libunistring (Files): Add it.
7426         * modules/libunistring-optional (Files): Likewise.
7427
7428 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7429             Bruno Haible  <bruno@clisp.org>
7430
7431         New module 'libunistring-optional'.
7432         * modules/libunistring-optional: New file.
7433         * m4/libunistring-base.m4: New file.
7434         * m4/libunistring-optional.m4: New file.
7435         * lib/unicase.in.h: Renamed from lib/unicase.h.
7436         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7437         * lib/unictype.in.h: Renamed from lib/unictype.h.
7438         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7439         * lib/uniname.in.h: Renamed from lib/uniname.h.
7440         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7441         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7442         * lib/unistr.in.h: Renamed from lib/unistr.h.
7443         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7444         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7445         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7446         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7447         gl_LIBUNISTRING. If the library was found, determine the installed
7448         version and set LIBUNISTRING_VERSION.
7449         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7450         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7451         handle a configuration option --with-included-libunistring.
7452         * modules/libunistring (Files): Add m4/absolute-header.m4.
7453         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7454         Add m4/libunistring-base.m4.
7455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7456         (Makefile.am): Build unicase.h from unicase.in.h.
7457         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7458         Add m4/libunistring-base.m4.
7459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7460         (Makefile.am): Build uniconv.h from uniconv.in.h.
7461         * modules/unictype/base (Files): Use unictype.in.h instead of
7462         unictype.h. Add m4/libunistring-base.m4.
7463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7464         (Makefile.am): Build unictype.h from unictype.in.h.
7465         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7466         Add m4/libunistring-base.m4.
7467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7468         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7469         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7470         Add m4/libunistring-base.m4.
7471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7472         (Makefile.am): Build uniname.h from uniname.in.h.
7473         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7474         Add m4/libunistring-base.m4.
7475         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7476         (Makefile.am): Build uninorm.h from uninorm.in.h.
7477         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7478         unistdio.h. Add m4/libunistring-base.m4.
7479         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7480         (Makefile.am): Build unistdio.h from unistdio.in.h.
7481         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7482         Add m4/libunistring-base.m4.
7483         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7484         (Makefile.am): Build unistr.h from unistr.in.h.
7485         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7486         Add m4/libunistring-base.m4.
7487         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7488         (Makefile.am): Build unitypes.h from unitypes.in.h.
7489         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7490         Add m4/libunistring-base.m4.
7491         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7492         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7493         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7494         uniwidth.h. Add m4/libunistring-base.m4.
7495         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7496         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7497         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7498         instead of augmenting lib_SOURCES.
7499         * modules/unicase/empty-suffix-context: Likewise.
7500         * modules/unicase/locale-language: Likewise.
7501         * modules/unicase/tolower: Likewise.
7502         * modules/unicase/totitle: Likewise.
7503         * modules/unicase/toupper: Likewise.
7504         * modules/unicase/u8-casecmp: Likewise.
7505         * modules/unicase/u8-casecoll: Likewise.
7506         * modules/unicase/u8-casefold: Likewise.
7507         * modules/unicase/u8-casexfrm: Likewise.
7508         * modules/unicase/u8-ct-casefold: Likewise.
7509         * modules/unicase/u8-ct-tolower: Likewise.
7510         * modules/unicase/u8-ct-totitle: Likewise.
7511         * modules/unicase/u8-ct-toupper: Likewise.
7512         * modules/unicase/u8-is-cased: Likewise.
7513         * modules/unicase/u8-is-casefolded: Likewise.
7514         * modules/unicase/u8-is-lowercase: Likewise.
7515         * modules/unicase/u8-is-titlecase: Likewise.
7516         * modules/unicase/u8-is-uppercase: Likewise.
7517         * modules/unicase/u8-prefix-context: Likewise.
7518         * modules/unicase/u8-suffix-context: Likewise.
7519         * modules/unicase/u8-tolower: Likewise.
7520         * modules/unicase/u8-totitle: Likewise.
7521         * modules/unicase/u8-toupper: Likewise.
7522         * modules/unicase/u16-casecmp: Likewise.
7523         * modules/unicase/u16-casecoll: Likewise.
7524         * modules/unicase/u16-casefold: Likewise.
7525         * modules/unicase/u16-casexfrm: Likewise.
7526         * modules/unicase/u16-ct-casefold: Likewise.
7527         * modules/unicase/u16-ct-tolower: Likewise.
7528         * modules/unicase/u16-ct-totitle: Likewise.
7529         * modules/unicase/u16-ct-toupper: Likewise.
7530         * modules/unicase/u16-is-cased: Likewise.
7531         * modules/unicase/u16-is-casefolded: Likewise.
7532         * modules/unicase/u16-is-lowercase: Likewise.
7533         * modules/unicase/u16-is-titlecase: Likewise.
7534         * modules/unicase/u16-is-uppercase: Likewise.
7535         * modules/unicase/u16-prefix-context: Likewise.
7536         * modules/unicase/u16-suffix-context: Likewise.
7537         * modules/unicase/u16-tolower: Likewise.
7538         * modules/unicase/u16-totitle: Likewise.
7539         * modules/unicase/u16-toupper: Likewise.
7540         * modules/unicase/u32-casecmp: Likewise.
7541         * modules/unicase/u32-casecoll: Likewise.
7542         * modules/unicase/u32-casefold: Likewise.
7543         * modules/unicase/u32-casexfrm: Likewise.
7544         * modules/unicase/u32-ct-casefold: Likewise.
7545         * modules/unicase/u32-ct-tolower: Likewise.
7546         * modules/unicase/u32-ct-totitle: Likewise.
7547         * modules/unicase/u32-ct-toupper: Likewise.
7548         * modules/unicase/u32-is-cased: Likewise.
7549         * modules/unicase/u32-is-casefolded: Likewise.
7550         * modules/unicase/u32-is-lowercase: Likewise.
7551         * modules/unicase/u32-is-titlecase: Likewise.
7552         * modules/unicase/u32-is-uppercase: Likewise.
7553         * modules/unicase/u32-prefix-context: Likewise.
7554         * modules/unicase/u32-suffix-context: Likewise.
7555         * modules/unicase/u32-tolower: Likewise.
7556         * modules/unicase/u32-totitle: Likewise.
7557         * modules/unicase/u32-toupper: Likewise.
7558         * modules/unicase/ulc-casecmp: Likewise.
7559         * modules/unicase/ulc-casecoll: Likewise.
7560         * modules/unicase/ulc-casexfrm: Likewise.
7561         * modules/uniconv/u8-conv-from-enc: Likewise.
7562         * modules/uniconv/u8-conv-to-enc: Likewise.
7563         * modules/uniconv/u8-strconv-from-enc: Likewise.
7564         * modules/uniconv/u8-strconv-from-locale: Likewise.
7565         * modules/uniconv/u8-strconv-to-enc: Likewise.
7566         * modules/uniconv/u8-strconv-to-locale: Likewise.
7567         * modules/uniconv/u16-conv-from-enc: Likewise.
7568         * modules/uniconv/u16-conv-to-enc: Likewise.
7569         * modules/uniconv/u16-strconv-from-enc: Likewise.
7570         * modules/uniconv/u16-strconv-from-locale: Likewise.
7571         * modules/uniconv/u16-strconv-to-enc: Likewise.
7572         * modules/uniconv/u16-strconv-to-locale: Likewise.
7573         * modules/uniconv/u32-conv-from-enc: Likewise.
7574         * modules/uniconv/u32-conv-to-enc: Likewise.
7575         * modules/uniconv/u32-strconv-from-enc: Likewise.
7576         * modules/uniconv/u32-strconv-from-locale: Likewise.
7577         * modules/uniconv/u32-strconv-to-enc: Likewise.
7578         * modules/uniconv/u32-strconv-to-locale: Likewise.
7579         * modules/unictype/bidicategory-byname: Likewise.
7580         * modules/unictype/bidicategory-name: Likewise.
7581         * modules/unictype/bidicategory-of: Likewise.
7582         * modules/unictype/bidicategory-test: Likewise.
7583         * modules/unictype/block-list: Likewise.
7584         * modules/unictype/block-test: Likewise.
7585         * modules/unictype/category-C: Likewise.
7586         * modules/unictype/category-Cc: Likewise.
7587         * modules/unictype/category-Cf: Likewise.
7588         * modules/unictype/category-Cn: Likewise.
7589         * modules/unictype/category-Co: Likewise.
7590         * modules/unictype/category-Cs: Likewise.
7591         * modules/unictype/category-L: Likewise.
7592         * modules/unictype/category-Ll: Likewise.
7593         * modules/unictype/category-Lm: Likewise.
7594         * modules/unictype/category-Lo: Likewise.
7595         * modules/unictype/category-Lt: Likewise.
7596         * modules/unictype/category-Lu: Likewise.
7597         * modules/unictype/category-M: Likewise.
7598         * modules/unictype/category-Mc: Likewise.
7599         * modules/unictype/category-Me: Likewise.
7600         * modules/unictype/category-Mn: Likewise.
7601         * modules/unictype/category-N: Likewise.
7602         * modules/unictype/category-Nd: Likewise.
7603         * modules/unictype/category-Nl: Likewise.
7604         * modules/unictype/category-No: Likewise.
7605         * modules/unictype/category-P: Likewise.
7606         * modules/unictype/category-Pc: Likewise.
7607         * modules/unictype/category-Pd: Likewise.
7608         * modules/unictype/category-Pe: Likewise.
7609         * modules/unictype/category-Pf: Likewise.
7610         * modules/unictype/category-Pi: Likewise.
7611         * modules/unictype/category-Po: Likewise.
7612         * modules/unictype/category-Ps: Likewise.
7613         * modules/unictype/category-S: Likewise.
7614         * modules/unictype/category-Sc: Likewise.
7615         * modules/unictype/category-Sk: Likewise.
7616         * modules/unictype/category-Sm: Likewise.
7617         * modules/unictype/category-So: Likewise.
7618         * modules/unictype/category-Z: Likewise.
7619         * modules/unictype/category-Zl: Likewise.
7620         * modules/unictype/category-Zp: Likewise.
7621         * modules/unictype/category-Zs: Likewise.
7622         * modules/unictype/category-and: Likewise.
7623         * modules/unictype/category-and-not: Likewise.
7624         * modules/unictype/category-byname: Likewise.
7625         * modules/unictype/category-name: Likewise.
7626         * modules/unictype/category-none: Likewise.
7627         * modules/unictype/category-of: Likewise.
7628         * modules/unictype/category-or: Likewise.
7629         * modules/unictype/category-test: Likewise.
7630         * modules/unictype/combining-class: Likewise.
7631         * modules/unictype/ctype-alnum: Likewise.
7632         * modules/unictype/ctype-alpha: Likewise.
7633         * modules/unictype/ctype-blank: Likewise.
7634         * modules/unictype/ctype-cntrl: Likewise.
7635         * modules/unictype/ctype-digit: Likewise.
7636         * modules/unictype/ctype-graph: Likewise.
7637         * modules/unictype/ctype-lower: Likewise.
7638         * modules/unictype/ctype-print: Likewise.
7639         * modules/unictype/ctype-punct: Likewise.
7640         * modules/unictype/ctype-space: Likewise.
7641         * modules/unictype/ctype-upper: Likewise.
7642         * modules/unictype/ctype-xdigit: Likewise.
7643         * modules/unictype/decimal-digit: Likewise.
7644         * modules/unictype/digit: Likewise.
7645         * modules/unictype/mirror: Likewise.
7646         * modules/unictype/numeric: Likewise.
7647         * modules/unictype/property-alphabetic: Likewise.
7648         * modules/unictype/property-ascii-hex-digit: Likewise.
7649         * modules/unictype/property-bidi-arabic-digit: Likewise.
7650         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7651         * modules/unictype/property-bidi-block-separator: Likewise.
7652         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7653         * modules/unictype/property-bidi-common-separator: Likewise.
7654         * modules/unictype/property-bidi-control: Likewise.
7655         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7656         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7657         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7658         * modules/unictype/property-bidi-european-digit: Likewise.
7659         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7660         * modules/unictype/property-bidi-left-to-right: Likewise.
7661         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7662         * modules/unictype/property-bidi-other-neutral: Likewise.
7663         * modules/unictype/property-bidi-pdf: Likewise.
7664         * modules/unictype/property-bidi-segment-separator: Likewise.
7665         * modules/unictype/property-bidi-whitespace: Likewise.
7666         * modules/unictype/property-byname: Likewise.
7667         * modules/unictype/property-combining: Likewise.
7668         * modules/unictype/property-composite: Likewise.
7669         * modules/unictype/property-currency-symbol: Likewise.
7670         * modules/unictype/property-dash: Likewise.
7671         * modules/unictype/property-decimal-digit: Likewise.
7672         * modules/unictype/property-default-ignorable-code-point: Likewise.
7673         * modules/unictype/property-deprecated: Likewise.
7674         * modules/unictype/property-diacritic: Likewise.
7675         * modules/unictype/property-extender: Likewise.
7676         * modules/unictype/property-format-control: Likewise.
7677         * modules/unictype/property-grapheme-base: Likewise.
7678         * modules/unictype/property-grapheme-extend: Likewise.
7679         * modules/unictype/property-grapheme-link: Likewise.
7680         * modules/unictype/property-hex-digit: Likewise.
7681         * modules/unictype/property-hyphen: Likewise.
7682         * modules/unictype/property-id-continue: Likewise.
7683         * modules/unictype/property-id-start: Likewise.
7684         * modules/unictype/property-ideographic: Likewise.
7685         * modules/unictype/property-ids-binary-operator: Likewise.
7686         * modules/unictype/property-ids-trinary-operator: Likewise.
7687         * modules/unictype/property-ignorable-control: Likewise.
7688         * modules/unictype/property-iso-control: Likewise.
7689         * modules/unictype/property-join-control: Likewise.
7690         * modules/unictype/property-left-of-pair: Likewise.
7691         * modules/unictype/property-line-separator: Likewise.
7692         * modules/unictype/property-logical-order-exception: Likewise.
7693         * modules/unictype/property-lowercase: Likewise.
7694         * modules/unictype/property-math: Likewise.
7695         * modules/unictype/property-non-break: Likewise.
7696         * modules/unictype/property-not-a-character: Likewise.
7697         * modules/unictype/property-numeric: Likewise.
7698         * modules/unictype/property-other-alphabetic: Likewise.
7699         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7700         * modules/unictype/property-other-grapheme-extend: Likewise.
7701         * modules/unictype/property-other-id-continue: Likewise.
7702         * modules/unictype/property-other-id-start: Likewise.
7703         * modules/unictype/property-other-lowercase: Likewise.
7704         * modules/unictype/property-other-math: Likewise.
7705         * modules/unictype/property-other-uppercase: Likewise.
7706         * modules/unictype/property-paired-punctuation: Likewise.
7707         * modules/unictype/property-paragraph-separator: Likewise.
7708         * modules/unictype/property-pattern-syntax: Likewise.
7709         * modules/unictype/property-pattern-white-space: Likewise.
7710         * modules/unictype/property-private-use: Likewise.
7711         * modules/unictype/property-punctuation: Likewise.
7712         * modules/unictype/property-quotation-mark: Likewise.
7713         * modules/unictype/property-radical: Likewise.
7714         * modules/unictype/property-sentence-terminal: Likewise.
7715         * modules/unictype/property-soft-dotted: Likewise.
7716         * modules/unictype/property-space: Likewise.
7717         * modules/unictype/property-terminal-punctuation: Likewise.
7718         * modules/unictype/property-test: Likewise.
7719         * modules/unictype/property-titlecase: Likewise.
7720         * modules/unictype/property-unassigned-code-value: Likewise.
7721         * modules/unictype/property-unified-ideograph: Likewise.
7722         * modules/unictype/property-uppercase: Likewise.
7723         * modules/unictype/property-variation-selector: Likewise.
7724         * modules/unictype/property-white-space: Likewise.
7725         * modules/unictype/property-xid-continue: Likewise.
7726         * modules/unictype/property-xid-start: Likewise.
7727         * modules/unictype/property-zero-width: Likewise.
7728         * modules/unictype/scripts: Likewise.
7729         * modules/unictype/syntax-c-ident: Likewise.
7730         * modules/unictype/syntax-c-whitespace: Likewise.
7731         * modules/unictype/syntax-java-ident: Likewise.
7732         * modules/unictype/syntax-java-whitespace: Likewise.
7733         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7734         * modules/unilbrk/u8-width-linebreaks: Likewise.
7735         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7736         * modules/unilbrk/u16-width-linebreaks: Likewise.
7737         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7738         * modules/unilbrk/u32-width-linebreaks: Likewise.
7739         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7740         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7741         * modules/uniname/uniname: Likewise.
7742         * modules/uninorm/canonical-decomposition: Likewise.
7743         * modules/uninorm/composition: Likewise.
7744         * modules/uninorm/decomposing-form: Likewise.
7745         * modules/uninorm/decomposition: Likewise.
7746         * modules/uninorm/filter: Likewise.
7747         * modules/uninorm/nfc: Likewise.
7748         * modules/uninorm/nfd: Likewise.
7749         * modules/uninorm/nfkc: Likewise.
7750         * modules/uninorm/nfkd: Likewise.
7751         * modules/uninorm/u8-normalize: Likewise.
7752         * modules/uninorm/u8-normcmp: Likewise.
7753         * modules/uninorm/u8-normcoll: Likewise.
7754         * modules/uninorm/u8-normxfrm: Likewise.
7755         * modules/uninorm/u16-normalize: Likewise.
7756         * modules/uninorm/u16-normcmp: Likewise.
7757         * modules/uninorm/u16-normcoll: Likewise.
7758         * modules/uninorm/u16-normxfrm: Likewise.
7759         * modules/uninorm/u32-normalize: Likewise.
7760         * modules/uninorm/u32-normcmp: Likewise.
7761         * modules/uninorm/u32-normcoll: Likewise.
7762         * modules/uninorm/u32-normxfrm: Likewise.
7763         * modules/unistdio/u8-asnprintf: Likewise.
7764         * modules/unistdio/u8-asprintf: Likewise.
7765         * modules/unistdio/u8-snprintf: Likewise.
7766         * modules/unistdio/u8-sprintf: Likewise.
7767         * modules/unistdio/u8-u8-asnprintf: Likewise.
7768         * modules/unistdio/u8-u8-asprintf: Likewise.
7769         * modules/unistdio/u8-u8-snprintf: Likewise.
7770         * modules/unistdio/u8-u8-sprintf: Likewise.
7771         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7772         * modules/unistdio/u8-u8-vasprintf: Likewise.
7773         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7774         * modules/unistdio/u8-u8-vsprintf: Likewise.
7775         * modules/unistdio/u8-vasnprintf: Likewise.
7776         * modules/unistdio/u8-vasprintf: Likewise.
7777         * modules/unistdio/u8-vsnprintf: Likewise.
7778         * modules/unistdio/u8-vsprintf: Likewise.
7779         * modules/unistdio/u16-asnprintf: Likewise.
7780         * modules/unistdio/u16-asprintf: Likewise.
7781         * modules/unistdio/u16-snprintf: Likewise.
7782         * modules/unistdio/u16-sprintf: Likewise.
7783         * modules/unistdio/u16-u16-asnprintf: Likewise.
7784         * modules/unistdio/u16-u16-asprintf: Likewise.
7785         * modules/unistdio/u16-u16-snprintf: Likewise.
7786         * modules/unistdio/u16-u16-sprintf: Likewise.
7787         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7788         * modules/unistdio/u16-u16-vasprintf: Likewise.
7789         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7790         * modules/unistdio/u16-u16-vsprintf: Likewise.
7791         * modules/unistdio/u16-vasnprintf: Likewise.
7792         * modules/unistdio/u16-vasprintf: Likewise.
7793         * modules/unistdio/u16-vsnprintf: Likewise.
7794         * modules/unistdio/u16-vsprintf: Likewise.
7795         * modules/unistdio/u32-asnprintf: Likewise.
7796         * modules/unistdio/u32-asprintf: Likewise.
7797         * modules/unistdio/u32-snprintf: Likewise.
7798         * modules/unistdio/u32-sprintf: Likewise.
7799         * modules/unistdio/u32-u32-asnprintf: Likewise.
7800         * modules/unistdio/u32-u32-asprintf: Likewise.
7801         * modules/unistdio/u32-u32-snprintf: Likewise.
7802         * modules/unistdio/u32-u32-sprintf: Likewise.
7803         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7804         * modules/unistdio/u32-u32-vasprintf: Likewise.
7805         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7806         * modules/unistdio/u32-u32-vsprintf: Likewise.
7807         * modules/unistdio/u32-vasnprintf: Likewise.
7808         * modules/unistdio/u32-vasprintf: Likewise.
7809         * modules/unistdio/u32-vsnprintf: Likewise.
7810         * modules/unistdio/u32-vsprintf: Likewise.
7811         * modules/unistdio/ulc-asnprintf: Likewise.
7812         * modules/unistdio/ulc-asprintf: Likewise.
7813         * modules/unistdio/ulc-fprintf: Likewise.
7814         * modules/unistdio/ulc-snprintf: Likewise.
7815         * modules/unistdio/ulc-sprintf: Likewise.
7816         * modules/unistdio/ulc-vasnprintf: Likewise.
7817         * modules/unistdio/ulc-vasprintf: Likewise.
7818         * modules/unistdio/ulc-vfprintf: Likewise.
7819         * modules/unistdio/ulc-vsnprintf: Likewise.
7820         * modules/unistdio/ulc-vsprintf: Likewise.
7821         * modules/unistr/u8-check: Likewise.
7822         * modules/unistr/u8-chr: Likewise.
7823         * modules/unistr/u8-cmp: Likewise.
7824         * modules/unistr/u8-cmp2: Likewise.
7825         * modules/unistr/u8-cpy: Likewise.
7826         * modules/unistr/u8-cpy-alloc: Likewise.
7827         * modules/unistr/u8-endswith: Likewise.
7828         * modules/unistr/u8-mblen: Likewise.
7829         * modules/unistr/u8-mbsnlen: Likewise.
7830         * modules/unistr/u8-mbtouc: Likewise.
7831         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7832         * modules/unistr/u8-mbtoucr: Likewise.
7833         * modules/unistr/u8-move: Likewise.
7834         * modules/unistr/u8-next: Likewise.
7835         * modules/unistr/u8-prev: Likewise.
7836         * modules/unistr/u8-set: Likewise.
7837         * modules/unistr/u8-startswith: Likewise.
7838         * modules/unistr/u8-stpcpy: Likewise.
7839         * modules/unistr/u8-stpncpy: Likewise.
7840         * modules/unistr/u8-strcat: Likewise.
7841         * modules/unistr/u8-strchr: Likewise.
7842         * modules/unistr/u8-strcmp: Likewise.
7843         * modules/unistr/u8-strcoll: Likewise.
7844         * modules/unistr/u8-strcpy: Likewise.
7845         * modules/unistr/u8-strcspn: Likewise.
7846         * modules/unistr/u8-strdup: Likewise.
7847         * modules/unistr/u8-strlen: Likewise.
7848         * modules/unistr/u8-strmblen: Likewise.
7849         * modules/unistr/u8-strmbtouc: Likewise.
7850         * modules/unistr/u8-strncat: Likewise.
7851         * modules/unistr/u8-strncmp: Likewise.
7852         * modules/unistr/u8-strncpy: Likewise.
7853         * modules/unistr/u8-strnlen: Likewise.
7854         * modules/unistr/u8-strpbrk: Likewise.
7855         * modules/unistr/u8-strrchr: Likewise.
7856         * modules/unistr/u8-strspn: Likewise.
7857         * modules/unistr/u8-strstr: Likewise.
7858         * modules/unistr/u8-strtok: Likewise.
7859         * modules/unistr/u8-to-u16: Likewise.
7860         * modules/unistr/u8-to-u32: Likewise.
7861         * modules/unistr/u8-uctomb: Likewise.
7862         * modules/unistr/u16-check: Likewise.
7863         * modules/unistr/u16-chr: Likewise.
7864         * modules/unistr/u16-cmp: Likewise.
7865         * modules/unistr/u16-cmp2: Likewise.
7866         * modules/unistr/u16-cpy: Likewise.
7867         * modules/unistr/u16-cpy-alloc: Likewise.
7868         * modules/unistr/u16-endswith: Likewise.
7869         * modules/unistr/u16-mblen: Likewise.
7870         * modules/unistr/u16-mbsnlen: Likewise.
7871         * modules/unistr/u16-mbtouc: Likewise.
7872         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7873         * modules/unistr/u16-mbtoucr: Likewise.
7874         * modules/unistr/u16-move: Likewise.
7875         * modules/unistr/u16-next: Likewise.
7876         * modules/unistr/u16-prev: Likewise.
7877         * modules/unistr/u16-set: Likewise.
7878         * modules/unistr/u16-startswith: Likewise.
7879         * modules/unistr/u16-stpcpy: Likewise.
7880         * modules/unistr/u16-stpncpy: Likewise.
7881         * modules/unistr/u16-strcat: Likewise.
7882         * modules/unistr/u16-strchr: Likewise.
7883         * modules/unistr/u16-strcmp: Likewise.
7884         * modules/unistr/u16-strcoll: Likewise.
7885         * modules/unistr/u16-strcpy: Likewise.
7886         * modules/unistr/u16-strcspn: Likewise.
7887         * modules/unistr/u16-strdup: Likewise.
7888         * modules/unistr/u16-strlen: Likewise.
7889         * modules/unistr/u16-strmblen: Likewise.
7890         * modules/unistr/u16-strmbtouc: Likewise.
7891         * modules/unistr/u16-strncat: Likewise.
7892         * modules/unistr/u16-strncmp: Likewise.
7893         * modules/unistr/u16-strncpy: Likewise.
7894         * modules/unistr/u16-strnlen: Likewise.
7895         * modules/unistr/u16-strpbrk: Likewise.
7896         * modules/unistr/u16-strrchr: Likewise.
7897         * modules/unistr/u16-strspn: Likewise.
7898         * modules/unistr/u16-strstr: Likewise.
7899         * modules/unistr/u16-strtok: Likewise.
7900         * modules/unistr/u16-to-u32: Likewise.
7901         * modules/unistr/u16-to-u8: Likewise.
7902         * modules/unistr/u16-uctomb: Likewise.
7903         * modules/unistr/u32-check: Likewise.
7904         * modules/unistr/u32-chr: Likewise.
7905         * modules/unistr/u32-cmp: Likewise.
7906         * modules/unistr/u32-cmp2: Likewise.
7907         * modules/unistr/u32-cpy: Likewise.
7908         * modules/unistr/u32-cpy-alloc: Likewise.
7909         * modules/unistr/u32-endswith: Likewise.
7910         * modules/unistr/u32-mblen: Likewise.
7911         * modules/unistr/u32-mbsnlen: Likewise.
7912         * modules/unistr/u32-mbtouc: Likewise.
7913         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7914         * modules/unistr/u32-mbtoucr: Likewise.
7915         * modules/unistr/u32-move: Likewise.
7916         * modules/unistr/u32-next: Likewise.
7917         * modules/unistr/u32-prev: Likewise.
7918         * modules/unistr/u32-set: Likewise.
7919         * modules/unistr/u32-startswith: Likewise.
7920         * modules/unistr/u32-stpcpy: Likewise.
7921         * modules/unistr/u32-stpncpy: Likewise.
7922         * modules/unistr/u32-strcat: Likewise.
7923         * modules/unistr/u32-strchr: Likewise.
7924         * modules/unistr/u32-strcmp: Likewise.
7925         * modules/unistr/u32-strcoll: Likewise.
7926         * modules/unistr/u32-strcpy: Likewise.
7927         * modules/unistr/u32-strcspn: Likewise.
7928         * modules/unistr/u32-strdup: Likewise.
7929         * modules/unistr/u32-strlen: Likewise.
7930         * modules/unistr/u32-strmblen: Likewise.
7931         * modules/unistr/u32-strmbtouc: Likewise.
7932         * modules/unistr/u32-strncat: Likewise.
7933         * modules/unistr/u32-strncmp: Likewise.
7934         * modules/unistr/u32-strncpy: Likewise.
7935         * modules/unistr/u32-strnlen: Likewise.
7936         * modules/unistr/u32-strpbrk: Likewise.
7937         * modules/unistr/u32-strrchr: Likewise.
7938         * modules/unistr/u32-strspn: Likewise.
7939         * modules/unistr/u32-strstr: Likewise.
7940         * modules/unistr/u32-strtok: Likewise.
7941         * modules/unistr/u32-to-u16: Likewise.
7942         * modules/unistr/u32-to-u8: Likewise.
7943         * modules/unistr/u32-uctomb: Likewise.
7944         * modules/uniwbrk/u8-wordbreaks: Likewise.
7945         * modules/uniwbrk/u16-wordbreaks: Likewise.
7946         * modules/uniwbrk/u32-wordbreaks: Likewise.
7947         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7948         * modules/uniwbrk/wordbreak-property: Likewise.
7949         * modules/uniwidth/u8-strwidth: Likewise.
7950         * modules/uniwidth/u8-width: Likewise.
7951         * modules/uniwidth/u16-strwidth: Likewise.
7952         * modules/uniwidth/u16-width: Likewise.
7953         * modules/uniwidth/u32-strwidth: Likewise.
7954         * modules/uniwidth/u32-width: Likewise.
7955         * modules/uniwidth/width: Likewise.
7956         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7957         with $(LIBUNISTRING).
7958         * modules/unicase/ignorable-tests: Likewise.
7959         * modules/unicase/locale-language-tests: Likewise.
7960         * modules/unicase/tolower-tests: Likewise.
7961         * modules/unicase/totitle-tests: Likewise.
7962         * modules/unicase/toupper-tests: Likewise.
7963         * modules/unicase/u8-casecmp-tests: Likewise.
7964         * modules/unicase/u8-casecoll-tests: Likewise.
7965         * modules/unicase/u8-casefold-tests: Likewise.
7966         * modules/unicase/u8-is-cased-tests: Likewise.
7967         * modules/unicase/u8-is-casefolded-tests: Likewise.
7968         * modules/unicase/u8-is-lowercase-tests: Likewise.
7969         * modules/unicase/u8-is-titlecase-tests: Likewise.
7970         * modules/unicase/u8-is-uppercase-tests: Likewise.
7971         * modules/unicase/u8-tolower-tests: Likewise.
7972         * modules/unicase/u8-totitle-tests: Likewise.
7973         * modules/unicase/u8-toupper-tests: Likewise.
7974         * modules/unicase/u16-casecmp-tests: Likewise.
7975         * modules/unicase/u16-casecoll-tests: Likewise.
7976         * modules/unicase/u16-casefold-tests: Likewise.
7977         * modules/unicase/u16-is-cased-tests: Likewise.
7978         * modules/unicase/u16-is-casefolded-tests: Likewise.
7979         * modules/unicase/u16-is-lowercase-tests: Likewise.
7980         * modules/unicase/u16-is-titlecase-tests: Likewise.
7981         * modules/unicase/u16-is-uppercase-tests: Likewise.
7982         * modules/unicase/u16-tolower-tests: Likewise.
7983         * modules/unicase/u16-totitle-tests: Likewise.
7984         * modules/unicase/u16-toupper-tests: Likewise.
7985         * modules/unicase/u32-casecmp-tests: Likewise.
7986         * modules/unicase/u32-casecoll-tests: Likewise.
7987         * modules/unicase/u32-casefold-tests: Likewise.
7988         * modules/unicase/u32-is-cased-tests: Likewise.
7989         * modules/unicase/u32-is-casefolded-tests: Likewise.
7990         * modules/unicase/u32-is-lowercase-tests: Likewise.
7991         * modules/unicase/u32-is-titlecase-tests: Likewise.
7992         * modules/unicase/u32-is-uppercase-tests: Likewise.
7993         * modules/unicase/u32-tolower-tests: Likewise.
7994         * modules/unicase/u32-totitle-tests: Likewise.
7995         * modules/unicase/u32-toupper-tests: Likewise.
7996         * modules/unicase/ulc-casecmp-tests: Likewise.
7997         * modules/unicase/ulc-casecoll-tests: Likewise.
7998         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7999         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
8000         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
8001         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
8002         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
8003         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
8004         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
8005         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
8006         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
8007         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
8008         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
8009         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
8010         * modules/unictype/bidicategory-byname-tests: Likewise.
8011         * modules/unictype/bidicategory-name-tests: Likewise.
8012         * modules/unictype/bidicategory-of-tests: Likewise.
8013         * modules/unictype/bidicategory-test-tests: Likewise.
8014         * modules/unictype/block-list-tests: Likewise.
8015         * modules/unictype/block-of-tests: Likewise.
8016         * modules/unictype/block-test-tests: Likewise.
8017         * modules/unictype/category-C-tests: Likewise.
8018         * modules/unictype/category-Cc-tests: Likewise.
8019         * modules/unictype/category-Cf-tests: Likewise.
8020         * modules/unictype/category-Cn-tests: Likewise.
8021         * modules/unictype/category-Co-tests: Likewise.
8022         * modules/unictype/category-Cs-tests: Likewise.
8023         * modules/unictype/category-L-tests: Likewise.
8024         * modules/unictype/category-Ll-tests: Likewise.
8025         * modules/unictype/category-Lm-tests: Likewise.
8026         * modules/unictype/category-Lo-tests: Likewise.
8027         * modules/unictype/category-Lt-tests: Likewise.
8028         * modules/unictype/category-Lu-tests: Likewise.
8029         * modules/unictype/category-M-tests: Likewise.
8030         * modules/unictype/category-Mc-tests: Likewise.
8031         * modules/unictype/category-Me-tests: Likewise.
8032         * modules/unictype/category-Mn-tests: Likewise.
8033         * modules/unictype/category-N-tests: Likewise.
8034         * modules/unictype/category-Nd-tests: Likewise.
8035         * modules/unictype/category-Nl-tests: Likewise.
8036         * modules/unictype/category-No-tests: Likewise.
8037         * modules/unictype/category-P-tests: Likewise.
8038         * modules/unictype/category-Pc-tests: Likewise.
8039         * modules/unictype/category-Pd-tests: Likewise.
8040         * modules/unictype/category-Pe-tests: Likewise.
8041         * modules/unictype/category-Pf-tests: Likewise.
8042         * modules/unictype/category-Pi-tests: Likewise.
8043         * modules/unictype/category-Po-tests: Likewise.
8044         * modules/unictype/category-Ps-tests: Likewise.
8045         * modules/unictype/category-S-tests: Likewise.
8046         * modules/unictype/category-Sc-tests: Likewise.
8047         * modules/unictype/category-Sk-tests: Likewise.
8048         * modules/unictype/category-Sm-tests: Likewise.
8049         * modules/unictype/category-So-tests: Likewise.
8050         * modules/unictype/category-Z-tests: Likewise.
8051         * modules/unictype/category-Zl-tests: Likewise.
8052         * modules/unictype/category-Zp-tests: Likewise.
8053         * modules/unictype/category-Zs-tests: Likewise.
8054         * modules/unictype/category-and-not-tests: Likewise.
8055         * modules/unictype/category-and-tests: Likewise.
8056         * modules/unictype/category-byname-tests: Likewise.
8057         * modules/unictype/category-name-tests: Likewise.
8058         * modules/unictype/category-none-tests: Likewise.
8059         * modules/unictype/category-of-tests: Likewise.
8060         * modules/unictype/category-or-tests: Likewise.
8061         * modules/unictype/category-test-withtable-tests: Likewise.
8062         * modules/unictype/combining-class-tests: Likewise.
8063         * modules/unictype/ctype-alnum-tests: Likewise.
8064         * modules/unictype/ctype-alpha-tests: Likewise.
8065         * modules/unictype/ctype-blank-tests: Likewise.
8066         * modules/unictype/ctype-cntrl-tests: Likewise.
8067         * modules/unictype/ctype-digit-tests: Likewise.
8068         * modules/unictype/ctype-graph-tests: Likewise.
8069         * modules/unictype/ctype-lower-tests: Likewise.
8070         * modules/unictype/ctype-print-tests: Likewise.
8071         * modules/unictype/ctype-punct-tests: Likewise.
8072         * modules/unictype/ctype-space-tests: Likewise.
8073         * modules/unictype/ctype-upper-tests: Likewise.
8074         * modules/unictype/ctype-xdigit-tests: Likewise.
8075         * modules/unictype/decimal-digit-tests: Likewise.
8076         * modules/unictype/digit-tests: Likewise.
8077         * modules/unictype/mirror-tests: Likewise.
8078         * modules/unictype/numeric-tests: Likewise.
8079         * modules/unictype/property-alphabetic-tests: Likewise.
8080         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8081         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8082         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8083         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8084         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8085         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8086         * modules/unictype/property-bidi-control-tests: Likewise.
8087         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8088         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8089         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8090         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8091         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8092         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8093         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8094         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8095         * modules/unictype/property-bidi-pdf-tests: Likewise.
8096         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8097         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8098         * modules/unictype/property-byname-tests: Likewise.
8099         * modules/unictype/property-combining-tests: Likewise.
8100         * modules/unictype/property-composite-tests: Likewise.
8101         * modules/unictype/property-currency-symbol-tests: Likewise.
8102         * modules/unictype/property-dash-tests: Likewise.
8103         * modules/unictype/property-decimal-digit-tests: Likewise.
8104         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8105         * modules/unictype/property-deprecated-tests: Likewise.
8106         * modules/unictype/property-diacritic-tests: Likewise.
8107         * modules/unictype/property-extender-tests: Likewise.
8108         * modules/unictype/property-format-control-tests: Likewise.
8109         * modules/unictype/property-grapheme-base-tests: Likewise.
8110         * modules/unictype/property-grapheme-extend-tests: Likewise.
8111         * modules/unictype/property-grapheme-link-tests: Likewise.
8112         * modules/unictype/property-hex-digit-tests: Likewise.
8113         * modules/unictype/property-hyphen-tests: Likewise.
8114         * modules/unictype/property-id-continue-tests: Likewise.
8115         * modules/unictype/property-id-start-tests: Likewise.
8116         * modules/unictype/property-ideographic-tests: Likewise.
8117         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8118         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8119         * modules/unictype/property-ignorable-control-tests: Likewise.
8120         * modules/unictype/property-iso-control-tests: Likewise.
8121         * modules/unictype/property-join-control-tests: Likewise.
8122         * modules/unictype/property-left-of-pair-tests: Likewise.
8123         * modules/unictype/property-line-separator-tests: Likewise.
8124         * modules/unictype/property-logical-order-exception-tests: Likewise.
8125         * modules/unictype/property-lowercase-tests: Likewise.
8126         * modules/unictype/property-math-tests: Likewise.
8127         * modules/unictype/property-non-break-tests: Likewise.
8128         * modules/unictype/property-not-a-character-tests: Likewise.
8129         * modules/unictype/property-numeric-tests: Likewise.
8130         * modules/unictype/property-other-alphabetic-tests: Likewise.
8131         * modules/unictype/property-other-default-ignorable-code-point-tests:
8132         Likewise.
8133         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
8134         * modules/unictype/property-other-id-continue-tests: Likewise.
8135         * modules/unictype/property-other-id-start-tests: Likewise.
8136         * modules/unictype/property-other-lowercase-tests: Likewise.
8137         * modules/unictype/property-other-math-tests: Likewise.
8138         * modules/unictype/property-other-uppercase-tests: Likewise.
8139         * modules/unictype/property-paired-punctuation-tests: Likewise.
8140         * modules/unictype/property-paragraph-separator-tests: Likewise.
8141         * modules/unictype/property-pattern-syntax-tests: Likewise.
8142         * modules/unictype/property-pattern-white-space-tests: Likewise.
8143         * modules/unictype/property-private-use-tests: Likewise.
8144         * modules/unictype/property-punctuation-tests: Likewise.
8145         * modules/unictype/property-quotation-mark-tests: Likewise.
8146         * modules/unictype/property-radical-tests: Likewise.
8147         * modules/unictype/property-sentence-terminal-tests: Likewise.
8148         * modules/unictype/property-soft-dotted-tests: Likewise.
8149         * modules/unictype/property-space-tests: Likewise.
8150         * modules/unictype/property-terminal-punctuation-tests: Likewise.
8151         * modules/unictype/property-test-tests: Likewise.
8152         * modules/unictype/property-titlecase-tests: Likewise.
8153         * modules/unictype/property-unassigned-code-value-tests: Likewise.
8154         * modules/unictype/property-unified-ideograph-tests: Likewise.
8155         * modules/unictype/property-uppercase-tests: Likewise.
8156         * modules/unictype/property-variation-selector-tests: Likewise.
8157         * modules/unictype/property-white-space-tests: Likewise.
8158         * modules/unictype/property-xid-continue-tests: Likewise.
8159         * modules/unictype/property-xid-start-tests: Likewise.
8160         * modules/unictype/property-zero-width-tests: Likewise.
8161         * modules/unictype/scripts-tests: Likewise.
8162         * modules/unictype/syntax-c-ident-tests: Likewise.
8163         * modules/unictype/syntax-c-whitespace-tests: Likewise.
8164         * modules/unictype/syntax-java-ident-tests: Likewise.
8165         * modules/unictype/syntax-java-whitespace-tests: Likewise.
8166         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
8167         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
8168         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
8169         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
8170         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
8171         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
8172         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
8173         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
8174         * modules/uniname/uniname-tests: Likewise.
8175         * modules/uninorm/canonical-decomposition-tests: Likewise.
8176         * modules/uninorm/compat-decomposition-tests: Likewise.
8177         * modules/uninorm/composition-tests: Likewise.
8178         * modules/uninorm/decomposing-form-tests: Likewise.
8179         * modules/uninorm/decomposition-tests: Likewise.
8180         * modules/uninorm/filter-tests: Likewise.
8181         * modules/uninorm/nfc-tests: Likewise.
8182         * modules/uninorm/nfd-tests: Likewise.
8183         * modules/uninorm/nfkc-tests: Likewise.
8184         * modules/uninorm/nfkd-tests: Likewise.
8185         * modules/uninorm/u8-normcmp-tests: Likewise.
8186         * modules/uninorm/u8-normcoll-tests: Likewise.
8187         * modules/uninorm/u16-normcmp-tests: Likewise.
8188         * modules/uninorm/u16-normcoll-tests: Likewise.
8189         * modules/uninorm/u32-normcmp-tests: Likewise.
8190         * modules/uninorm/u32-normcoll-tests: Likewise.
8191         * modules/unistdio/u8-asnprintf-tests: Likewise.
8192         * modules/unistdio/u8-vasnprintf-tests: Likewise.
8193         * modules/unistdio/u8-vasprintf-tests: Likewise.
8194         * modules/unistdio/u8-vsnprintf-tests: Likewise.
8195         * modules/unistdio/u8-vsprintf-tests: Likewise.
8196         * modules/unistdio/u16-asnprintf-tests: Likewise.
8197         * modules/unistdio/u16-vasnprintf-tests: Likewise.
8198         * modules/unistdio/u16-vasprintf-tests: Likewise.
8199         * modules/unistdio/u16-vsnprintf-tests: Likewise.
8200         * modules/unistdio/u16-vsprintf-tests: Likewise.
8201         * modules/unistdio/u32-asnprintf-tests: Likewise.
8202         * modules/unistdio/u32-vasnprintf-tests: Likewise.
8203         * modules/unistdio/u32-vasprintf-tests: Likewise.
8204         * modules/unistdio/u32-vsnprintf-tests: Likewise.
8205         * modules/unistdio/u32-vsprintf-tests: Likewise.
8206         * modules/unistdio/ulc-asnprintf-tests: Likewise.
8207         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
8208         * modules/unistdio/ulc-vasprintf-tests: Likewise.
8209         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
8210         * modules/unistdio/ulc-vsprintf-tests: Likewise.
8211         * modules/unistr/u8-check-tests: Likewise.
8212         * modules/unistr/u8-chr-tests: Likewise.
8213         * modules/unistr/u8-cmp-tests: Likewise.
8214         * modules/unistr/u8-cmp2-tests: Likewise.
8215         * modules/unistr/u8-cpy-alloc-tests: Likewise.
8216         * modules/unistr/u8-cpy-tests: Likewise.
8217         * modules/unistr/u8-mblen-tests: Likewise.
8218         * modules/unistr/u8-mbsnlen-tests: Likewise.
8219         * modules/unistr/u8-mbtouc-tests: Likewise.
8220         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
8221         * modules/unistr/u8-mbtoucr-tests: Likewise.
8222         * modules/unistr/u8-move-tests: Likewise.
8223         * modules/unistr/u8-next-tests: Likewise.
8224         * modules/unistr/u8-prev-tests: Likewise.
8225         * modules/unistr/u8-set-tests: Likewise.
8226         * modules/unistr/u8-stpcpy-tests: Likewise.
8227         * modules/unistr/u8-stpncpy-tests: Likewise.
8228         * modules/unistr/u8-strcat-tests: Likewise.
8229         * modules/unistr/u8-strcmp-tests: Likewise.
8230         * modules/unistr/u8-strcoll-tests: Likewise.
8231         * modules/unistr/u8-strcpy-tests: Likewise.
8232         * modules/unistr/u8-strdup-tests: Likewise.
8233         * modules/unistr/u8-strlen-tests: Likewise.
8234         * modules/unistr/u8-strmblen-tests: Likewise.
8235         * modules/unistr/u8-strmbtouc-tests: Likewise.
8236         * modules/unistr/u8-strncat-tests: Likewise.
8237         * modules/unistr/u8-strncmp-tests: Likewise.
8238         * modules/unistr/u8-strncpy-tests: Likewise.
8239         * modules/unistr/u8-strnlen-tests: Likewise.
8240         * modules/unistr/u8-to-u16-tests: Likewise.
8241         * modules/unistr/u8-to-u32-tests: Likewise.
8242         * modules/unistr/u8-uctomb-tests: Likewise.
8243         * modules/unistr/u16-check-tests: Likewise.
8244         * modules/unistr/u16-chr-tests: Likewise.
8245         * modules/unistr/u16-cmp-tests: Likewise.
8246         * modules/unistr/u16-cmp2-tests: Likewise.
8247         * modules/unistr/u16-cpy-alloc-tests: Likewise.
8248         * modules/unistr/u16-cpy-tests: Likewise.
8249         * modules/unistr/u16-mblen-tests: Likewise.
8250         * modules/unistr/u16-mbsnlen-tests: Likewise.
8251         * modules/unistr/u16-mbtouc-tests: Likewise.
8252         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
8253         * modules/unistr/u16-mbtoucr-tests: Likewise.
8254         * modules/unistr/u16-move-tests: Likewise.
8255         * modules/unistr/u16-next-tests: Likewise.
8256         * modules/unistr/u16-prev-tests: Likewise.
8257         * modules/unistr/u16-set-tests: Likewise.
8258         * modules/unistr/u16-stpcpy-tests: Likewise.
8259         * modules/unistr/u16-stpncpy-tests: Likewise.
8260         * modules/unistr/u16-strcat-tests: Likewise.
8261         * modules/unistr/u16-strcmp-tests: Likewise.
8262         * modules/unistr/u16-strcoll-tests: Likewise.
8263         * modules/unistr/u16-strcpy-tests: Likewise.
8264         * modules/unistr/u16-strdup-tests: Likewise.
8265         * modules/unistr/u16-strlen-tests: Likewise.
8266         * modules/unistr/u16-strmblen-tests: Likewise.
8267         * modules/unistr/u16-strmbtouc-tests: Likewise.
8268         * modules/unistr/u16-strncat-tests: Likewise.
8269         * modules/unistr/u16-strncmp-tests: Likewise.
8270         * modules/unistr/u16-strncpy-tests: Likewise.
8271         * modules/unistr/u16-strnlen-tests: Likewise.
8272         * modules/unistr/u16-to-u32-tests: Likewise.
8273         * modules/unistr/u16-to-u8-tests: Likewise.
8274         * modules/unistr/u16-uctomb-tests: Likewise.
8275         * modules/unistr/u32-check-tests: Likewise.
8276         * modules/unistr/u32-chr-tests: Likewise.
8277         * modules/unistr/u32-cmp-tests: Likewise.
8278         * modules/unistr/u32-cmp2-tests: Likewise.
8279         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8280         * modules/unistr/u32-cpy-tests: Likewise.
8281         * modules/unistr/u32-mblen-tests: Likewise.
8282         * modules/unistr/u32-mbsnlen-tests: Likewise.
8283         * modules/unistr/u32-mbtouc-tests: Likewise.
8284         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8285         * modules/unistr/u32-mbtoucr-tests: Likewise.
8286         * modules/unistr/u32-move-tests: Likewise.
8287         * modules/unistr/u32-next-tests: Likewise.
8288         * modules/unistr/u32-prev-tests: Likewise.
8289         * modules/unistr/u32-set-tests: Likewise.
8290         * modules/unistr/u32-stpcpy-tests: Likewise.
8291         * modules/unistr/u32-stpncpy-tests: Likewise.
8292         * modules/unistr/u32-strcat-tests: Likewise.
8293         * modules/unistr/u32-strcmp-tests: Likewise.
8294         * modules/unistr/u32-strcoll-tests: Likewise.
8295         * modules/unistr/u32-strcpy-tests: Likewise.
8296         * modules/unistr/u32-strdup-tests: Likewise.
8297         * modules/unistr/u32-strlen-tests: Likewise.
8298         * modules/unistr/u32-strmblen-tests: Likewise.
8299         * modules/unistr/u32-strmbtouc-tests: Likewise.
8300         * modules/unistr/u32-strncat-tests: Likewise.
8301         * modules/unistr/u32-strncmp-tests: Likewise.
8302         * modules/unistr/u32-strncpy-tests: Likewise.
8303         * modules/unistr/u32-strnlen-tests: Likewise.
8304         * modules/unistr/u32-to-u16-tests: Likewise.
8305         * modules/unistr/u32-to-u8-tests: Likewise.
8306         * modules/unistr/u32-uctomb-tests: Likewise.
8307         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8308         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8309         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8310         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8311         * modules/uniwidth/u8-strwidth-tests: Likewise.
8312         * modules/uniwidth/u8-width-tests: Likewise.
8313         * modules/uniwidth/u16-strwidth-tests: Likewise.
8314         * modules/uniwidth/u16-width-tests: Likewise.
8315         * modules/uniwidth/u32-strwidth-tests: Likewise.
8316         * modules/uniwidth/u32-width-tests: Likewise.
8317         * modules/uniwidth/width-tests: Likewise.
8318
8319 2010-05-18  Richard Jones  <rjones@redhat.com>
8320
8321         doc: users.txt: list hivex
8322         * users.txt: Add hivex.
8323
8324 2010-05-18  Richard Jones  <rjones@redhat.com>
8325
8326         doc: users.txt: list febootstrap
8327         * users.txt: Add febootstrap.
8328
8329 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8330
8331         bootstrap: fix an error when gnulib is not used as a git submodule
8332         * build-aux/bootstrap (gnulib_path): If its length is zero then
8333         assign "gnulib" to it.
8334         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8335
8336 2010-05-16  Bruno Haible  <bruno@clisp.org>
8337
8338         Avoid autoconf warnings about AM_ICONV.
8339         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8340         2.64.
8341
8342 2010-05-16  Bruno Haible  <bruno@clisp.org>
8343
8344         absolute-header: Make the macro usable in more situations.
8345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8346         from gl_ABSOLUTE_HEADER.
8347         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8348
8349 2010-05-16  James Youngman  <jay@gnu.org>
8350
8351         doc: update users.txt
8352         * users.txt: Add CSSC.
8353
8354 2010-05-16  Jim Meyering  <meyering@redhat.com>
8355
8356         init.sh: fix an error in the previous change; add more comments
8357         * tests/init.sh: Compare exit code in loop against 9, not 2.
8358         Patch by Bruno Haible.
8359         Make the two tests more similar by adding an empty "then" clause.
8360         Add comments.
8361
8362         init.sh: avoid unnecessary shell re-exec
8363         * tests/init.sh: Improve the re-exec-required check to first test the
8364         current shell.  If it passes the test, do not search for a shell that
8365         does pass, and do not re-exec.  This test is particularly contorted to
8366         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8367         of $(...) evokes a syntax error and causes immediate shell exit with
8368         status 2.  Bruno Haible reported that the re-exec made it impossible
8369         to single-step through any init.sh-using script.
8370
8371 2010-05-16  Bruno Haible  <bruno@clisp.org>
8372
8373         Fix collision between gnulib's and libintl's printf replacements.
8374         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8375         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8376         (printf): When using GNU C, map the __printf__ function to rpl_printf
8377         via __asm__. When not using GNU C, define rpl_printf instead of
8378         __printf__.
8379         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8380         commit.
8381         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8382         commit.
8383         * m4/asm-underscore.m4: New file.
8384         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8385         * modules/stdio (Files): Add m4/asm-underscore.m4.
8386         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8387         Reported by Ben Pfaff.
8388
8389 2010-05-16  Bruno Haible  <bruno@clisp.org>
8390
8391         verify: Avoid skipping the test on openSUSE 11.0.
8392         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8393
8394 2010-05-13  Bruno Haible  <bruno@clisp.org>
8395
8396         Avoid useless warnings from G++.
8397         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8398         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8399         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8400
8401 2010-05-11  Jim Meyering  <meyering@redhat.com>
8402
8403         maint.mk: tweak preceding change
8404         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8405         regexps tighter by anchoring at EOL, and make the new group "shy"
8406         for slightly decreased overhead.
8407
8408 2010-05-11  Eric Blake  <eblake@redhat.com>
8409
8410         maint.mk: gnulib doesn't guarantee NSIG
8411         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8412
8413 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8414
8415         test-pwrite.c: Remove unused variable declaration.
8416         * tests/test-pwrite.c (main): Remove read_buf declaration.
8417
8418         Remove useless test-pwrite.sh file.
8419         * tests/test-pwrite.sh: Delete file.
8420         * modules/pwrite-tests: Remove references.
8421         Reported by Bruno Haible.
8422
8423 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8424
8425         init.sh: fix a typo
8426         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8427
8428 2010-05-10  Jim Meyering  <meyering@redhat.com>
8429
8430         maint.mk: avoid using a temporary file in the always-defined-macros check
8431         * top/maint.mk (.re-defmac): Remove rule.
8432         (gl_trap_): Remove definition.
8433         (sc_prohibit_always-defined_macros): Rewrite not to create and
8434         depend on a temporary file.  Instead, depend on GNU grep's ability
8435         to read a list of regular expressions from stdin when given "-f -".
8436
8437 2010-05-09  Bruno Haible  <bruno@clisp.org>
8438
8439         Update to GNU gettext 0.18, part 1.
8440         * m4/gettext.m4: Update to GNU gettext 0.18.
8441         * m4/intl.m4: Likewise.
8442         * m4/po.m4: Likewise.
8443         * modules/gettext (Files): Add m4/fcntl-o.m4.
8444         (configure.ac): Require gettext infrastructure from version 0.18.
8445
8446 2010-05-09  Jim Meyering  <meyering@redhat.com>
8447
8448         init.sh: enable MALLOC_PERTURB_
8449         * tests/init.sh: Enable glibc's malloc-perturbing option.
8450
8451         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8452         With my recent change in init.sh from the two-line form:
8453             -#   : ${srcdir=.}
8454             -#   . "$srcdir/init.sh"; path_prepend_ .
8455             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8456         I noticed that using the one-line form would cause this test
8457         to fail with a false-positive, or to stop working altogether,
8458         depending on whether help-version changed or all the tests did.
8459         * top/maint.mk (_hv_regex): Remove this definition.
8460         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8461         (_hv_regex_strong): Use a stronger regex to check for conformance.
8462         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8463         Give a separate diagnostic for lack of conforming use.
8464
8465         maint.mk: prohibit definition of symbols defined by gnulib
8466         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8467         definition of symbols defined by gnulib.
8468
8469 2010-05-09  Bruno Haible  <bruno@clisp.org>
8470
8471         acl: Avoid test failure on Cygwin-hosted mingw.
8472         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8473
8474 2010-05-09  Bruno Haible  <bruno@clisp.org>
8475
8476         error: Use system's fcntl function.
8477         * lib/error.c (fcntl): Undefine.
8478
8479 2010-05-09  Jim Meyering  <meyering@redhat.com>
8480
8481         verify: adjust formatting to be more consistent
8482         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8483         argument-list '('s, and after one comma.
8484
8485 2010-05-09  Bruno Haible  <bruno@clisp.org>
8486
8487         error: More reliable output on mingw.
8488         * lib/error.c: Include <windows.h>.
8489         (is_open): New function.
8490         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8491         defined.
8492
8493 2010-05-09  Bruno Haible  <bruno@clisp.org>
8494
8495         vasnprintf: Fix syntax errors in libintl build on mingw.
8496         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8497         pad_ourselves and prec_ourselves after use.
8498
8499 2010-05-08  Bruno Haible  <bruno@clisp.org>
8500
8501         * lib/config.charset: Update comments for Cygwin 1.7.
8502         * lib/localcharset.c: Likewise.
8503
8504 2010-05-07  Jim Meyering  <meyering@redhat.com>
8505
8506         init.sh: improve comments
8507         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8508         . "${srcdir=.}/init.sh"; path_prepend_ .
8509         Add a note about path_prepend_ and the alternative of using
8510         TESTS_ENVIRONMENT.
8511
8512 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8513
8514         exclude: Unescape hashed patterns in wildcard mode.
8515         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8516         to the hash list.
8517         * tests/test-exclude8.sh: New test case.
8518         * modules/exclude-tests: Add new test.
8519
8520 2010-05-05  Eric Blake  <eblake@redhat.com>
8521
8522         verify: automate tests
8523         * modules/verify-tests: New module.
8524         * tests/test-verify.sh: New file.
8525         * tests/test-verify.c: Guard each negative test with a unique id.
8526         Also avoid warning about unused left hand of comma expressions.
8527
8528 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8529
8530         Further improvements to verify.h, suggested by Eric Blake.
8531         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8532         the GL_* versions, to avoid collision with OpenGL.
8533         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8534         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8535         than testing merely whether it's defined.
8536
8537         Modify verify.h to pacify gcc -Wredundant_decls.
8538         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8539         These use the prefix "GL_" since they're likely to be useful elsewhere.
8540         We may need to break them out into a different .h file.
8541         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8542         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8543         of verify_function__.
8544
8545 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8546
8547         Tests for module pwrite.
8548         * modules/pwrite-tests: New file.
8549         * tests/test-pwrite.sh: New file.
8550         * tests/test-pwrite.c: New file.
8551
8552         New module pwrite.
8553         * lib/unistd.in.h (pwrite): New declaration.
8554         * lib/pwrite.c: New file, from glibc with modifications.
8555         * m4/pwrite.m4: New file.
8556         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8558         REPLACE_PWRITE.
8559         * modules/pwrite: New file.
8560         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8561         REPLACE_PWRITE.
8562         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8563         * doc/posix-functions/pwrite.texi: Mention the new module.
8564
8565 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8566
8567         pread: Update documentation.
8568         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8569
8570 2010-05-04  Eric Blake  <eblake@redhat.com>
8571
8572         docs: update cygwin progress
8573         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8574         this bug.
8575         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8576         Added in cygwin 1.7.2.
8577         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8578         Likewise.
8579         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8580         Likewise.
8581         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8582         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8583         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8584         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8585         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8586         Mention nproc module.
8587         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8588         bug in cygwin 1.7.5 addition.
8589         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8590         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8591         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8592         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8593         1.7.5.
8594         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8595         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8596         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8597         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8598         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8599         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8600         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8601         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8602         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8603         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8604         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8605         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8606         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8607         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8608         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8609         Likewise.
8610         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8611         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8612         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8613         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8614         Likewise.
8615         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8616         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8617         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8618         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8619         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8620         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8621         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8622         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8623         Likewise.
8624         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8625         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8626         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8627         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8628         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8629         Likewise.
8630         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8631         Likewise.
8632         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8633         Likewise.
8634         * doc/glibc-functions/xdrrec_endofrecord.texi
8635         (xdrrec_endofrecord): Likewise.
8636         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8637         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8638         Likewise.
8639         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8640         Likewise.
8641
8642 2010-05-04  Jim Meyering  <meyering@redhat.com>
8643
8644         gendocs.sh: make its "-s FILE" option more useful
8645         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8646         $PACKAGE to reflect the probably-different basename of "FILE".
8647
8648 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8649
8650         bootstrap: don't ignore download_po_files failure
8651         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8652         failure.
8653
8654 2010-05-03  Jim Meyering  <meyering@redhat.com>
8655
8656         maint.mk: allow to pass options to gendocs.sh
8657         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8658         (gendocs_options_): New overridable variable.
8659
8660         gnu-web-doc-update: don't ignore configure or build failure
8661         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8662
8663         announce-gen: backslash-escape '@'s in --help output
8664         * build-aux/announce-gen: Fix syntax errors.
8665
8666         maint.mk, announce-gen: allow project-specific announcement mail headers
8667         * top/maint.mk (translation_project_): Define default.
8668         (announcement_Cc_, announcement_mail_headers_): Likewise.
8669         (announcement): Invoke announce-gen with new --mail-headers option.
8670         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8671
8672         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8673         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8674         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8675         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8676         line in the "err2" output file when running "make check" in verbose
8677         mode (i.e., with set -x enabled).
8678
8679 2010-05-03  Bruno Haible  <bruno@clisp.org>
8680
8681         wctob: Fix for weird platforms.
8682         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8683         argument value.
8684
8685 2010-05-03  Jim Meyering  <meyering@redhat.com>
8686
8687         maint.mk: prohibit unwarranted use of <strings.h>
8688         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8689         strings.h in a file that does not also use strcasecmp, strncasecmp,
8690         ffs or ffsll.
8691
8692         maint.mk: remove obsolete comments
8693         * top/maint.mk: Remove stale, commented-out rules.
8694
8695 2010-05-02  Bruno Haible  <bruno@clisp.org>
8696
8697         wcwidth: Declare also when it's aliased.
8698         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8699         macro.
8700
8701 2010-05-02  Bruno Haible  <bruno@clisp.org>
8702
8703         Fix regression from 2010-04-25.
8704         * gnulib-tool (func_modules_transitive_closure): Check the status of
8705         all modules, not only of the tests that are of the form foo-tests where
8706         foo is a module.
8707
8708 2010-05-02  Bruno Haible  <bruno@clisp.org>
8709
8710         wctob: Work around nasty Cygwin 1.7.2 bug.
8711         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8712         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8713
8714 2010-05-01  Bruno Haible  <bruno@clisp.org>
8715
8716         fpurge: Sharper test.
8717         * tests/test-fpurge.c (main): Add one more ftell check.
8718         * modules/fpurge-tests (Depends-on): Add ftell.
8719         Suggested by Eric Blake.
8720
8721 2010-05-01  Bruno Haible  <bruno@clisp.org>
8722
8723         ftello: Another test.
8724         * tests/test-ftello3.c: New file.
8725         * modules/ftello-tests (Files): Add it.
8726         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8727         MOSTLYCLEANFILES.
8728
8729         ftell: Another test.
8730         * tests/test-ftell3.c: New file.
8731         * modules/ftell-tests (Files): Add it.
8732         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8733         MOSTLYCLEANFILES.
8734
8735 2010-05-01  Bruno Haible  <bruno@clisp.org>
8736
8737         ftell, ftello: Work around Solaris bug.
8738         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8739         * lib/ftello.c: Include stdio-impl.h.
8740         (ftello): On Solaris, when _IOWRT is set, compute the result without
8741         looking at _IOREAD.
8742         * modules/ftello (Files): Add lib/stdio-impl.h.
8743         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8744         * doc/posix-functions/ftello.texi: Likewise.
8745         Reported by Eric Blake.
8746
8747 2010-05-01  Bruno Haible  <bruno@clisp.org>
8748
8749         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8750         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8751         the _IOWRT flag is also set.
8752
8753 2010-05-01  Bruno Haible  <bruno@clisp.org>
8754
8755         Fix doc about a HP-UX stdio bug.
8756         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8757         * doc/posix-functions/ftello.texi: Likewise.
8758
8759 2010-05-01  Bruno Haible  <bruno@clisp.org>
8760
8761         lseek test: Fix failure on Solaris.
8762         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8763         output.
8764
8765 2010-04-30  Jim Meyering  <meyering@redhat.com>
8766
8767         bootstrap: don't ignore failure to generate po*/Makevars
8768         * build-aux/bootstrap (with_gettext): Don't ignore failure
8769         to create po/Makevars or runtime-po/Makevars.
8770
8771 2010-04-29  Eric Blake  <eblake@redhat.com>
8772
8773         headers: relax license to LGPLv2+
8774         * modules/fcntl-h (License): Relax license.
8775         * modules/getopt-posix (License): Likewise.
8776         * modules/locale (License): Likewise.
8777         * modules/math (License): Likewise.
8778         * modules/pty (License): Likewise.
8779         * modules/sched (License): Likewise.
8780         * modules/search (License): Likewise.
8781         * modules/spawn (License): Likewise.
8782         * modules/stdarg (License): Likewise.
8783         * modules/sysexits (License): Likewise.
8784
8785 2010-04-29  Jim Meyering  <meyering@redhat.com>
8786
8787         inttypes: relax license to LGPLv2+
8788         * modules/inttypes (License): Relax license.
8789
8790 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8791
8792         * top/maint.mk (indent): Run twice to produce idempotent results.
8793
8794 2010-04-28  Bruno Haible  <bruno@clisp.org>
8795
8796         getdate: Generate getdate.c in the source directory.
8797         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8798         MOSTLYCLEANFILES.
8799         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8800
8801 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8802
8803         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8804         is not declared as a const *; avoid warnings in that case.
8805
8806 2010-04-28  Eric Blake  <eblake@redhat.com>
8807
8808         canonicalize-lgpl: avoid compiler warning
8809         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8810         declaration' / 'extraneous semicolon' warning with some compilers.
8811         Reported by Andreas Gruenbacher.
8812
8813 2010-04-28  Jim Meyering  <meyering@redhat.com>
8814
8815         init.sh: ensure a more reliable exit status when exiting via trap
8816         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8817         Inspired by patches from Dmitry V. Levin.
8818         Also trap on signal 3 (SIGQUIT).
8819
8820 2010-04-27  Bruno Haible  <bruno@clisp.org>
8821
8822         Update doc about utimes().
8823         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8824         'utimens' module.
8825         Reported by Andreas Gruenbacher <agruen@suse.de>.
8826
8827 2010-04-27  Eric Blake  <eblake@redhat.com>
8828
8829         full-read, full-write: relax license
8830         * modules/full-read (License): Drop to LGPLv2+.
8831         * modules/full-write (License): Likewise.
8832         * modules/safe-read (License): Likewise.
8833         * modules/safe-write (License): Likewise.
8834
8835         pthread: mention library for linking
8836         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8837
8838 2010-04-27  Jim Meyering  <meyering@redhat.com>
8839
8840         maint.mk: fix a bug introduced in last change
8841         * top/maint.mk (gl_assured_headers_): Now that all names are on
8842         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8843         is not anchored to end of word, it should be adequate.
8844
8845         maint.mk: avoid side-effect in latest syntax-check
8846         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8847         to run commands via $(shell...), and hence to incur cost only when
8848         the new rule is actually run.
8849
8850         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8851         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8852         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8853         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8854         (gl_assured_headers_, az_, AZ_): Define.
8855         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8856
8857 2010-04-26  Jim Meyering  <jim@meyering.net>
8858             Bruno Haible  <bruno@clisp.org>
8859
8860         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8861         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8862         Prompted by an exchange with Gilles Espinasse.
8863
8864 2010-04-26  Jim Meyering  <meyering@redhat.com>
8865
8866         git-version-gen: aesthetic tweak
8867         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8868         so that the command remains on a single line.
8869
8870 2010-04-26  Eric Blake  <eblake@redhat.com>
8871
8872         git-version-gen: allow use on EBCDIC hosts
8873         * build-aux/git-version-gen (dirty): Use literal rather than tying
8874         ourselves to ascii.
8875         Reported by Steve Goetze.
8876
8877 2010-04-25  Bruno Haible  <bruno@clisp.org>
8878
8879         netdb: Add support for GNULIB_POSIXCHECK.
8880         * lib/netdb.in.h: Include warn-on-use.h.
8881         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8882         functions are used when GNULIB_POSIXCHECK is defined and the
8883         getaddrinfo module is not in use.
8884         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8885         freeaddrinfo, gai_strerror, getnameinfo are declared.
8886         * modules/netdb (Depends-on): Add warn-on-use.
8887         (Makefile.am): Include warn-on-use.h in netdb.h.
8888
8889 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8890
8891         build: avoid "make check" failure without .git/ directory
8892         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8893         there is no .git/ directory.
8894
8895 2010-04-25  Bruno Haible  <bruno@clisp.org>
8896
8897         ptsname: Fix misuse of ttyname_r.
8898         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8899         of errno.
8900
8901 2010-04-25  Bruno Haible  <bruno@clisp.org>
8902
8903         ttyname_r: Make it work on Solaris 10.
8904         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8905         if the system function has the POSIX declaration. Test whether the
8906         function fails if the buffer is less than 128 bytes large.
8907         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8908         system's ttyname_r function. Provide a reasonably large buffer.
8909         * modules/ttyname_r (Depends-on): Add extensions.
8910         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8911
8912 2010-04-25  Bruno Haible  <bruno@clisp.org>
8913
8914         Use the 'extensions' module for some more functions on Solaris.
8915         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8916         module.
8917         * doc/posix-functions/ctime_r.texi: Likewise.
8918         * doc/posix-functions/getgrgid_r.texi: Likewise.
8919         * doc/posix-functions/getgrnam_r.texi: Likewise.
8920         * doc/posix-functions/getpwnam_r.texi: Likewise.
8921         * doc/posix-functions/getpwuid_r.texi: Likewise.
8922         * doc/posix-functions/readdir_r.texi: Likewise.
8923         * doc/posix-functions/sigwait.texi: Likewise.
8924         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8925         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8926
8927 2010-04-25  Bruno Haible  <bruno@clisp.org>
8928
8929         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8930         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8931         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8932         * lib/ttyname_r.c: Include <limits.h>.
8933         (ttyname_r): Define using the system's ttyname_r function, if it exists
8934         and not on Solaris.
8935         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8936         set.
8937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8938         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8939         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8940         Reported by Simon Josefsson.
8941
8942 2010-04-25  Bruno Haible  <bruno@clisp.org>
8943
8944         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8945         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8946         * doc/posix-functions/ctime_r.texi: Likewise.
8947         * doc/posix-functions/getgrgid_r.texi: Likewise.
8948         * doc/posix-functions/getgrnam_r.texi: Likewise.
8949         * doc/posix-functions/getlogin_r.texi: Likewise.
8950         * doc/posix-functions/getpwnam_r.texi: Likewise.
8951         * doc/posix-functions/getpwuid_r.texi: Likewise.
8952         * doc/posix-functions/readdir_r.texi: Likewise.
8953         * doc/posix-functions/sigwait.texi: Likewise.
8954         * doc/posix-functions/ttyname_r.texi: Likewise.
8955         Reported by Simon Josefsson.
8956
8957 2010-04-25  Bruno Haible  <bruno@clisp.org>
8958
8959         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8960         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8961         also to --create-testdir.
8962         (func_acceptable): Don't consider the status of *-tests modules here.
8963         (func_modules_transitive_closure): Consider it here, before including a
8964         test module.
8965         (func_import, func_create_testdir): Set inc_all_direct_tests,
8966         inc_all_indirect_tests.
8967         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8968         --create-testdir and --create-megatestdir.
8969
8970 2010-04-25  Bruno Haible  <bruno@clisp.org>
8971
8972         gnulib-tool: Add --without-*-tests options.
8973         * gnulib-tool (func_usage): Document the --without-*-tests options.
8974         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8975         excl_unportable_tests): New variables.
8976         Fail if they are specified with --import or --update.
8977         (func_acceptable): Respect the excl_*_tests variables.
8978         (func_import): Set the excl_*_tests variables to empty.
8979
8980 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8981             Bruno Haible  <bruno@clisp.org>
8982
8983         Work around a MacOS X 10.4 bug with openpty.
8984         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8985         * tests/test-openpty.c (main): Close the master side explicitly.
8986
8987 2010-04-25  Bruno Haible  <bruno@clisp.org>
8988
8989         strnlen: Fix a C++ test error on MacOS X and Solaris.
8990         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8991         the function is not declared.
8992         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8993         Simon Josefsson.
8994
8995 2010-04-24  Bruno Haible  <bruno@clisp.org>
8996
8997         Avoid a gcc warning.
8998         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8999         of correct type for %08lx directive.
9000         Reported by Eric Blake.
9001
9002 2010-04-24  Bruno Haible  <bruno@clisp.org>
9003
9004         vasnprintf: Correct errno value in case of out-of-memory.
9005         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
9006         or sprintf. Use the errno value from SNPRINTF or sprintf.
9007         Reported by Ian Beckwith <ianb@erislabs.net>.
9008
9009 2010-04-24  Bruno Haible  <bruno@clisp.org>
9010
9011         ansi-c++-opt: Find correct compiler when cross-compiling.
9012         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
9013         AC_CHECK_PROGS.
9014         Reported by Simon Josefsson.
9015
9016 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
9017
9018         vc-list-files: Add support for subversion
9019         * build-aux/vc-list-files: Use "svn list" to generate the list of
9020         files controlled by subversion.
9021
9022 2010-04-23  Jim Meyering  <meyering@redhat.com>
9023
9024         vc-list-files tests: convert to use init.sh
9025         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9026         path_prepend_.
9027         Use Exit, not exit.
9028         Use skip_ rather than open coding it.
9029         Remove trap set-up and compare definitions.
9030         * tests/test-vc-list-files-git.sh: Likewise.
9031         * modules/vc-list-files-tests (Files): Add tests/init.sh.
9032
9033 2010-04-22  Simon Josefsson  <simon@josefsson.org>
9034
9035         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
9036         backup files.
9037
9038 2010-04-21  Simon Josefsson  <simon@josefsson.org>
9039
9040         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
9041
9042 2010-04-20  Eric Blake  <eblake@redhat.com>
9043
9044         tests: be robust to ignored SIGPIPE
9045         * tests/test-select-in.sh: Consume all output.
9046         * tests/test-lseek.sh: Check correct exit status, while avoiding
9047         EPIPE.
9048
9049 2010-04-20  Simon Josefsson  <simon@josefsson.org>
9050             Bruno Haible  <bruno@clisp.org>
9051
9052         visibility: Don't use -fvisibility if it leads to a warning.
9053         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
9054         yes, don't pretend that visibility works if it leads to a warning.
9055         Reported by Mike Gran <spk121@yahoo.com>.
9056
9057 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
9058
9059         * build-aux/bootstrap: Use "git -h" for testing for supported options
9060         instead of "git --help".  The short-form option only shows a summary,
9061         and doesn't layout the full man page.  Grep for the full option name
9062         in the summary, too.
9063
9064 2010-04-19  Bruno Haible  <bruno@clisp.org>
9065
9066         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
9067         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
9068         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
9069         mention of RELOCATABLE_STRIP.
9070         Reported by Sylvain Beucler <beuc@beuc.net>.
9071
9072 2010-04-19  Bruno Haible  <bruno@clisp.org>
9073
9074         * lib/diffseq.h: Fix typo in comment.
9075         Reported by Eric Blake.
9076
9077 2010-04-19  Bruno Haible  <bruno@clisp.org>
9078
9079         ioctl: Move autoconf macro to a .m4 file.
9080         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9081         * modules/ioctl (Files): Add it.
9082         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9083         Reported by Ian Beckwith <ianb@erislabs.net>.
9084
9085 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9086             Bruno Haible  <bruno@clisp.org>
9087
9088         diffseq: Accommodate use-case with abstract arrays.
9089         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9090         is not defined.
9091         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9092         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9093
9094 2010-04-18  Bruno Haible  <bruno@clisp.org>
9095
9096         * doc/posix-headers/stdbool.texi: More precise wording.
9097
9098 2010-04-17  Jim Meyering  <meyering@redhat.com>
9099
9100         maint.mk: use gnu-style indentation in an embedded perl script
9101         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9102         Rename variable: s/two/last_two_bytes/
9103
9104 2010-04-16  Eric Blake  <eblake@redhat.com>
9105
9106         test-stdbool: skip test that fails with Solaris CC
9107         * tests/test-stdbool.c (f): Skip test that causes compilation
9108         error under buggy C++ compiler.
9109         * lib/stdbool.in.h: Document the limitation.
9110         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9111
9112         setenv: allow compilation with C++
9113         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9114         register keyword.
9115
9116         stdint: allow test to pass with C++
9117         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9118
9119         getopt: allow compilation with C++
9120         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9121         struct.
9122         * lib/getopt.c (_getopt_internal_r): Use correct type.
9123         Reported by Dagobert Michelson, via Joel E. Denny.
9124
9125 2010-04-16  Bruno Haible  <bruno@clisp.org>
9126
9127         Override netdb.h always.
9128         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9129         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
9130         Reported by Ludovic Courtès <ludo@gnu.org>.
9131
9132 2010-04-15  Bruno Haible  <bruno@clisp.org>
9133
9134         openpty: Fix mistake from 2010-03-21.
9135         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
9136         Reported by Simon Josefsson.
9137
9138 2010-04-15  Eric Blake  <eblake@redhat.com>
9139
9140         test-forkpty: fix expected signature
9141         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
9142         Reported by Simon Josefsson.
9143
9144 2010-04-15  Jim Meyering  <meyering@redhat.com>
9145
9146         maint.mk: texinfo_suffix_re_: correct the default regexp
9147         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
9148
9149         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
9150         make it configurable via texinfo_suffix_re_.
9151
9152 2010-04-14  Eric Blake  <eblake@redhat.com>
9153
9154         strtok_r: relax license to LGPLv2+
9155         * modules/strtok_r (License): Relax license.
9156         Reported by Matthias Bolte.
9157
9158 2010-04-14  Simon Josefsson  <simon@josefsson.org>
9159
9160         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
9161         version 1.4.4 by default instead of requiring the libgcrypt
9162         version used during build.  This makes it possible to use the
9163         application with older but still binary compatible libgcrypt
9164         versions.
9165
9166 2010-04-13  Eric Blake  <eblake@redhat.com>
9167
9168         getopt-gnu: match recent glibc fixes and posix ruling
9169         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
9170         '+' handling, when requesting extensions.
9171         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
9172         'W;' handling.
9173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
9174         * doc/posix-functions/getopt.texi (getopt): Document this.
9175         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9177         Likewise.
9178
9179         getopt: merge bug fixes from glibc
9180         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
9181         diagnostics.  Honor '+:' correctly.  Reject ';'.
9182
9183         getopt-posix: detect MacOS bug
9184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
9185         optind when missing a required argument.
9186         * doc/posix-functions/getopt.texi (getopt): Document the bug.
9187         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9188         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9189         Likewise.
9190
9191         getopt-posix: avoid spurious failure on Solaris
9192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
9193         an indicator that setting optind=1 is sufficient for reset.
9194
9195         getopt-posix: avoid spurious failure on FreeBSD
9196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
9197         in POSIX mode, since the m4 test uses it.
9198
9199         gnulib-tool: silence warning on BSD sh
9200         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
9201
9202 2010-04-13  Jim Meyering  <meyering@redhat.com>
9203
9204         doc: users.txt: GNU patch now uses gnulib
9205         * users.txt: Add patch.
9206
9207 2010-04-12  Jim Meyering  <meyering@redhat.com>
9208
9209         maint.mk: generate more concise timing data for syntax-check rules
9210         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
9211         " done" from each line that reports a syntax-check test duration.
9212
9213 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
9214
9215         git-version-gen: use "git update-index..." rather than "git status"
9216         * build-aux/git-version-gen: Use git update-index --refresh, not
9217         "git status".  With some versions of git, "git status" would fail
9218         to update the index and result in an unwarranted "-dirty" suffix.
9219
9220 2010-04-11  Jim Meyering  <meyering@redhat.com>
9221
9222         openat: correct formatting (no semantic change)
9223         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
9224         Suggested by Bruno Haible.
9225
9226 2010-04-11  Bruno Haible  <bruno@clisp.org>
9227
9228         Stricter declaration checking in testdirs.
9229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9230         If for_tests is true, augment AM_CPPFLAGS to define
9231         GNULIB_STRICT_CHECKING.
9232         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
9233         GNULIB_STRICT_CHECKING is defined, verify that the function is
9234         declared.
9235
9236 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
9237             Bruno Haible  <bruno@clisp.org>
9238
9239         libunistring: Improve configure output.
9240         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
9241         Don't say "consider installing GNU libunistring" when checking again
9242         with libiconv.
9243
9244 2010-04-11  Bruno Haible  <bruno@clisp.org>
9245
9246         libunistring: Correct value of $LTLIBUNISTRING.
9247         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
9248         correct the value of $LTLIBUNISTRING.
9249
9250 2010-04-11  Bruno Haible  <bruno@clisp.org>
9251
9252         havelib: Add static libraries to LIBS in the right order.
9253         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9254         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9255
9256 2010-04-11  Bruno Haible  <bruno@clisp.org>
9257
9258         libunistring: Detect libunistring also when it depends on libiconv.
9259         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9260         the second AC_LIB_HAVE_LINKFLAGS invocation.
9261
9262 2010-04-11  James Youngman  <jay@gnu.org>
9263
9264         close-stream: declare local scalars to be "const"
9265         * lib/close-stream.c (close_stream): Make boolean variables const
9266         to document the fact that we set but do not change them.
9267
9268 2010-04-11  Bruno Haible  <bruno@clisp.org>
9269
9270         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9271
9272 2010-04-11  Jim Meyering  <meyering@redhat.com>
9273
9274         maint.mk: don't include dist-check.mk
9275         * top/maint.mk: Remove bogus include directive.
9276
9277         maint.mk: improve empty-line-at-EOF check
9278         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9279         solution, rather than tail+Perl-based one.  The latter would read
9280         a few kilobytes from the end of each file, and did not handle empty
9281         files properly.
9282
9283         maint.mk: print the elapsed time for each syntax-check rule
9284         * top/maint.mk (sc_m_rules_): Save start time in a file.
9285         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9286         (local-check): Interpose the .z rules
9287
9288 2010-04-11  Jim Meyering  <meyering@redhat.com>
9289
9290         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9291         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9292         empty file with one that ends in an empty line.
9293
9294 2010-04-10  Bruno Haible  <bruno@clisp.org>
9295
9296         mkdir: Make it work on mingw64.
9297         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9298         * lib/mkdir.c: Update comment.
9299         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
9300
9301 2010-04-10  Bruno Haible  <bruno@clisp.org>
9302
9303         Don't override improved macro from newer autoconf.
9304         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9305         autoconf >= 2.62.
9306         Reported by Joel E. Denny <jdenny@clemson.edu>.
9307
9308 2010-04-10  Jim Meyering  <meyering@redhat.com>
9309
9310         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9311         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9312
9313         maint.mk: correct a diagnostic
9314         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9315         in diagnostic; now use $prohibit.
9316
9317 2010-04-10  Bruno Haible  <address@hidden>
9318
9319         fchownat: Fix a C++ test error on Solaris 8.
9320         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9321         the function does not exist.
9322
9323 2010-04-10  Bruno Haible  <bruno@clisp.org>
9324
9325         vasnprintf: Add more tests.
9326         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9327         (test_function): Test converting an invalid wide string.
9328
9329         vasnprintf: Correct handling of unconvertible wide string arguments.
9330         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9331         VASNPRINTF.
9332         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9333         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9334         smaller than the expected maximum need for the directive. Set errno to
9335         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9336         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9338         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9339         * modules/vasnprintf (Files): Add m4/printf.m4.
9340         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9341
9342 2010-04-10  Bruno Haible  <bruno@clisp.org>
9343
9344         vasnprintf: Fix crash in %ls directive.
9345         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9346         string is passed as argument to %ls, with no precision and no width.
9347         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9348
9349 2010-04-10  Bruno Haible  <bruno@clisp.org>
9350
9351         vasnprintf: Fix multiple test failures on mingw.
9352         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9353         _snprintf, or snwprintf, not _snwprintf.
9354
9355 2010-04-10  Bruno Haible  <bruno@clisp.org>
9356
9357         write: Fix a C++ test error on mingw.
9358         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9359
9360 2010-04-10  Bruno Haible  <bruno@clisp.org>
9361
9362         vasnprintf test: Reduce code duplication.
9363         * tests/test-vasnprintf.c (test_function): New function, extracted from
9364         test_vasnprintf.
9365         (test_vasnprintf, test_asnprintf): Invoke it.
9366
9367 2010-04-10  Bruno Haible  <bruno@clisp.org>
9368
9369         strnlen: Fix warning in C++ mode on MacOS X.
9370         * lib/string.in.h (strnlen): Use the modern idiom.
9371         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9372         defining strnlen as a macro already in <config.h>.
9373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9374         REPLACE_STRNLEN.
9375         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9377
9378 2010-04-08  James Youngman  <jay@gnu.org>
9379
9380         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9381         the example.
9382
9383 2010-04-09  Jim Meyering  <meyering@redhat.com>
9384
9385         maint.mk: print better diagnostic when there is no $(_hv_file)
9386         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9387         announce that when $(_hv_file) (aka help-version) does not exist.
9388
9389         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9390         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9391         not try to interpret its random input bytes.  Jarno Rajahalme reported
9392         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9393         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9394         (mktempd_): Likewise, just in case.
9395
9396         ftruncate: add two years to projected module removal date: 2012
9397         * m4/ftruncate.m4: Adjust comments.
9398
9399         ftruncate: mark module as obsolete; even MinGW provides it, now
9400         * modules/ftruncate (Status): Obsolete.
9401         (Notice): Say that.
9402         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9404
9405 2010-04-08  Bruno Haible  <bruno@clisp.org>
9406
9407         Fix side effects from tests-related modules.
9408         * modules/dprintf-posix (Comment): New section.
9409         * modules/fprintf-posix (Comment): Likewise.
9410         * modules/obstack-printf-posix (Comment): Likewise.
9411         * modules/printf-posix (Comment): Likewise.
9412         * modules/snprintf-posix (Comment): Likewise.
9413         * modules/sprintf-posix (Comment): Likewise.
9414         * modules/vasnprintf-posix (Comment): Likewise.
9415         * modules/vasprintf-posix (Comment): Likewise.
9416         * modules/vdprintf-posix (Comment): Likewise.
9417         * modules/vfprintf-posix (Comment): Likewise.
9418         * modules/vprintf-posix (Comment): Likewise.
9419         * modules/vsnprintf-posix (Comment): Likewise.
9420         * modules/vsprintf-posix (Comment): Likewise.
9421         * modules/xprintf-posix (Comment): Likewise.
9422         * modules/xvasprintf-posix (Comment): Likewise.
9423         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9424         * modules/floorf-tests (Depends-on): Likewise.
9425         * modules/round-tests (Depends-on): Likewise.
9426         * modules/roundf-tests (Depends-on): Likewise.
9427         * modules/trunc-tests (Depends-on): Likewise.
9428         * modules/truncf-tests (Depends-on): Likewise.
9429         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9430         'fprintf-posix' module is not present.
9431         * tests/test-floorf2.c (check): Likewise.
9432         * tests/test-trunc2.c (check): Likewise.
9433         * tests/test-truncf2.c (check): Likewise.
9434         * tests/test-round2.c (equal): Likewise.
9435         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9436
9437 2010-04-07  Karl Berry  <karl@gnu.org>
9438
9439         * config/srclist.txt,
9440         * config/srclistvars.sh,
9441         * config/srclist-update: doc fixes.
9442
9443 2010-04-07  Jim Meyering  <meyering@redhat.com>
9444
9445         maint.mk: add a PATH crosschecking syntax-check rule
9446         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9447         Useful if you use a test like the one in help-version (coreutils,
9448         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9449         printed by prog --version.
9450
9451 2010-04-06  Bruno Haible  <bruno@clisp.org>
9452
9453         Fix link error on mingw.
9454         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9455         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9456
9457 2010-04-06  Bruno Haible  <bruno@clisp.org>
9458
9459         Assume rmdir exists.
9460         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9461
9462 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9463
9464         doc: update users.txt
9465         * users.txt: Add gcal.
9466
9467 2010-04-06  Jim Meyering  <meyering@redhat.com>
9468
9469         init.sh: simply unset TMPDIR rather than risking env -i
9470         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9471         although it probably works fine on all Unix-based systems, some
9472         systems (Cygwin?) cannot tolerate a totally cleared environment.
9473         Suggestion from Eric Blake.
9474
9475 2010-04-06  Jim Meyering  <meyering@redhat.com>
9476
9477         init.sh: portability fix: use env's POSIX-specified -i option not -u
9478         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9479         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9480
9481 2010-04-05  Bruno Haible  <bruno@clisp.org>
9482
9483         btowc: Work around Cygwin 1.7.2 bug.
9484         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9485         does not map NUL to 0.
9486         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9487
9488 2010-04-05  Bruno Haible  <bruno@clisp.org>
9489
9490         Make the multithread modules work on Cygwin 1.7.2.
9491         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9492         imported symbols can be declared weak, so that it returns "no" on
9493         Cygwin 1.7.2.
9494
9495 2010-04-05  Bruno Haible  <bruno@clisp.org>
9496
9497         Use the module 'strncat'.
9498         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9499
9500         Tests for module 'strncat'.
9501         * modules/strncat-tests: New file.
9502         * tests/test-strncat.c: New file.
9503
9504         New module 'strncat'.
9505         * lib/string.in.h (strncat): New declaration.
9506         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9507         * m4/strncat.m4: New file, based on m4/memchr.m4.
9508         * modules/strncat: New file.
9509         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9510         is declared.
9511         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9512         REPLACE_STRNCAT.
9513         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9514         REPLACE_STRNCAT.
9515         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9516         module.
9517         * tests/test-string-c++.cc: Check signature of strncat.
9518
9519 2010-04-05  Jim Meyering  <meyering@redhat.com>
9520
9521         xstrtoumax-tests: convert to use init.sh
9522         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9523         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9524         Use Exit, not exit.
9525         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9526
9527         xstrtoimax-tests: convert to use init.sh
9528         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9529         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9530         Use Exit, not exit.
9531         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9532
9533 2010-04-05  Bruno Haible  <bruno@clisp.org>
9534
9535         sys_socket: Avoid #define replacements in C++ mode.
9536         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9537         warning to the function if possible, rather than #defining the symbol
9538         to a dysfunctional alias.
9539
9540 2010-04-05  Bruno Haible  <bruno@clisp.org>
9541
9542         fseeko: Fix C++ test error on mingw.
9543         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9544         gl_FUNC_FSEEKO.
9545         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9546         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9547         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9548         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9549
9550 2010-04-05  Bruno Haible  <bruno@clisp.org>
9551
9552         duplocale: Improve test output.
9553         * tests/test-duplocale.c (main): Print reason for skipped test.
9554
9555 2010-04-05  Bruno Haible  <bruno@clisp.org>
9556
9557         Assume rmdir exists.
9558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9559         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9560
9561 2010-04-05  Bruno Haible  <bruno@clisp.org>
9562
9563         Fix link error on Solaris 8 with cc.
9564         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9565
9566 2010-04-05  Bruno Haible  <bruno@clisp.org>
9567
9568         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9569         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9570
9571 2010-04-05  Bruno Haible  <bruno@clisp.org>
9572
9573         vasprintf: Update documentation.
9574         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9575
9576 2010-04-05  Bruno Haible  <bruno@clisp.org>
9577
9578         ptsname: Improve test.
9579         * tests/test-ptsname.c (main): Also try the various master names of BSD
9580         systems.
9581
9582 2010-04-05  Bruno Haible  <bruno@clisp.org>
9583
9584         memchr: Avoid a possible C++ test error.
9585         * lib/string.in.h (memchr): Provide declaration if function is missing.
9586         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9587         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9589         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9590
9591 2010-04-05  Bruno Haible  <bruno@clisp.org>
9592
9593         strtok_r: Improve idiom.
9594         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9595         AC_LIBOBJ is used.
9596
9597 2010-04-05  Bruno Haible  <bruno@clisp.org>
9598
9599         strdup: Improve idiom.
9600         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9601         AC_LIBOBJ is used.
9602         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9603         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9604         when AC_LIBOBJ is used.
9605
9606 2010-04-05  Bruno Haible  <bruno@clisp.org>
9607
9608         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9609         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9610         don't set REPLACE_MBSINIT to 1.
9611         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9612         don't set REPLACE_MBRTOWC to 1.
9613         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9614         exist, don't set REPLACE_MBSRTOWCS to 1.
9615         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9616         exist, don't set REPLACE_MBSNRTOWCS to 1.
9617         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9618         don't set REPLACE_WCRTOMB to 1.
9619         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9620         exist, don't set REPLACE_WCSRTOMBS to 1.
9621         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9622         exist, don't set REPLACE_WCSNRTOMBS to 1.
9623
9624 2010-04-05  Bruno Haible  <bruno@clisp.org>
9625
9626         ldexpl: Improve idiom.
9627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9628         make sure to set HAVE_DECL_LDEXPL to 0.
9629
9630 2010-04-05  Jim Meyering  <meyering@redhat.com>
9631
9632         xstrtol-tests: convert to use init.sh
9633         * modules/xstrtol-tests (Files): Add tests/init.sh.
9634         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9635         Use Exit, not exit.
9636         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9637
9638         atexit-tests: convert to use init.sh
9639         * modules/atexit-tests (Files): Add tests/init.sh.
9640         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9641         Use Exit, not exit.
9642         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9643
9644         init.sh: fix typo
9645         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9646
9647         init.sh: make it easier for a test script to write to the tty, ...
9648         when using automake's parallel-tests mode.
9649         * tests/init.sh (stderr_fileno_): Define overridable variable.
9650         (warn_): New function, to use it.
9651         (fail_, skip_, framework_failure_): Use warn_.
9652
9653 2010-04-04  Bruno Haible  <bruno@clisp.org>
9654
9655         btowc: Avoid warning.
9656         * lib/btowc.c: Include <stdlib.h>.
9657         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9658
9659 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9660             Bruno Haible  <bruno@clisp.org>
9661
9662         wchar: Port to NetBSD 1.5.
9663         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9664         * lib/wctype.in.h (WEOF): Likewise.
9665
9666 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9667             Bruno Haible  <bruno@clisp.org>
9668
9669         Port extended stdio to NetBSD 1.5.
9670         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9671         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9672         older.
9673
9674 2010-04-04  Bruno Haible  <bruno@clisp.org>
9675
9676         string: Remove unused substitution.
9677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9678         HAVE_DECL_STRERROR.
9679         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9680
9681 2010-04-04  Bruno Haible  <bruno@clisp.org>
9682
9683         strtod: Avoid a possible C++ test error.
9684         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9685         set REPLACE_STRTOD.
9686
9687 2010-04-04  Bruno Haible  <bruno@clisp.org>
9688
9689         strerror: Update documentation.
9690         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9691
9692 2010-04-04  Bruno Haible  <bruno@clisp.org>
9693
9694         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9695         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9696         _GL_CXXALIAS_SYS_CAST.
9697
9698 2010-04-04  Bruno Haible  <bruno@clisp.org>
9699
9700         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9701         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9702         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9703         REPLACE_FREXPL to 1.
9704         * doc/posix-functions/frexpl.texi: Update documentation.
9705
9706 2010-04-04  Bruno Haible  <bruno@clisp.org>
9707
9708         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9709         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9710
9711 2010-04-04  Bruno Haible  <bruno@clisp.org>
9712
9713         Implement nanosleep for native Windows.
9714         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9715
9716 2010-04-04  Bruno Haible  <bruno@clisp.org>
9717
9718         math: Fix some C++ test errors on Solaris 8.
9719         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9720
9721 2010-04-04  Bruno Haible  <bruno@clisp.org>
9722
9723         math: Fix some C++ test errors on Cygwin.
9724         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9725         truncl): Provide declaration if the system does not have it.
9726         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9727         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9728         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9729         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9730         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9731         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9732         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9733         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9734         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9735         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9736         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9737         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9738         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9739         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9740         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9741         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9743         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9744         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9745         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9746         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9747         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9748
9749 2010-04-04  Bruno Haible  <bruno@clisp.org>
9750
9751         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9752         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9753         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9754         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9755         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9756         * m4/isinf.m4 (gl_ISINF): Likewise.
9757         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9758
9759 2010-04-04  Bruno Haible  <bruno@clisp.org>
9760
9761         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9762         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9763
9764 2010-04-04  Bruno Haible  <bruno@clisp.org>
9765
9766         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9767         * modules/tmpfile (configure.ac): Update.
9768
9769         tmpfile: Fix C++ test error on mingw.
9770         * lib/stdio.in.h (tmpfile): New declaration.
9771         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9772         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9773         * modules/tmpfile (Depends-on): Add stdio.
9774         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9775         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9776         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9777         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9778         REPLACE_TMPFILE.
9779         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9780
9781 2010-04-04  Bruno Haible  <bruno@clisp.org>
9782
9783         ioctl: Fix C++ test error on mingw.
9784         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9785         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9786         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9787
9788 2010-04-03  Bruno Haible  <bruno@clisp.org>
9789
9790         wcwidth: Fix C++ test error on mingw.
9791         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9793         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9794
9795 2010-04-03  Bruno Haible  <bruno@clisp.org>
9796
9797         nanosleep: Fix C++ test error on mingw.
9798         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9799         * lib/time.in.h (nanosleep): Use modern idiom.
9800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9801         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9802         REPLACE_NANOSLEEP to 1.
9803         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9804         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9805
9806 2010-04-03  Bruno Haible  <bruno@clisp.org>
9807
9808         strptime: Fix C++ test error on mingw.
9809         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9810         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9811         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9812         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9814         not REPLACE_STRPTIME.
9815         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9816         REPLACE_STRPTIME.
9817
9818 2010-04-03  Bruno Haible  <bruno@clisp.org>
9819
9820         timegm: Fix C++ test error on mingw.
9821         * lib/time.in.h (timegm): Use modern idiom.
9822         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9823         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9825         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9826
9827 2010-04-03  Bruno Haible  <bruno@clisp.org>
9828
9829         timegm: Assume declaration if function exists.
9830         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9831         if it exists. Don't clobber ac_cv_func_timegm.
9832
9833 2010-04-03  Bruno Haible  <bruno@clisp.org>
9834
9835         time_r: Fix C++ test error on mingw.
9836         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9837         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9838         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9840         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9841
9842 2010-04-03  Bruno Haible  <bruno@clisp.org>
9843
9844         time_r: Minor updates.
9845         * modules/time_r (Description): Mention the provided functions.
9846         * lib/time_r.c: Don't include <string.h>.
9847         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9848         * doc/posix-functions/localtime_r.texi: Likewise.
9849
9850 2010-04-03  Bruno Haible  <bruno@clisp.org>
9851
9852         time: Fix regression introduced on 2010-03-08.
9853         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9854         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9855
9856 2010-04-03  Jim Meyering  <meyering@redhat.com>
9857
9858         maint.mk: don't silently disable project-specific syntax-check rules
9859         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9860         that they need to convert their project-specific syntax-check rules
9861         to use the new _sc_search_regexp.
9862
9863 2010-04-03  Bruno Haible  <bruno@clisp.org>
9864
9865         fchdir: Fix regression introduced on 2010-03-08.
9866         * lib/unistd.in.h (fchdir): Fix declaration.
9867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9869         REPLACE_FCHDIR.
9870         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9871         REPLACE_FCHDIR.
9872
9873 2010-04-03  Bruno Haible  <bruno@clisp.org>
9874
9875         getpagesize: Fix C++ test error on mingw.
9876         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9877         system does not declare the function.
9878         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9879         declared.
9880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9881         HAVE_DECL_GETPAGESIZE.
9882         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9883
9884 2010-04-03  Bruno Haible  <bruno@clisp.org>
9885
9886         stdio: Make C++ tests work on mingw.
9887         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9888         does not declare the function.
9889
9890 2010-04-03  Bruno Haible  <bruno@clisp.org>
9891
9892         ftello: Fix C++ test error on mingw.
9893         * lib/stdio.in.h (ftello): Use modern idiom.
9894         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9895         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9896         is missing and that it needs to be replaced.
9897         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9899         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9900
9901 2010-04-03  Bruno Haible  <bruno@clisp.org>
9902
9903         fseeko: Fix C++ test error on mingw.
9904         * lib/stdio.in.h (fseeko): Use modern idiom.
9905         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9906         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9907         is missing and that it needs to be replaced.
9908         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9910         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9911
9912 2010-04-03  Bruno Haible  <bruno@clisp.org>
9913
9914         mkstemp: Fix C++ test error on mingw.
9915         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9916         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9917         function is missing and that it needs to be replaced.
9918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9919         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9920
9921 2010-04-03  Bruno Haible  <bruno@clisp.org>
9922
9923         stpncpy: Fix C++ test error on mingw.
9924         * lib/string.in.h (stpncpy): Use modern idiom.
9925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9926         function is missing and that it needs to be replaced.
9927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9928         REPLACE_STPNCPY.
9929         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9930
9931 2010-04-03  Bruno Haible  <bruno@clisp.org>
9932
9933         sys_stat: Fix C++ test error on mingw.
9934         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9935         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9936
9937 2010-04-03  Bruno Haible  <bruno@clisp.org>
9938
9939         pty: Update doc.
9940         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9941
9942 2010-04-03  Bruno Haible  <bruno@clisp.org>
9943
9944         unistd: Fix C++ test error on mingw.
9945         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9946
9947 2010-04-03  Bruno Haible  <bruno@clisp.org>
9948
9949         Update doc regarding mingw.
9950         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9951         * doc/glibc-functions/login_tty.texi: Likewise.
9952         * doc/glibc-functions/forkpty.texi: Likewise.
9953
9954 2010-04-03  Bruno Haible  <bruno@clisp.org>
9955
9956         stdlib: Avoid compilation failure of c-strtold on mingw.
9957         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9958
9959 2010-04-03  Bruno Haible  <bruno@clisp.org>
9960
9961         locale: Make C++ tests work on Cygwin and mingw.
9962         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9963         cannot provide the function.
9964         Reported by Simon Josefsson.
9965
9966 2010-04-03  Bruno Haible  <bruno@clisp.org>
9967
9968         localename: Port to MacOS X 10.6.
9969         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9970         memory layout of the locales in MacOS X 10.6 as well.
9971         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9972
9973 2010-04-02  Bruno Haible  <bruno@clisp.org>
9974
9975         gnulib-tool: Ensure that long-running tests are executed last.
9976         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9977         running tests after the one for the other tests.
9978
9979 2010-04-02  Bruno Haible  <bruno@clisp.org>
9980
9981         gnulib-tool: Ensure the tests in the main directory are executed first.
9982         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9983         start with the current directory.
9984
9985 2010-04-02  Bruno Haible  <bruno@clisp.org>
9986
9987         Tests for module 'havelib', moved here from GNU gettext.
9988         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9989         modifications.
9990         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9991         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9992         with modifications.
9993         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9994         modifications.
9995         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9996         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9997         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9998         with modifications.
9999         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
10000         with modifications.
10001         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
10002         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
10003         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
10004         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
10005         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
10006         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
10007         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
10008         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
10009         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
10010         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
10011         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
10012         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
10013         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
10014         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
10015         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
10016         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
10017         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
10018         with modifications.
10019         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
10020         with modifications.
10021         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
10022         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
10023         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10024         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10025         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10026         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
10027         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
10028         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
10029         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
10030         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
10031         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
10032         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
10033         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
10034         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
10035         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
10036         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
10037         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
10038         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
10039         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
10040         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
10041         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
10042         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
10043         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
10044         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
10045         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
10046         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
10047         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
10048         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
10049         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
10050         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
10051         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
10052         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
10053         * tests/havelib/rpathx/rpathx.c: New file, from
10054         gettext/autoconf-lib-link.
10055         * tests/havelib/rpathx/Makefile.am: New file, from
10056         gettext/autoconf-lib-link.
10057         * tests/havelib/rpathx/configure.ac: New file, from
10058         gettext/autoconf-lib-link with modifications.
10059         * tests/havelib/rpathy/rpathy.c: New file, from
10060         gettext/autoconf-lib-link.
10061         * tests/havelib/rpathy/Makefile.am: New file, from
10062         gettext/autoconf-lib-link.
10063         * tests/havelib/rpathy/configure.ac: New file, from
10064         gettext/autoconf-lib-link with modifications.
10065         * tests/havelib/rpathz/rpathz.c: New file, from
10066         gettext/autoconf-lib-link.
10067         * tests/havelib/rpathz/Makefile.am: New file, from
10068         gettext/autoconf-lib-link.
10069         * tests/havelib/rpathz/configure.ac: New file, from
10070         gettext/autoconf-lib-link with modifications.
10071         * tests/havelib/rpathlx/usex.c: New file, from
10072         gettext/autoconf-lib-link.
10073         * tests/havelib/rpathlx/Makefile.am: New file, from
10074         gettext/autoconf-lib-link.
10075         * tests/havelib/rpathlx/configure.ac: New file, from
10076         gettext/autoconf-lib-link with modifications.
10077         * tests/havelib/rpathly/usey.c: New file, from
10078         gettext/autoconf-lib-link.
10079         * tests/havelib/rpathly/Makefile.am: New file, from
10080         gettext/autoconf-lib-link.
10081         * tests/havelib/rpathly/configure.ac: New file, from
10082         gettext/autoconf-lib-link with modifications.
10083         * tests/havelib/rpathlz/usez.c: New file, from
10084         gettext/autoconf-lib-link.
10085         * tests/havelib/rpathlz/Makefile.am: New file, from
10086         gettext/autoconf-lib-link.
10087         * tests/havelib/rpathlz/configure.ac: New file, from
10088         gettext/autoconf-lib-link with modifications.
10089         * tests/havelib/rpathlyx/usey.c: New file, from
10090         gettext/autoconf-lib-link.
10091         * tests/havelib/rpathlyx/Makefile.am: New file, from
10092         gettext/autoconf-lib-link.
10093         * tests/havelib/rpathlyx/configure.ac: New file, from
10094         gettext/autoconf-lib-link with modifications.
10095         * tests/havelib/rpathlzyx/usez.c: New file, from
10096         gettext/autoconf-lib-link.
10097         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10098         gettext/autoconf-lib-link.
10099         * tests/havelib/rpathlzyx/configure.ac: New file, from
10100         gettext/autoconf-lib-link with modifications.
10101         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10102         with modifications.
10103
10104 2010-04-02  Bruno Haible  <bruno@clisp.org>
10105
10106         gnulib-tool: Create distributed built sources also for the tests.
10107         * gnulib-tool (func_create_testdir): Also generate distributed built
10108         sources in the tests directory.
10109
10110 2010-04-02  Bruno Haible  <bruno@clisp.org>
10111
10112         gnulib-tool: Obey user's environment variables.
10113         * gnulib-tool (func_create_testdir): When creating built sources,
10114         respect the environment variables for autoconf, automake, etc. given by
10115         the user.
10116
10117 2010-04-02  Bruno Haible  <bruno@clisp.org>
10118
10119         gnulib-tool: Provide the value of --m4-base to modules.
10120         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10121         of gl_m4_base.
10122
10123 2010-04-02  Eric Blake  <eblake@redhat.com>
10124
10125         maint.mk: fix some fallout
10126         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10127         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10128
10129 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10130
10131         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
10132         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
10133         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
10134         (sc_cast_of_x_alloc_return_value): Likewise.
10135         (sc_cast_of_alloca_return_value): Likewise.
10136         (sc_space_tab): Likewise.
10137         (sc_prohibit_atoi_atof): Likewise.
10138         (sc_prohibit_magic_number_exit): Likewise.
10139         (sc_error_exit_success): Likewise.
10140         (sc_file_system): Likewise.
10141         (sc_prohibit_have_config_h): Likewise.
10142         (sc_require_config_h): Likewise.
10143         (sc_prohibit_HAVE_MBRTOWC): Likewise.
10144         (sc_obsolete_symbols): Likewise.
10145         (sc_changelog): Likewise.
10146         (sc_program_name): Likewise.
10147         (sc_the_the): Likewise.
10148         (sc_trailing_blank): Likewise.
10149         (sc_two_space_separator_in_usage): Likewise.
10150         (sc_useless_cpp_parens): Likewise.
10151         (sc_GPL_version): Likewise.
10152         (sc_GFDL_version): Likewise.
10153         (sc_texinfo_acronym): Likewise.
10154         (sc_prohibit_cvs_keyword): Likewise.
10155         (sc_prohibit_stat_st_blocks): Likewise.
10156         (sc_prohibit_S_IS_definition): Likewise.
10157         (sc_redundant_const): Likewise.
10158         (sc_makefile_TAB_only_indentation): Likewise.
10159         (sc_m4_quote_check): Likewise.
10160         (sc_makefile_path_separator_check): Likewise.
10161         (sc_copyright_check): Likewise.
10162         (sc_Wundef_boolean): Likewise.
10163         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10164
10165         maint.mk: match 0 or more whitespace-before-function-call '('
10166         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
10167         that have zero or two-and-more spaces between the function name
10168         and the open parenthesis.
10169         (sc_error_message_warn_fatal): Likewise.
10170         (sc_error_message_uppercase): Likewise.
10171         (sc_error_message_period): Likewise.
10172
10173 2010-03-31  Eric Blake  <eblake@redhat.com>
10174
10175         maint.mk: check for [ as well as test
10176         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
10177         Based on a libvirt report by Matthias Bolte.
10178
10179         gnumakefile: don't squelch _version output
10180         * top/GNUmakefile (_version): Create one-shot dependency rather
10181         than using $(shell) when version must be regenerated.
10182         (_autoreconf): Run verbosely, by default.
10183
10184         sys_time: avoid compiler warnings
10185         * lib/sys_time.in.h (includes): Ensure gcc pragma is
10186         unconditional, fixing regression from 2010-03-29.
10187         Reported by Simon Josefsson.
10188
10189 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
10190
10191         maint.mk: s/_header_without_use/_sc_header_without_use/
10192         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
10193         (sc_prohibit_assert_without_use): Use the new name.
10194         (sc_prohibit_close_stream_without_use): Likewise.
10195         (sc_prohibit_getopt_without_use): Likewise.
10196         (sc_prohibit_quotearg_without_use): Likewise.
10197         (sc_prohibit_quote_without_use): Likewise.
10198         (sc_prohibit_long_options_without_use): Likewise.
10199         (sc_prohibit_inttostr_without_use): Likewise.
10200         (sc_prohibit_ignore_value_without_use): Likewise.
10201         (sc_prohibit_error_without_use): Likewise.
10202         (sc_prohibit_xalloc_without_use): Likewise.
10203         (sc_prohibit_hash_without_use): Likewise.
10204         (sc_prohibit_hash_pjw_without_use): Likewise.
10205         (sc_prohibit_safe_read_without_use): Likewise.
10206         (sc_prohibit_argmatch_without_use): Likewise.
10207         (sc_prohibit_canonicalize_without_use): Likewise.
10208         (sc_prohibit_root_dev_ino_without_use): Likewise.
10209         (sc_prohibit_openat_without_use): Likewise.
10210         (sc_prohibit_c_ctype_without_use): Likewise.
10211         (sc_prohibit_signal_without_use): Likewise.
10212         (sc_prohibit_intprops_without_use): Likewise.
10213
10214 2010-03-30  Eric Blake  <eblake@redhat.com>
10215
10216         maint: improve module indicators
10217         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
10218         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
10219         columns, and avoid extra macro expansion.
10220
10221         fdopendir: work around FreeBSD bug
10222         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10223         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
10224         * modules/dirent (Makefile.am): Substitute it.
10225         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
10226         declaration.
10227         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10228         fix.
10229         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10230
10231 2010-03-29  Bruno Haible  <bruno@clisp.org>
10232
10233         Emit #pragma system_header after the inclusion guard, not before.
10234         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
10235         guard that spans the entire file, not before. This enables an
10236         optimization in GCC's preprocessor.
10237         * lib/ctype.in.h: Likewise.
10238         * lib/dirent.in.h: Likewise.
10239         * lib/errno.in.h: Likewise.
10240         * lib/float.in.h: Likewise.
10241         * lib/getopt.in.h: Likewise.
10242         * lib/iconv.in.h: Likewise.
10243         * lib/langinfo.in.h: Likewise.
10244         * lib/locale.in.h: Likewise.
10245         * lib/math.in.h: Likewise.
10246         * lib/netdb.in.h: Likewise.
10247         * lib/netinet_in.in.h: Likewise.
10248         * lib/pty.in.h: Likewise.
10249         * lib/sched.in.h: Likewise.
10250         * lib/se-selinux.in.h: Likewise.
10251         * lib/search.in.h: Likewise.
10252         * lib/spawn.in.h: Likewise.
10253         * lib/stdarg.in.h: Likewise.
10254         * lib/stdint.in.h: Likewise.
10255         * lib/string.in.h: Likewise.
10256         * lib/strings.in.h: Likewise.
10257         * lib/sys_file.in.h: Likewise.
10258         * lib/sys_ioctl.in.h: Likewise.
10259         * lib/sys_time.in.h: Likewise.
10260         * lib/sys_times.in.h: Likewise.
10261         * lib/sys_utsname.in.h: Likewise.
10262         * lib/sys_wait.in.h: Likewise.
10263         * lib/sysexits.in.h: Likewise.
10264         * lib/wctype.in.h: Likewise.
10265
10266 2010-03-28  James Youngman  <jay@gnu.org>
10267
10268         save-cwd: don't leak a file descriptor when the caller execs.
10269         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10270         saved file descriptor.
10271         * modules/save-cwd (Depends-on): Depend on cloexec.
10272
10273 2010-03-29  Bruno Haible  <bruno@clisp.org>
10274
10275         Remove vestiges of fts-lgpl module.
10276         * lib/fts_.h: Assume GNULIB_FTS is 1.
10277         * lib/fts.c: Likewise.
10278         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10279
10280 2010-03-28  Bruno Haible  <bruno@clisp.org>
10281
10282         Fix definition of tests witness macro.
10283         * gnulib-tool (func_import): Fix definition of witness macro.
10284
10285 2010-03-28  Bruno Haible  <bruno@clisp.org>
10286
10287         Fix ioctl's protoype on glibc systems.
10288         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10289         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10290         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10291         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10292         signature. If not, arrange to replace the ioctl function.
10293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10294         REPLACE_IOCTL.
10295         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10296         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10297         Reported by Ludovic Courtès <ludo@gnu.org>.
10298
10299 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10300
10301         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10302         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10303         made it so grep -r --include=GLOB* ... did not work.
10304
10305 2010-03-26  Jim Meyering  <meyering@redhat.com>
10306             Eric Blake  <eblake@redhat.com>
10307
10308         maint.mk: prohibit use of test's -o and -a operators
10309         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10310
10311 2010-03-28  Bruno Haible  <bruno@clisp.org>
10312
10313         Remove unused GNULIB_XYZ macro definitions.
10314         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10315         invocation.
10316
10317 2010-03-28  Bruno Haible  <bruno@clisp.org>
10318
10319         Mark privileged tests modules.
10320         * modules/idpriv-drop-tests (Status): New section.
10321         * modules/idpriv-droptemp-tests (Status): New section.
10322
10323 2010-03-28  Bruno Haible  <bruno@clisp.org>
10324
10325         Split C++ tests into separate tests modules.
10326         * modules/dirent-c++-tests: New file, extracted from
10327         modules/dirent-tests.
10328         * modules/dirent-tests: Depend on it.
10329         * modules/fcntl-h-c++-tests: New file, extracted from
10330         modules/fcntl-h-tests.
10331         * modules/fcntl-h-tests: Depend on it.
10332         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10333         * modules/glob-tests: Depend on it.
10334         * modules/iconv-h-c++-tests: New file, extracted from
10335         modules/iconv-h-tests.
10336         * modules/iconv-h-tests: Depend on it.
10337         * modules/langinfo-c++-tests: New file, extracted from
10338         modules/langinfo-tests.
10339         * modules/langinfo-tests: Depend on it.
10340         * modules/locale-c++-tests: New file, extracted from
10341         modules/locale-tests.
10342         * modules/locale-tests: Depend on it.
10343         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10344         * modules/math-tests: Depend on it.
10345         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10346         * modules/pty-tests: Depend on it.
10347         * modules/search-c++-tests: New file, extracted from
10348         modules/search-tests.
10349         * modules/search-tests: Depend on it.
10350         * modules/signal-c++-tests: New file, extracted from
10351         modules/signal-tests.
10352         * modules/signal-tests: Depend on it.
10353         * modules/spawn-c++-tests: New file, extracted from
10354         modules/spawn-tests.
10355         * modules/spawn-tests: Depend on it.
10356         * modules/stdio-c++-tests: New file, extracted from
10357         modules/stdio-tests.
10358         * modules/stdio-tests: Depend on it.
10359         * modules/stdlib-c++-tests: New file, extracted from
10360         modules/stdlib-tests.
10361         * modules/stdlib-tests: Depend on it.
10362         * modules/string-c++-tests: New file, extracted from
10363         modules/string-tests.
10364         * modules/string-tests: Depend on it.
10365         * modules/sys_ioctl-c++-tests: New file, extracted from
10366         modules/sys_ioctl-tests.
10367         * modules/sys_ioctl-tests: Depend on it.
10368         * modules/sys_select-c++-tests: New file, extracted from
10369         modules/sys_select-tests.
10370         * modules/sys_select-tests: Depend on it.
10371         * modules/sys_socket-c++-tests: New file, extracted from
10372         modules/sys_socket-tests.
10373         * modules/sys_socket-tests: Depend on it.
10374         * modules/sys_stat-c++-tests: New file, extracted from
10375         modules/sys_stat-tests.
10376         * modules/sys_stat-tests: Depend on it.
10377         * modules/sys_time-c++-tests: New file, extracted from
10378         modules/sys_time-tests.
10379         * modules/sys_time-tests: Depend on it.
10380         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10381         * modules/time-tests: Depend on it.
10382         * modules/unistd-c++-tests: New file, extracted from
10383         modules/unistd-tests.
10384         * modules/unistd-tests: Depend on it.
10385         * modules/wchar-c++-tests: New file, extracted from
10386         modules/wchar-tests.
10387         * modules/wchar-tests: Depend on it.
10388         * modules/wctype-c++-tests: New file, extracted from
10389         modules/wctype-tests.
10390         * modules/wctype-tests: Depend on it.
10391         Reported by Simon Josefsson.
10392
10393 2010-03-28  Bruno Haible  <bruno@clisp.org>
10394
10395         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10396         * gnulib-tool (func_exists_module): New function, extracted from
10397         func_verify_module.
10398         (func_verify_module): Use it.
10399         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10400         'foo' only if 'foo' exists.
10401         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10402         module.
10403
10404 2010-03-28  Bruno Haible  <bruno@clisp.org>
10405
10406         gnulib-tool: Add support for special categories of tests.
10407         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10408         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10409         (func_usage): Document them.
10410         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10411         inc_unportable_tests, inc_all_tests): New variables.
10412         (func_acceptable): Consider these variables.
10413         (func_modules_transitive_closure): Make it work when the 'Status' field
10414         consists of multiple words.
10415         (func_import): Store and restore the values of inc_cxx_tests,
10416         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10417         inc_all_tests in gnulib-comp.m4.
10418         (func_create_testdir): Set inc_all_tests to true.
10419         * doc/gnulib.texi (Extra tests modules): New section.
10420         Suggested by Jim Meyering.
10421
10422 2010-03-28  Bruno Haible  <bruno@clisp.org>
10423
10424         ansi-c++-opt: Allow turning off the C++ build by default.
10425         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10426         gl_CXX_CHOICE_DEFAULT_NO is defined.
10427         Requested by Eric Blake.
10428
10429 2010-03-28  Bruno Haible  <bruno@clisp.org>
10430
10431         unistd: Avoid #define replacements in C++ mode.
10432         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10433         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10434         setsockopt, shutdown, select): In C++, attach a warning to the function
10435         if possible, rather than #defining the symbol to a dysfunctional alias.
10436         Reported by John W. Eaton <jwe@gnu.org>.
10437
10438 2010-03-28  Bruno Haible  <bruno@clisp.org>
10439
10440         Fix link errors on mingw.
10441         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10442         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10443         $(LIBSOCKET).
10444         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10445         $(LIBSOCKET).
10446
10447 2010-03-28  Bruno Haible  <bruno@clisp.org>
10448             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10449
10450         lib-ignore: Determine different options for different compilers.
10451         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10452         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10453         Add comments.
10454         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10455         * NEWS: Mention the change.
10456
10457 2010-03-27  Bruno Haible  <bruno@clisp.org>
10458
10459         Remove unused GNULIB_XYZ macro definitions.
10460         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10461         * modules/fseek (configure.ac): Likewise.
10462         * modules/ioctl (configure.ac): Likewise.
10463         * modules/open (configure.ac): Likewise.
10464         * modules/stdlib-safer (configure.ac): Likewise.
10465
10466 2010-03-27  Bruno Haible  <bruno@clisp.org>
10467
10468         Add a remark about certain modules.
10469         * modules/malloc (Comment): New section.
10470         * modules/realloc (Comment): Likewise.
10471         * modules/sigpipe (Comment): Likewise.
10472
10473 2010-03-27  Bruno Haible  <bruno@clisp.org>
10474
10475         Resolve conflict between the two kinds of module indicators.
10476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10477         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10478         * modules/canonicalize (configure.ac): Invoke
10479         gl_MODULE_INDICATOR_FOR_TESTS.
10480         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10481         GNULIB_XYZ.
10482         * tests/test-dirent-c++.cc: Likewise.
10483         * tests/test-dirent-safer.c: Likewise.
10484         * tests/test-dup2.c: Likewise.
10485         * tests/test-fchdir.c: Likewise.
10486         * tests/test-fcntl-h-c++.cc: Likewise.
10487         * tests/test-getopt.c: Likewise.
10488         * tests/test-getopt.h: Likewise.
10489         * tests/test-langinfo-c++.cc: Likewise.
10490         * tests/test-locale-c++.cc: Likewise.
10491         * tests/test-math-c++.cc: Likewise.
10492         * tests/test-pty-c++.cc: Likewise.
10493         * tests/test-search-c++.cc: Likewise.
10494         * tests/test-signal-c++.cc: Likewise.
10495         * tests/test-spawn-c++.cc: Likewise.
10496         * tests/test-stdio-c++.cc: Likewise.
10497         * tests/test-stdlib-c++.cc: Likewise.
10498         * tests/test-string-c++.cc: Likewise.
10499         * tests/test-sys_ioctl-c++.cc: Likewise.
10500         * tests/test-sys_select-c++.cc: Likewise.
10501         * tests/test-sys_socket-c++.cc: Likewise.
10502         * tests/test-sys_stat-c++.cc: Likewise.
10503         * tests/test-sys_time-c++.cc: Likewise.
10504         * tests/test-time-c++.cc: Likewise.
10505         * tests/test-unistd-c++.cc: Likewise.
10506         * tests/test-wchar-c++.cc: Likewise.
10507         * tests/uninorm/test-u8-nfc.c: Likewise.
10508         * tests/uninorm/test-u8-nfd.c: Likewise.
10509         * tests/uninorm/test-u8-nfkc.c: Likewise.
10510         * tests/uninorm/test-u8-nfkd.c: Likewise.
10511         * tests/uninorm/test-u16-nfc.c: Likewise.
10512         * tests/uninorm/test-u16-nfd.c: Likewise.
10513         * tests/uninorm/test-u16-nfkc.c: Likewise.
10514         * tests/uninorm/test-u16-nfkd.c: Likewise.
10515         * tests/uninorm/test-u32-nfc.c: Likewise.
10516         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10517         * tests/uninorm/test-u32-nfd.c: Likewise.
10518         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10519         * tests/uninorm/test-u32-nfkc.c: Likewise.
10520         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10521         * tests/uninorm/test-u32-nfkd.c: Likewise.
10522         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10523         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10524
10525 2010-03-27  Bruno Haible  <bruno@clisp.org>
10526
10527         Distinguish two kinds of module indicators.
10528         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10529         gl_MODULE_INDICATOR.
10530         (gl_MODULE_INDICATOR): New macro.
10531         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10532         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10533         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10534         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10535         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10536         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10537         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10538         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10539         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10540         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10541         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10542         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10545         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10546         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10548         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10549         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10550         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10551         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10552         * modules/cloexec (configure.ac): Likewise.
10553         * modules/getopt-gnu (configure.ac): Likewise.
10554         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10555         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10556         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10557         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10558
10559 2010-03-27  Bruno Haible  <bruno@clisp.org>
10560
10561         New module description field 'Comment'.
10562         * gnulib-tool: New option --extract-comment.
10563         (func_usage): Document it.
10564         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10565         (func_get_comment): New function.
10566         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10567
10568 2010-03-27  Bruno Haible  <bruno@clisp.org>
10569
10570         Addendum to 2010-02-07 commit.
10571         * gnulib-tool (func_usage): Document --extract-applicability option.
10572
10573 2010-03-27  Bruno Haible  <bruno@clisp.org>
10574
10575         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10576         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10577         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10578         rather than link errors.
10579
10580 2010-03-27  Bruno Haible  <bruno@clisp.org>
10581
10582         Avoid side effects from tests-related modules on the compilation of lib.
10583         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10584         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10585         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10586         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10587         macro.
10588         (func_import): Define a witness macro. Assign it a value that depends
10589         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10590         tests-related modules.
10591         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10592         Reported by Jim Meyering.
10593
10594 2010-03-27  Bruno Haible  <bruno@clisp.org>
10595
10596         Factorize common .m4 code.
10597         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10598         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10599         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10600         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10602         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10603         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10604         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10605         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10606         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10607         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10608         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10609         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10610         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10611         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10612         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10613         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10614         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10616         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10617         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10619         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10620         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10621         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10622         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10623         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10624         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10625         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10626         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10627         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10628         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10629
10630 2010-03-27  Bruno Haible  <bruno@clisp.org>
10631
10632         Fix a compilation error on Cygwin with g++ >= 4.3.
10633         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10634         if it is undefined or if we alias it to chmod.
10635         (lstat): Don't warn about the use of this function if it is undefined
10636         or if we alias it to stat.
10637         Reported by Simon Josefsson.
10638
10639 2010-03-27  Bruno Haible  <bruno@clisp.org>
10640
10641         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10642         * modules/getlogin (configure.ac): Update.
10643
10644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10645         * modules/getlogin_r (configure.ac): Update.
10646
10647         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10648         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10649         * modules/inet_ntop (configure.ac): Update.
10650
10651         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10652         * modules/inet_pton (configure.ac): Update.
10653
10654         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10655         * modules/mbslen (configure.ac): Update.
10656
10657         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10658         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10659         * modules/forkpty (configure.ac): Update.
10660         * modules/openpty (configure.ac): Update.
10661
10662 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10663
10664         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10665         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10666
10667 2010-03-25  Eric Blake  <eblake@redhat.com>
10668
10669         maint: use pragma consistently across replacement headers
10670         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10671         * lib/dirent.in.h (system_header): Likewise.
10672         * lib/errno.in.h (system_header): Likewise.
10673         * lib/float.in.h (system_header): Likewise.
10674         * lib/getopt.in.h (system_header): Likewise.
10675         * lib/iconv.in.h (system_header): Likewise.
10676         * lib/inttypes.in.h (system_header): Likewise.
10677         * lib/langinfo.in.h (system_header): Likewise.
10678         * lib/locale.in.h (system_header): Likewise.
10679         * lib/math.in.h (system_header): Likewise.
10680         * lib/netdb.in.h (system_header): Likewise.
10681         * lib/netinet_in.in.h (system_header): Likewise.
10682         * lib/pty.in.h (system_header): Likewise.
10683         * lib/sched.in.h (system_header): Likewise.
10684         * lib/se-selinux.in.h (system_header): Likewise.
10685         * lib/search.in.h (system_header): Likewise.
10686         * lib/spawn.in.h (system_header): Likewise.
10687         * lib/stdarg.in.h (system_header): Likewise.
10688         * lib/stdint.in.h (system_header): Likewise.
10689         * lib/string.in.h (system_header): Likewise.
10690         * lib/strings.in.h (system_header): Likewise.
10691         * lib/sys_file.in.h (system_header): Likewise.
10692         * lib/sys_ioctl.in.h (system_header): Likewise.
10693         * lib/sys_socket.in.h (system_header): Likewise.
10694         * lib/sys_times.in.h (system_header): Likewise.
10695         * lib/sys_utsname.in.h (system_header): Likewise.
10696         * lib/sys_wait.in.h (system_header): Likewise.
10697         * lib/sysexits.in.h (system_header): Likewise.
10698         * lib/unistd.in.h (system_header): Likewise.
10699         * lib/wctype.in.h (system_header): Likewise.
10700
10701         arpa/inet: fix mingw compilation warning
10702         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10703         Reported by Matthew Bolte.
10704
10705 2010-03-25  Bruno Haible  <bruno@clisp.org>
10706
10707         Avoid collision between gnulib wrapper and libintl wrapper.
10708         * lib/printf.c (printf): Don't define if a printf wrapper is already
10709         defined in intl/printf.c.
10710         Reported by Michel Boaventura <michel@michelboaventura.com>.
10711
10712 2010-03-25  Bruno Haible  <bruno@clisp.org>
10713
10714         Use ANSI C.
10715         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10716
10717 2010-03-25  Bruno Haible  <bruno@clisp.org>
10718
10719         Minor formatting changes.
10720         * lib/acosl.c: Insert space before function argument list.
10721         * lib/argz.c: Likewise.
10722         * lib/asinl.c: Likewise.
10723         * lib/expl.c: Likewise.
10724         * lib/gen-uni-tables.c: Likewise.
10725         * lib/gettext.h: Likewise.
10726         * lib/glthread/lock.h: Likewise.
10727         * lib/tanl.c: Likewise.
10728         * lib/uniname/uniname.c: Likewise.
10729         * tests/test-idpriv-drop.c: Likewise.
10730         * tests/test-idpriv-droptemp.c: Likewise.
10731         * tests/test-lock.c: Likewise.
10732         * tests/test-tls.c: Likewise.
10733         * lib/argp-help.c: Insert space before function-like macro argument
10734         list.
10735         * lib/memcmp.c: Likewise.
10736         * tests/test-base64.c: Likewise.
10737         * lib/localename.c: Insert space before sizeof's argument list.
10738         * lib/safe-alloc.h: Likewise.
10739         * lib/file-set.h: Insert space before macro argument list.
10740         * tests/test-argp.c: Likewise.
10741         * lib/argp-namefrob.h: Insert space before function parameter list.
10742         * lib/getaddrinfo.c: Likewise.
10743         * lib/netdb.in.h: Likewise.
10744         * lib/parse-duration.h: Likewise.
10745         * lib/parse-duration.c: Likewise.
10746         * lib/poll.c: Likewise.
10747         * lib/select.c: Likewise.
10748         * lib/trim.h: Likewise.
10749         * tests/test-usleep.c: Likewise.
10750         * lib/ldexpl.c: Insert space before function parameter list and before
10751         function argument list.
10752         * lib/logl.c: Likewise.
10753         * lib/sqrtl.c: Likewise.
10754         * lib/trim.c: Likewise.
10755         * lib/cosl.c: Use GNU style indentation. Insert space before function
10756         argument list.
10757         * lib/sinl.c: Likewise.
10758         * lib/tsearch.c: Insert space after 'for'.
10759         Reported by Jim Meyering.
10760
10761 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10762
10763         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10764         config header before grepping, as it's not present before
10765         autoreconf/configure are run.  Reported by Simon Josefsson.
10766
10767 2010-03-23  Bruno Haible  <bruno@clisp.org>
10768
10769         pt_chown: Make it work with automake < 1.11.
10770         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10771         Reported by Simon Josefsson.
10772
10773 2010-03-23  Bruno Haible  <bruno@clisp.org>
10774
10775         pt_chown: Don't depend on GPLed modules.
10776         * lib/pt_chown.c: Don't include idpriv.h.
10777         (main): Don't drop privileges.
10778         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10779         Reported by Simon Josefsson.
10780
10781 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10782
10783         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10784         suggestions from karl@freefriends.org (Karl Berry).
10785
10786 2010-03-22  Eric Blake  <eblake@redhat.com>
10787
10788         gethostname: further tweaks
10789         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10790         are overriding gethostname.
10791         Suggested by Bruno Haible.
10792
10793 2010-03-21  Bruno Haible  <bruno@clisp.org>
10794
10795         Fix comments.
10796         * lib/forkpty.c (rpl_forkpty): Fix comment.
10797         * lib/openpty.c (rpl_openpty): Likewise.
10798         Reported by Eric Blake.
10799
10800 2010-03-22  Eric Blake  <eblake@redhat.com>
10801
10802         gethostname: fix build on mingw
10803         * lib/unistd.in.h (includes): Work around fact that mingw
10804         <winsock2.h> re-includes <unistd.h>, by avoiding any
10805         redeclarations if we are being included by <winsock2.h>.
10806         Reported by Matthias Bolte.
10807
10808 2010-03-21  Bruno Haible  <bruno@clisp.org>
10809
10810         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10811         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10812         modifications.
10813         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10814         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10815         provide the replacement.
10816         * modules/forkpty (Depends-on): Add openpty, login_tty.
10817         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10818         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10819         * doc/glibc-functions/forkpty.texi: More supported platforms.
10820         * config/srclist.txt: Add forkpty.c (commented).
10821
10822 2010-03-21  Bruno Haible  <bruno@clisp.org>
10823
10824         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10825         (Makefile.am): Verify that PTY_LIB is defined.
10826
10827         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10828
10829 2010-03-21  Bruno Haible  <bruno@clisp.org>
10830
10831         Tests for module 'login_tty'.
10832         * modules/login_tty-tests: New file.
10833         * tests/test-login_tty.c: New file.
10834
10835         New module 'login_tty'.
10836         * lib/login_tty.c: New file.
10837         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10838         * modules/login_tty: New file.
10839         * doc/glibc-functions/login_tty.texi: Mention the new module.
10840
10841 2010-03-21  Bruno Haible  <bruno@clisp.org>
10842
10843         login_tty: Documentation.
10844         * doc/glibc-functions/login_tty.texi: New file.
10845         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10846
10847 2010-03-21  Bruno Haible  <bruno@clisp.org>
10848
10849         pty: Consistent macro naming.
10850         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10851         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10852         * modules/pty (configure.ac): Update.
10853
10854 2010-03-21  Bruno Haible  <bruno@clisp.org>
10855
10856         Tests for openpty: Make stricter.
10857         * tests/test-openpty.c (main): Add test of canonical processing and
10858         erase.
10859         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10860
10861         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10862         * lib/openpty.c (openpty): New replacement function.
10863         * lib/pty.in.h: Include <termios.h>.
10864         (openpty): Update declaration. Add comments.
10865         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10866         is not declared, arrange to provide the replacement. Check for _getpty
10867         and posix_openpt.
10868         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10869         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10870         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10871         * modules/pty-tests (test_pty_c___LDADD): New variable.
10872         * doc/glibc-functions/openpty.texi: More supported platforms.
10873
10874 2010-03-21  Bruno Haible  <bruno@clisp.org>
10875
10876         setenv: Tweaks.
10877         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10878         the test program.
10879         * doc/posix-functions/setenv.texi: Update platforms list.
10880
10881 2010-03-21  Bruno Haible  <bruno@clisp.org>
10882
10883         New module 'unlockpt'.
10884         * lib/unlockpt.c: New file, from glibc with modifications.
10885         * m4/unlockpt.m4: New file.
10886         * modules/unlockpt: New file.
10887         * lib/stdlib.in.h (unlockpt): New declaration.
10888         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10889         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10890         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10891         HAVE_UNLOCKPT.
10892         * doc/posix-functions/unlockpt.texi: Mention the new module.
10893         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10894         * config/srclist.txt: Add unlockpt.c (commented).
10895
10896 2010-03-21  Jim Meyering  <meyering@redhat.com>
10897
10898         maint.mk: prohibit inclusion of "intprops.h" without use
10899         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10900
10901 2010-03-21  Bruno Haible  <bruno@clisp.org>
10902
10903         New module 'grantpt'.
10904         * lib/grantpt.c: New file, from glibc with modifications.
10905         * m4/grantpt.m4: New file.
10906         * modules/grantpt: New file.
10907         * lib/stdlib.in.h (grantpt): New declaration.
10908         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10909         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10910         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10911         HAVE_GRANTPT.
10912         * doc/posix-functions/grantpt.texi: Mention the new module.
10913         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10914         * config/srclist.txt: Add grantpt.c (commented).
10915
10916 2010-03-21  Bruno Haible  <bruno@clisp.org>
10917
10918         New module 'pt_chown'.
10919         * lib/pt_chown.c: New file, from glibc with modifications.
10920         * lib/pty-private.h: New file, from glibc with modifications.
10921         * modules/pt_chown: New file.
10922         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10923
10924 2010-03-21  Bruno Haible  <bruno@clisp.org>
10925
10926         Tests for module 'ptsname'.
10927         * modules/ptsname-tests: New file.
10928         * tests/test-ptsname.c: New file.
10929
10930         New module 'ptsname'.
10931         * lib/ptsname.c: New file, from glibc with modifications.
10932         * m4/ptsname.m4: New file.
10933         * modules/ptsname: New file.
10934         * lib/stdlib.in.h (ptsname): New declaration.
10935         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10936         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10937         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10938         HAVE_PTSNAME.
10939         * doc/posix-functions/ptsname.texi: Mention the new module.
10940         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10941         * config/srclist.txt: Add ptsname.c (commented).
10942
10943 2010-03-21  Bruno Haible  <bruno@clisp.org>
10944
10945         Tests for module 'ttyname_r'.
10946         * modules/ttyname_r-tests: New file.
10947         * tests/test-ttyname_r.c: New file.
10948
10949         New module 'ttyname_r'.
10950         * lib/ttyname_r.c: New file.
10951         * m4/ttyname_r.m4: New file.
10952         * modules/ttyname_r: New file.
10953         * lib/unistd.in.h (ttyname_r): New declaration.
10954         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10955         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10956         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10957         HAVE_TTYNAME_R.
10958         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10959         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10960
10961 2010-03-20  Bruno Haible  <bruno@clisp.org>
10962
10963         signal: Undefine macro definitions in C++ mode.
10964         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10965         sigfillset): Undefine macro definitions from the system header in C++
10966         mode.
10967         Reported by John W. Eaton <jwe@gnu.org>.
10968
10969 2010-03-20  Bruno Haible  <bruno@clisp.org>
10970
10971         Ensure no #include statements inside extern "C" { ... }.
10972         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10973         contain #include statements.
10974         * lib/time.in.h: Likewise.
10975
10976 2010-03-20  Bruno Haible  <bruno@clisp.org>
10977
10978         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10979         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10980         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10981         Reported by John W. Eaton <jwe@gnu.org>.
10982
10983 2010-03-20  Bruno Haible  <bruno@clisp.org>
10984
10985         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10986         Reported by Jim Meyering.
10987
10988 2010-03-20  Bruno Haible  <bruno@clisp.org>
10989
10990         pipe: Set errno upon failure.
10991         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10992         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10993         errno value in error message.
10994
10995 2010-03-20  Bruno Haible  <bruno@clisp.org>
10996             Jim Meyering  <meyering@redhat.com>
10997
10998         lchown: Avoid "unused variable" warning.
10999         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
11000
11001 2010-03-20  Bruno Haible  <bruno@clisp.org>
11002
11003         Work around unlink() bug on MacOS X 10.5.6.
11004         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
11005         attempting to unlink a parent directory.
11006         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
11007         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
11008         activate for the replacement function.
11009         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
11010
11011 2010-03-20  Bruno Haible  <bruno@clisp.org>
11012
11013         Fix link errors on Solaris 8.
11014         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
11015         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
11016
11017 2010-03-19  Jim Meyering  <meyering@redhat.com>
11018
11019         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
11020         The _LIBC implementation of build_range_exp correctly honors the
11021         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
11022         However, the non-_LIBC implementation would ignore that syntax-bit
11023         flag and return REG_ERANGE unconditionally.
11024         This change makes it honor that flag.
11025         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11026         Make two pointer parameters "const".
11027         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
11028         (parse_bracket_exp): Update caller.
11029
11030         regex.m4: correct the reversed range endpoint ([b-a]) test
11031         * m4/regex.m4: When requiring that [b-a] evoke failure,
11032         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
11033         test pass once again for x86-based systems.
11034
11035 2010-03-19  Bruno Haible  <bruno@clisp.org>
11036
11037         scandir: Fix link error on Solaris 8.
11038         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
11039         macros.
11040
11041 2010-03-19  Bruno Haible  <bruno@clisp.org>
11042
11043         getusershell: Fix documentation.
11044         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
11045         module.
11046         * doc/glibc-functions/setusershell.texi: Likewise.
11047
11048         getusershell: Provide declaration, missing on Solaris 9.
11049         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
11050         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
11051         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
11052         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
11053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11054         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
11055         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
11056         HAVE_GETUSERSHELL.
11057         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
11058
11059 2010-03-19  Bruno Haible  <bruno@clisp.org>
11060
11061         wctype: Provide iswblank function.
11062         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
11063         exists and is fine.
11064         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
11065         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
11066         * tests/test-wctype.c (main): Re-enable the iswblank tests.
11067         * doc/posix-functions/iswblank.texi: Update.
11068
11069 2010-03-19  Bruno Haible  <bruno@clisp.org>
11070
11071         Tests of module 'pty' in C++ mode.
11072         * modules/pty-tests: New file.
11073         * tests/test-pty-c++.cc: New file.
11074         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11075
11076 2010-03-19  Eric Blake  <eblake@redhat.com>
11077
11078         logb: fix documentation
11079         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11080         1.5 declaration bug.
11081
11082         forkpty, openpty: prefer glibc's const-safe prototype
11083         * lib/forkpty.c (rpl_forkpty): New file.
11084         * lib/openpty.c (rpl_openpty): Likewise.
11085         * modules/forkpty (Files): Distribute it.
11086         * modules/openpty (Files): Likewise.
11087         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11088         check...
11089         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11090         replacement for for non-const BSD signature.
11091         * modules/pty (Makefile.am): Substitute witnesses.
11092         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11093         * tests/test-forkpty.c: Update signature check.
11094         * tests/test-openpty.c: Likewise.
11095         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11096         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11097
11098         forkpty, openpty: split functions into new modules
11099         * modules/pty (Makefile.am): Substitute new witnesses.
11100         (Libraries): Move library detection...
11101         * modules/forkpty: ...into new module.
11102         * modules/openpty: Another new module.
11103         * modules/pty-tests: Rename and split...
11104         * modules/forkpty-tests: ...to this...
11105         * modules/openpty-tests: ...and this.
11106         * tests/test-pty.c: Rename and split...
11107         * tests/test-forkpty.c: ...to this...
11108         * tests/test-openpty.c: ...and this.
11109         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11110         (gl_PTY): Split library searching...
11111         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11112         (gl_FORKPTY, gl_OPENPTY): New macros.
11113         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11114         * NEWS: Mention the split.
11115         * MODULES.html.sh (Misc): Document the modules.
11116         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11117         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11118
11119         pty: improve replacement header
11120         * lib/pty.in.h: New file.
11121         * modules/pty (Files): Ship it.
11122         (Makefile.am): Always build replacement.
11123         * m4/pty.m4: Rename...
11124         * m4/pty_h.m4: ...to this.
11125         (gl_PTY): Modernize setting of witness macros; update check of
11126         forkpty to take proper advantage of cache.
11127         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11128
11129         getopt: avoid compiler warning
11130         * lib/getopt.c (attribute_hidden): Remove unused macro.
11131
11132 2010-03-18  Bruno Haible  <bruno@clisp.org>
11133
11134         Fix link errors on Solaris 8.
11135         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
11136         * modules/search-tests (test_search_c___LDADD): Likewise.
11137         * modules/signal-tests (test_signal_c___LDADD): Likewise.
11138         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
11139         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
11140         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
11141         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
11142         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
11143         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
11144
11145 2010-03-18  Bruno Haible  <bruno@clisp.org>
11146
11147         Fix bug introduced on 2010-03-14.
11148         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
11149         (gl_SPAWN_H): Require it.
11150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
11151         Reported by Simon Josefsson.
11152
11153 2010-03-18  Bruno Haible  <bruno@clisp.org>
11154
11155         Fix typo introduced on 2009-12-31.
11156         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
11157         posix_spawn_file_actions_adddup2.
11158
11159 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
11160         and Eric Blake  <eblake@redhat.com>
11161
11162         test-vc-list-files-git: make more robust
11163         * tests/test-vc-list-files-git.sh: Unset problematic environment
11164         variables.  Chain commands together.
11165
11166 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
11167
11168         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11169         `AC_CHECK_DECL' invocation.
11170
11171 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
11172
11173         * lib/inttostr.c (inttostr): Make sure the invocation of verify
11174         appears before executable statements. Suggested by Petr Sumbera
11175         <Petr.Sumbera@Sun.COM>.
11176
11177 2010-03-14  Bruno Haible  <bruno@clisp.org>
11178
11179         * tests/test-flock.c (test_exclusive): Comment out a test that causes
11180         portability problems. Instead use a simpler test.
11181         (main): Check that invalid arguments are rejected only on Linux.
11182
11183 2010-03-14  Bruno Haible  <bruno@clisp.org>
11184
11185         Fix bug introduced on 2009-12-31.
11186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11187         gl_PREREQ_SYS_H_WINSOCK2 always.
11188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
11189         SYS_SOCKET_H variable.
11190         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
11191         Update comments.
11192         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
11193         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11194         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11195         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11196         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11197
11198 2010-03-14  Bruno Haible  <bruno@clisp.org>
11199
11200         Fix values returned by sinl, cosl.
11201         * lib/trigl.h: Add specification comments.
11202         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
11203         that combines the values from the precomputed table with the values of
11204         the Chebyshev polynomials.
11205
11206 2010-03-14  Bruno Haible  <bruno@clisp.org>
11207
11208         Fix compilation error when modules 'posix_spawn[p]' are not used.
11209         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
11210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
11211
11212 2010-03-14  Bruno Haible  <bruno@clisp.org>
11213
11214         Fix compilation error on mingw when module 'time_r' is not used.
11215         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
11216         is 1.
11217         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
11218         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11219         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
11220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
11221
11222 2010-03-14  Bruno Haible  <bruno@clisp.org>
11223
11224         Fix compilation error with Sun C.
11225         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
11226         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
11227         instead of GCC specific ULONG_LONG_MAX.
11228         * lib/xstrtoll.c: Likewise.
11229         * lib/xstrtoull.c: Likewise.
11230
11231 2010-03-13  Bruno Haible  <bruno@clisp.org>
11232
11233         Allow the user to disable C++ code and tests.
11234         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
11235         (gl_PROG_ANSI_CXX): Require it.
11236
11237 2010-03-13  Bruno Haible  <bruno@clisp.org>
11238
11239         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
11240         cases.
11241
11242 2010-03-13  Bruno Haible  <bruno@clisp.org>
11243
11244         Test that gnulib does not break the standard C++ headers.
11245         * tests/test-locale-c++2.cc: New file.
11246         * modules/locale-tests (Files): Add it.
11247         (Makefile.am): Compile it for test-locale-c++.
11248         * tests/test-math-c++2.cc: New file.
11249         * modules/math-tests (Files): Add it.
11250         (Makefile.am): Compile it for test-math-c++.
11251         * tests/test-signal-c++2.cc: New file.
11252         * modules/signal-tests (Files): Add it.
11253         (Makefile.am): Compile it for test-signal-c++.
11254         * tests/test-stdio-c++2.cc: New file.
11255         * modules/stdio-tests (Files): Add it.
11256         (Makefile.am): Compile it for test-stdio-c++.
11257         * tests/test-stdlib-c++2.cc: New file.
11258         * modules/stdlib-tests (Files): Add it.
11259         (Makefile.am): Compile it for test-stdlib-c++.
11260         * tests/test-string-c++2.cc: New file.
11261         * modules/string-tests (Files): Add it.
11262         (Makefile.am): Compile it for test-string-c++.
11263         * tests/test-time-c++2.cc: New file.
11264         * modules/time-tests (Files): Add it.
11265         (Makefile.am): Compile it for test-time-c++.
11266         Reported by John W. Eaton <jwe@gnu.org>.
11267
11268 2010-03-13  Bruno Haible  <bruno@clisp.org>
11269
11270         * gnulib-tool (func_usage): Clarify which options are available for
11271         --create-testdir and --create-megatestdir.
11272
11273 2010-03-13  Bruno Haible  <bruno@clisp.org>
11274
11275         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11276         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11277         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11278         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11279         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11280         when appropriate.
11281         Reported by Jim Meyering.
11282
11283 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11284
11285         * gnulib-tool (func_import): Explain origin of code.
11286
11287 2010-03-12  Bruno Haible  <bruno@clisp.org>
11288
11289         Fix problem with automake's definition of CXXLINK.
11290         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11291         Reported by Simon Josefsson and Ludovic Courtès.
11292
11293 2010-03-12  Bruno Haible  <bruno@clisp.org>
11294
11295         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11296         stable releases.
11297
11298 2010-03-11  Bruno Haible  <bruno@clisp.org>
11299
11300         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11301         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11302         whether the system provides one variant or multiple variants of the
11303         function.
11304         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11305         C++ compilers.
11306         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11307         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11308         Reported by Jim Meyering.
11309
11310 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11311
11312         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11313
11314 2010-03-08  Bruno Haible  <bruno@clisp.org>
11315
11316         gnulib-tool: Add support for --libtool in --create-testdir.
11317         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11318         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11319
11320 2010-03-08  Eric Blake  <eblake@redhat.com>
11321
11322         gnulib-tool.texi: mention possibility of git submodule
11323         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11324         submodules.
11325         * doc/.gitignore: Ignore another generated file.
11326
11327 2010-03-08  Karl Berry  <karl@gnu.org>
11328
11329         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11330         of committing gnulib files while skipping others.
11331
11332 2010-03-07  Bruno Haible  <bruno@clisp.org>
11333
11334         Tests of module 'wctype' in C++ mode.
11335         * tests/test-wctype-c++.cc: New file.
11336         * modules/wctype-tests (Files): Add it and tests/signature.h.
11337         (Depends-on): Add ansi-c++-opt.
11338         (Makefile.am): Arrange to compile and run test-wctype-c++.
11339
11340         Tests of module 'wchar' in C++ mode.
11341         * tests/test-wchar-c++.cc: New file.
11342         * modules/wchar-tests (Files): Add it and tests/signature.h.
11343         (Depends-on): Add ansi-c++-opt.
11344         (Makefile.am): Arrange to compile and run test-wchar-c++.
11345         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11346         gl_MODULE_INDICATOR.
11347
11348         Tests of module 'unistd' in C++ mode.
11349         * tests/test-unistd-c++.cc: New file.
11350         * modules/unistd-tests (Files): Add it and tests/signature.h.
11351         (Depends-on): Add ansi-c++-opt.
11352         (Makefile.am): Arrange to compile and run test-unistd-c++.
11353         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11354         gl_MODULE_INDICATOR.
11355
11356         Tests of module 'time' in C++ mode.
11357         * tests/test-time-c++.cc: New file.
11358         * modules/time-tests (Files): Add it and tests/signature.h.
11359         (Depends-on): Add ansi-c++-opt.
11360         (Makefile.am): Arrange to compile and run test-time-c++.
11361         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11362
11363         Tests of module 'sys_time' in C++ mode.
11364         * tests/test-sys_time-c++.cc: New file.
11365         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11366         (Depends-on): Add ansi-c++-opt.
11367         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11368         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11369         gl_MODULE_INDICATOR.
11370
11371         Tests of module 'sys_stat' in C++ mode.
11372         * tests/test-sys_stat-c++.cc: New file.
11373         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11374         (Depends-on): Add ansi-c++-opt.
11375         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11376         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11377         gl_MODULE_INDICATOR.
11378
11379         Tests of module 'sys_socket' in C++ mode.
11380         * tests/test-sys_socket-c++.cc: New file.
11381         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11382         (Depends-on): Add ansi-c++-opt.
11383         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11385         gl_MODULE_INDICATOR.
11386
11387         Tests of module 'sys_select' in C++ mode.
11388         * tests/test-sys_select-c++.cc: New file.
11389         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11390         (Depends-on): Add ansi-c++-opt.
11391         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11392         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11393         gl_MODULE_INDICATOR.
11394
11395         Tests of module 'sys_ioctl' in C++ mode.
11396         * tests/test-sys_ioctl-c++.cc: New file.
11397         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11398         (Depends-on): Add ansi-c++-opt.
11399         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11400         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11401         gl_MODULE_INDICATOR.
11402
11403         Tests of module 'string' in C++ mode.
11404         * tests/test-string-c++.cc: New file.
11405         * modules/string-tests (Files): Add it and tests/signature.h.
11406         (Depends-on): Add ansi-c++-opt.
11407         (Makefile.am): Arrange to compile and run test-string-c++.
11408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11409         gl_MODULE_INDICATOR.
11410
11411         Tests of module 'stdlib' in C++ mode.
11412         * tests/test-stdlib-c++.cc: New file.
11413         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11414         (Depends-on): Add ansi-c++-opt.
11415         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11416         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11417         gl_MODULE_INDICATOR.
11418
11419         Tests of module 'stdio' in C++ mode.
11420         * tests/test-stdio-c++.cc: New file.
11421         * modules/stdio-tests (Files): Add it and tests/signature.h.
11422         (Depends-on): Add ansi-c++-opt.
11423         (Makefile.am): Arrange to compile and run test-stdio-c++.
11424         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11425         gl_MODULE_INDICATOR.
11426
11427         Tests of module 'spawn' in C++ mode.
11428         * tests/test-spawn-c++.cc: New file.
11429         * modules/spawn-tests (Files): Add it and tests/signature.h.
11430         (Depends-on): Add ansi-c++-opt.
11431         (Makefile.am): Arrange to compile and run test-spawn-c++.
11432         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11433         gl_MODULE_INDICATOR.
11434
11435         Tests of module 'signal' in C++ mode.
11436         * tests/test-signal-c++.cc: New file.
11437         * modules/signal-tests (Files): Add it and tests/signature.h.
11438         (Depends-on): Add ansi-c++-opt.
11439         (Makefile.am): Arrange to compile and run test-signal-c++.
11440         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11441         gl_MODULE_INDICATOR.
11442
11443         Tests of module 'search' in C++ mode.
11444         * tests/test-search-c++.cc: New file.
11445         * modules/search-tests (Files): Add it and tests/signature.h.
11446         (Depends-on): Add ansi-c++-opt.
11447         (Makefile.am): Arrange to compile and run test-search-c++.
11448         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11449         gl_MODULE_INDICATOR.
11450
11451         Tests of module 'math' in C++ mode.
11452         * tests/test-math-c++.cc: New file.
11453         * modules/math-tests (Files): Add it and tests/signature.h.
11454         (Depends-on): Add ansi-c++-opt.
11455         (Makefile.am): Arrange to compile and run test-math-c++.
11456         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11457
11458         Tests of module 'locale' in C++ mode.
11459         * tests/test-locale-c++.cc: New file.
11460         * modules/locale-tests (Files): Add it and tests/signature.h.
11461         (Depends-on): Add ansi-c++-opt.
11462         (Makefile.am): Arrange to compile and run test-locale-c++.
11463         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11464         gl_MODULE_INDICATOR.
11465
11466         Tests of module 'langinfo' in C++ mode.
11467         * tests/test-langinfo-c++.cc: New file.
11468         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11469         (Depends-on): Add ansi-c++-opt.
11470         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11471         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11472         gl_MODULE_INDICATOR.
11473
11474         Tests of module 'iconv-h' in C++ mode.
11475         * tests/test-iconv-h-c++.cc: New file.
11476         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11477         (Depends-on): Add ansi-c++-opt.
11478         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11479
11480         Tests of module 'glob' in C++ mode.
11481         * tests/test-glob-c++.cc: New file.
11482         * modules/glob-tests (Files): Add it.
11483         (Depends-on): Add ansi-c++-opt.
11484         (Makefile.am): Arrange to compile and run test-glob-c++.
11485
11486         Tests of module 'fcntl-h' in C++ mode.
11487         * tests/test-fcntl-h-c++.cc: New file.
11488         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11489         (Depends-on): Add ansi-c++-opt.
11490         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11491         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11492         gl_MODULE_INDICATOR.
11493
11494         Tests of module 'dirent' in C++ mode.
11495         * tests/test-dirent-c++.cc: New file.
11496         * modules/dirent-tests (Files): Add it and tests/signature.h.
11497         (Depends-on): Add ansi-c++-opt.
11498         (Makefile.am): Arrange to compile and run test-dirent-c++.
11499         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11500         gl_MODULE_INDICATOR.
11501
11502         New module 'ansi-c++-opt'.
11503         * modules/ansi-c++-opt: New file.
11504         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11505
11506         Document C++ namespace mode.
11507         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11508
11509         wctype: Avoid #define replacements in C++ mode.
11510         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11511         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11512         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11513         In C++, define a namespaced alias symbol.
11514         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11515         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11516         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11517         rule.
11518
11519         wchar: Avoid #define replacements in C++ mode.
11520         * lib/wchar.in.h: Include c++defs.h.
11521         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11522         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11523         symbol.
11524         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11525         * modules/wchar (Depends-on): Add c++defs.
11526         (Makefile.am): Update wchar.h rule.
11527
11528         unistd: Avoid #define replacements in C++ mode.
11529         * lib/unistd.in.h: Include c++defs.h.
11530         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11531         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11532         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11533         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11534         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11535         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11536         symbol.
11537         (environ): Update.
11538         * modules/unistd (Depends-on): Add c++defs.
11539         (Makefile.am): Update unistd.h rule.
11540
11541         time: Avoid #define replacements in C++ mode.
11542         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11543         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11544         define a namespaced alias symbol.
11545         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11546         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11547         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11548         * modules/time (Depends-on): Add c++defs, warn-on-use.
11549         (Makefile.am): Update time.h rule.
11550         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11551         * modules/nanosleep (configure.ac): Likewise.
11552         * modules/strptime (configure.ac): Likewise.
11553         * modules/timegm (configure.ac): Likewise.
11554
11555         sys_time: Avoid #define replacements in C++ mode.
11556         * lib/sys_time.in.h: Include c++defs.h.
11557         (gettimeofday): In C++, define a namespaced alias symbol.
11558         * modules/sys_time (Depends-on): Add c++defs.
11559         (Makefile.am): Update sys/time.h rule.
11560
11561         sys_stat: Avoid #define replacements in C++ mode.
11562         * lib/sys_stat.in.h: Include c++defs.h.
11563         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11564         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11565         namespaced alias symbol.
11566         In C++, define a namespaced alias symbol.
11567         * modules/sys_stat (Depends-on): Add c++defs.
11568         (Makefile.am): Update sys/stat.h rule.
11569
11570         sys_socket: Avoid #define replacements in C++ mode.
11571         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11572         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11573         definitions also when the system has a <sys/socket.h>.
11574         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11575         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11576         In C++, define a namespaced alias symbol.
11577         * modules/sys_socket (Depends-on): Add c++defs.
11578         (Makefile.am): Update sys/socket.h rule.
11579
11580         sys_select: Avoid #define replacements in C++ mode.
11581         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11582         definitions also when the system has a <sys/select.h>.
11583         (select): In C++, define a namespaced alias symbol.
11584         * modules/sys_select (Depends-on): Add c++defs.
11585         (Makefile.am): Update sys/select.h rule.
11586
11587         sys_ioctl: Avoid #define replacements in C++ mode.
11588         * lib/sys_ioctl.in.h: Include c++defs.h.
11589         (ioctl): In C++, define a namespaced alias symbol.
11590         * modules/sys_ioctl (Depends-on): Add c++defs.
11591         (Makefile.am): Update sys/ioctl.h rule.
11592
11593         string: Avoid #define replacements in C++ mode.
11594         * lib/string.in.h: Include c++defs.h.
11595         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11596         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11597         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11598         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11599         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11600         * modules/string (Depends-on): Add c++defs.
11601         (Makefile.am): Update string.h rule.
11602
11603         stdlib: Avoid #define replacements in C++ mode.
11604         * lib/stdlib.in.h: Include c++defs.h.
11605         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11606         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11607         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11608         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11609         symbol.
11610         * modules/stdlib (Depends-on): Add c++defs.
11611         (Makefile.am): Update stdlib.h rule.
11612
11613         stdio: Avoid #define replacements in C++ mode.
11614         * lib/stdio.in.h: Include c++defs.h.
11615         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11616         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11617         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11618         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11619         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11620         namespaced alias symbol.
11621         * modules/stdio (Depends-on): Add c++defs.
11622         (Makefile.am): Update stdio.h rule.
11623
11624         spawn: Avoid #define replacements in C++ mode.
11625         * lib/spawn.in.h: Include c++defs.h.
11626         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11627         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11628         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11629         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11630         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11631         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11632         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11633         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11634         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11635         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11636         In C++, define a namespaced alias symbol.
11637         * modules/spawn (Depends-on): Add c++defs.
11638         (Makefile.am): Update spawn.h rule.
11639
11640         signal: Avoid #define replacements in C++ mode.
11641         * lib/signal.in.h: Include c++defs.h.
11642         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11643         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11644         namespaced alias symbol.
11645         * modules/signal (Depends-on): Add c++defs.
11646         (Makefile.am): Update signal.h rule.
11647
11648         search: Avoid #define replacements in C++ mode.
11649         * lib/search.in.h: Include c++defs.h.
11650         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11651         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11652         symbol.
11653         * modules/search (Depends-on): Add c++defs.
11654         (Makefile.am): Update search.h rule.
11655
11656         math: Avoid #define replacements in C++ mode.
11657         * lib/math.in.h: Include c++defs.h.
11658         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11659         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11660         trunc, truncl): In C++, define a namespaced alias symbol.
11661         * modules/math (Depends-on): Add c++defs.
11662         (Makefile.am): Update math.h rule.
11663
11664         locale: Avoid #define replacements in C++ mode.
11665         * lib/locale.in.h: Include c++defs.h.
11666         (duplocale): In C++, define a namespaced alias symbol.
11667         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11668         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11669         * modules/locale (Depends-on): Add c++defs.
11670         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11671
11672         langinfo: Avoid #define replacements in C++ mode.
11673         * lib/langinfo.in.h: Include c++defs.h.
11674         (nl_langinfo): In C++, define a namespaced alias symbol.
11675         * modules/langinfo (Depends-on): Add c++defs.
11676         (Makefile.am): Update langinfo.h rule.
11677
11678         iconv-h: Avoid #define replacements in C++ mode.
11679         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11680         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11681         symbol.
11682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11683         whenever iconv is present.
11684         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11685         (Makefile.am): Update iconv.h rule.
11686
11687         glob: Avoid #define replacements in C++ mode.
11688         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11689         (_gl_glob_errfunc_fn): New type.
11690         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11691         symbol.
11692         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11693         (Makefile.am): Update glob.h rule.
11694
11695         fcntl-h: Avoid #define replacements in C++ mode.
11696         * lib/fcntl.in.h: Include c++defs.h.
11697         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11698         * modules/fcntl-h (Depends-on): Add c++defs.
11699         (Makefile.am): Update fcntl.h rule.
11700
11701         dirent: Avoid #define replacements in C++ mode.
11702         * lib/dirent.in.h: Include c++defs.h.
11703         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11704         namespaced alias symbol.
11705         (dirfd): Update declaration.
11706         * modules/dirent (Depends-on): Add c++defs.
11707         (Makefile.am): Update dirent.h rule.
11708
11709         ctype: Make it usable in C++ code.
11710         * lib/ctype.in.h: Include c++defs.h.
11711         (isblank): Declare as extern "C".
11712         * modules/ctype (Depends-on): Add c++defs.
11713         (Makefile.am): Update ctype.h rule.
11714
11715         New module 'c++defs'.
11716         * modules/c++defs: New file.
11717         * build-aux/c++defs.h: New file.
11718         Reported by John W. Eaton <jwe@gnu.org>.
11719
11720 2010-03-07  Bruno Haible  <bruno@clisp.org>
11721
11722         logb: Provide missing declaration for Cygwin.
11723         * lib/math.in.h (logb): New declaration.
11724         * m4/logb.m4: New file.
11725         * modules/logb (Files): Add m4/logb.m4.
11726         (Depends-on): Add math.
11727         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11728         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11730         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11731         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11732
11733 2010-03-07  Bruno Haible  <bruno@clisp.org>
11734
11735         Fix test-cond link error.
11736         * tests/test-cond.c: Include <stdio.h>.
11737
11738 2010-03-07  Bruno Haible  <bruno@clisp.org>
11739
11740         Fix test-dirent-safer link error.
11741         * modules/dirent-safer-tests (Makefile.am): Define
11742         test_dirent_safer_LDADD.
11743
11744 2010-03-07  Bruno Haible  <bruno@clisp.org>
11745
11746         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11747         among default module list.
11748
11749 2010-03-07  Bruno Haible  <bruno@clisp.org>
11750
11751         Fix link error on platforms with GNU libiconv.
11752         * modules/unistr/u8-strcoll-tests (Makefile): Define
11753         test_u8_strcoll_LDADD.
11754         * modules/unistr/u16-strcoll-tests (Makefile): Define
11755         test_u16_strcoll_LDADD.
11756         * modules/unistr/u32-strcoll-tests (Makefile): Define
11757         test_u32_strcoll_LDADD.
11758
11759 2010-03-07  Bruno Haible  <bruno@clisp.org>
11760
11761         Use POSIX declarations for socket functions.
11762         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11763         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11764         rpl_sendto): Change declaration to match POSIX.
11765         * lib/connect.c (rpl_connect): Likewise.
11766         * lib/accept.c (rpl_accept): Likewise.
11767         * lib/bind.c (rpl_bind): Likewise.
11768         * lib/getpeername.c (rpl_getpeername): Likewise.
11769         * lib/getsockname.c (rpl_getsockname): Likewise.
11770         * lib/recv.c (rpl_recv): Likewise.
11771         * lib/send.c (rpl_send): Likewise.
11772         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11773         * lib/sendto.c (rpl_sendto): Likewise.
11774
11775 2010-03-06  Bruno Haible  <bruno@clisp.org>
11776
11777         Clarify access, euidaccess, faccessat.
11778         * doc/posix-functions/faccessat.texi: Mention security problem under
11779         "Other problems", not "Portability problems".
11780         * doc/posix-functions/access.texi: Likewise. Mention a related security
11781         problem.
11782         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11783         * lib/euidaccess.c: Add comments about platforms.
11784         * lib/unistd.in.h (access, euidaccess): Add warnings.
11785
11786 2010-03-07  Bruno Haible  <bruno@clisp.org>
11787
11788         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11789         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11790         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11791         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11792         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11793         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11794         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11795         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11796         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11797         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11798         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11799         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11800         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11801         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11802         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11803         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11804         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11805         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11806         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11807         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11808         Likewise.
11809         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11810         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11811         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11812         Likewise.
11813         * tests/test-spawn.c (main): Make it work when
11814         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11815
11816 2010-03-07  Bruno Haible  <bruno@clisp.org>
11817
11818         Fix incorrect Makefile.am generation in German locale.
11819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11820         Execute sed command with character range in C locale.
11821
11822 2010-03-06  Bruno Haible  <bruno@clisp.org>
11823
11824         Tests for module 'iconv-h'.
11825         * modules/iconv-h-tests: New file.
11826         * tests/test-iconv-h.c: New file.
11827
11828         New module 'iconv-h'.
11829         * modules/iconv-h: New file.
11830         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11831         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11832         (configure.ac): Remove gl_ICONV_H.
11833         (Makefile.am): Remove rule for iconv.h.
11834
11835 2010-03-06  Bruno Haible  <bruno@clisp.org>
11836
11837         More consistent naming of *.m4 files.
11838         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11839         * modules/wctype (Files): Update.
11840
11841         More consistent naming of *.m4 files.
11842         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11843         * modules/wchar (Files): Update.
11844
11845 2010-03-06  Jim Meyering  <meyering@redhat.com>
11846
11847         euidaccess: relax license to LGPLv2+
11848         * modules/euidaccess (License): Relax to LGPLv2+.
11849
11850 2010-03-06  Bruno Haible  <bruno@clisp.org>
11851
11852         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11853         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11854         (Makefile.am): Augment lib_SOURCES instead.
11855
11856 2010-03-04  Jim Meyering  <meyering@redhat.com>
11857
11858         utime: remove obsolete module
11859         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11860         unnecessary for years, and has been marked as obsolete for 10 months.
11861         * modules/utime: Remove file.
11862         * lib/utime.c: Remove file.
11863         * m4/utime.m4: Remove file.
11864         * m4/utimes-null.m4: Remove file.
11865         * doc/posix-functions/utime.texi (utime): Remove reference to
11866         the module.  Move the sole "fixed by gnulib" item into the
11867         "problems not fixed by Gnulib" list.
11868         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11869
11870 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11871
11872         * modules/exit (License): Relax license to LGPLv2+.
11873         (Status): Mark as obsolete.
11874         * NEWS: Mention deprecated 'exit' module.
11875         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11876         of now obsolete 'exit'.
11877
11878 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11879
11880         fts-lgpl: remove unused module
11881         * modules/fts-lgpl: Remove.
11882         * MODULES.html.sh (func_all_modules): Adjust.
11883         * check-module (find_included_lib_files): Adjust.
11884         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11885
11886 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11887
11888         copy-acl: enhance Solaris ACL error handling
11889         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11890         * lib/set-mode-acl.c (qset_acl): Likewise.
11891
11892 2010-03-02  Bruno Haible  <bruno@clisp.org>
11893
11894         spawn: Don't override the system defined values on FreeBSD 8.
11895         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11896         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11897         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11898         if HAVE_POSIX_SPAWN is 1.
11899         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11900
11901 2010-03-01  Bruno Haible  <bruno@clisp.org>
11902
11903         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11904         regarding Automake.
11905
11906 2010-02-25  Bruno Haible  <bruno@clisp.org>
11907
11908         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11909         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11910         setting, not afterwards.
11911         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11912
11913 2010-02-24  Eric Blake  <eblake@redhat.com>
11914
11915         bootstrap, git-version-gen: use timestamp
11916         * build-aux/git-version-gen (scriptversion): Force UTC.
11917         * build-aux/bootstrap (scriptversion): New variable.
11918
11919         bootstrap: allow older git
11920         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11921         older than 1.6.4.  Requested by the libvirt project.
11922
11923 2010-02-23  Eric Blake  <eblake@redhat.com>
11924
11925         warn-on-use: work with old autoconf
11926         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11927         AS_VAR semantics of autoconf 2.60.
11928         Reported by Bruno Haible.
11929
11930         bootstrap: improve some comments
11931         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11932         clarification comments.
11933
11934         gettimeofday: provide correct function
11935         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11936         when replacement is declared, otherwise provide gettimeofday.
11937         Reported by Michael Goffioul.
11938
11939 2010-02-23  Jim Meyering  <meyering@redhat.com>
11940
11941         lib-ignore: relax license to "unlimited", not LGPLv2+
11942         * modules/lib-ignore (License): Relax to "unlimited".
11943
11944 2010-02-23  Jim Meyering  <meyering@redhat.com>
11945
11946         lib-ignore: relax license to LGPLv2+
11947         * modules/lib-ignore (License): Relax to LGPLv2+.
11948
11949 2010-02-22  Eric Blake  <eblake@redhat.com>
11950
11951         lseek: avoid bash 3.2 broken pipe bug
11952         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11953         warning from bash 3.2.
11954         Reported by Ben Pfaff, with analysis from Bruno Haible.
11955
11956         bootstrap: support non-FSF copyright holder
11957         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11958         bootstrap.conf override of COPYRIGHT_HOLDER.
11959         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11960
11961         bootstrap: interoperate with gettext 0.14.1
11962         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11963
11964         bootstrap: allow for alternate submodule location
11965         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11966         hardcoding submodule location.
11967         (gnulib_mk): Allow direct use of Makefile.am.
11968
11969         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11970         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11971         rather than reconfiguring where the submodule points.
11972
11973         gettimeofday: restore support for platforms that lack function
11974         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11975         replacement if function is missing.
11976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11977         * modules/sys_time (Makefile.am): Substitute it.
11978         * lib/sys_time.in.h (gettimeofday): Check it.
11979         Reported by Michael Goffioul.
11980
11981 2010-02-21  Bruno Haible  <bruno@clisp.org>
11982
11983         * lib/stdio.in.h (obstack_printf): Fix typo.
11984
11985 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11986
11987         vc-list-files: use bzr ls's -R option
11988         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11989         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11990
11991 2010-02-21  Jim Meyering  <meyering@redhat.com>
11992
11993         init.sh: fix EXEEXT shims to work also for names like test-prog
11994         * tests/init.sh: Re-exec a better shell, when needed.
11995         If the current shell lacks support for posix $(...), an init.sh-using
11996         test will now try to find a shell that supports that.  If EXEEXT is
11997         nonempty, we also require support for hyphen-in-alias-name and shell
11998         substitutions like ${var#glob}.  Failure to find such a shell results
11999         in a skipped test.
12000
12001 2010-02-21  Bruno Haible  <bruno@clisp.org>
12002
12003         Really work around around "broken pipe" error message from bash 3.2.
12004         * gnulib-tool (func_reset_sigpipe): Remove function.
12005         (echo): In bash 3.2, define to a function that uses printf.
12006         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
12007
12008 2010-02-20  Bruno Haible  <bruno@clisp.org>
12009
12010         Restore support for automake 1.9.6 with autoconf 2.61.
12011         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
12012         Reported by James Youngman <jay@gnu.org>.
12013
12014 2010-02-20  Bruno Haible  <bruno@clisp.org>
12015
12016         Improve *printf warning condition.
12017         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
12018         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
12019         and the function is overridden due to SIGPIPE emulation.
12020
12021 2010-02-20  Bruno Haible  <bruno@clisp.org>
12022
12023         * lib/stdio.in.h: Tweak comments.
12024
12025 2010-02-19  Bruno Haible  <bruno@clisp.org>
12026
12027         Make it easier to find modules. New gnulib-tool option '--find'.
12028         * gnulib-tool: New option --find.
12029         (func_usage): Document it.
12030         (func_sanitize_modulelist): New function, extracted from
12031         func_all_modules.
12032         (func_all_modules): Invoke it.
12033         * doc/gnulib-tool.texi (Which modules?): New node.
12034
12035 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
12036
12037         * lib/sys_select.in.h: Provide select replacement even if
12038         sys/select.h exists on a system, for Interix.
12039
12040 2010-02-18  Jim Meyering  <meyering@redhat.com>
12041
12042         init.sh: don't use $(...) just yet
12043         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
12044         to accommodate e.g., Solaris' /bin/sh.
12045
12046 2010-02-17  Bruno Haible  <bruno@clisp.org>
12047
12048         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
12049         Reported by Ludovic Courtès <ludo@gnu.org>.
12050
12051 2010-02-16  Simon Josefsson  <simon@josefsson.org>
12052
12053         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
12054         linking with -lintl.
12055
12056 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12057
12058         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
12059         if not provided by the system's netdb.h.  Reported by
12060         ludo@gnu.org (Ludovic Courtès).
12061
12062 2010-02-15  Jim Meyering  <meyering@redhat.com>
12063
12064         init.sh: improve portability and efficiency
12065         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
12066         "dummy" in a for loop.
12067         Use '!', not '^' to select the complement of a character set used
12068         in a "case" statement.
12069         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
12070         Suggestions from Eric Blake.
12071
12072         init.sh: automatically accommodate programs with the .exe suffix
12073         Automatically arrange for an invocation of "prog" to execute the
12074         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12075         may use the simpler "prog", yet still work when built on a system
12076         that requires specifying the added suffix.
12077         Do this by constructing a function named "prog" that invokes
12078         "prog.exe" for each .exe file in selected directories.
12079         * tests/init.sh (find_exe_basenames_): New function.
12080         (create_exe_shim_functions_): New function.
12081         (path_prepend_): Use it.
12082
12083         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12084         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12085         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12086
12087 2010-02-14  Jim Meyering  <meyering@redhat.com>
12088
12089         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12090         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12091         (sc_prohibit_hash_pjw_without_use): New rule.
12092
12093         maint.mk: allow the default upload destination dir to be overridden
12094         * top/maint.mk (upload_dest_dir_): Define with a default that
12095         preserves the status quo.
12096         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12097         Reported by Peter Simons.
12098
12099         maint.mk: prohibit inclusion of "hash.h" without_use
12100         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12101
12102 2010-02-10  Jim Meyering  <meyering@redhat.com>
12103
12104         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12105         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12106
12107 2010-02-09  Eric Blake  <ebb9@byu.net>
12108         and Bruno Haible  <bruno@clisp.org>
12109
12110         obstack-printf-posix: ensure declaration
12111         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12112         extracted from gl_FUNC_OBSTACK_PRINTF.
12113         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12114         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12115         Likewise.
12116         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12117         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12118         0.
12119
12120 2010-02-08  Bruno Haible  <bruno@clisp.org>
12121
12122         gnulib-tool: Fix typo in 2010-02-07 commit.
12123         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12124         Reported by Eric Blake.
12125
12126 2010-02-07  Bruno Haible  <bruno@clisp.org>
12127
12128         gnulib-tool: Fix up caching patches.
12129         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
12130         option --no-cache. Use associative arrays when supported by the shell.
12131         (sed_comments): New variable.
12132         (modcache): Renamed from do_cache.
12133         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
12134         abbreviate unnecessarily.
12135         (have_associative): New variable.
12136         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
12137         way also for ksh and zsh.
12138         (func_init_sed_convert_to_cache_statements): New function, extracted
12139         from func_cache_lookup_module. Add support for associative arrays.
12140         Don't set the c_MODULE_cached variable here. Ignore all lines before
12141         the first field header. Remove only the final newline, not all trailing
12142         newlines. Support empty fields correctly. Limit the use of 'eval' to
12143         assignments.
12144         (func_get_description, func_get_status, func_get_notice,
12145         func_get_applicability, func_get_filelist, func_get_dependencies,
12146         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
12147         func_get_automake_snippet, func_get_include_directive,
12148         func_get_link_directive, func_get_license, func_get_maintainer):
12149         Update documentation. List the unoptimized code first. Add support for
12150         associative arrays. Limit the use of 'eval' to assignments.
12151         (func_get_applicability): Undo stylistic pessimisations.
12152         (func_get_automake_snippet, func_get_include_directive): Reduce code
12153         duplication.
12154         (func_modules_transitive_closure, func_modules_add_dummy,
12155         func_modules_notice, func_modules_to_filelist, func_add_file,
12156         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
12157         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
12158         func_create_testdir, func_create_megatestdir): Update documentation.
12159
12160 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12161
12162         * gnulib-tool (func_cache_lookup_module): Store the module name
12163         belonging to the cache variable; error out if two different
12164         module names map to the same cache variable name.
12165
12166 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12167
12168         gnulib-tool: Make caching optional.
12169         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
12170         Update matching short versions of --no-changelog.
12171         (func_usage): Update.
12172         (sed_extract_cache_prog): Renamed from ...
12173         (sed_extract_prog): ... this; revert to old extraction script.
12174         (func_get_description, func_get_status)
12175         (func_get_notice, func_get_applicability, func_get_filelist)
12176         (func_get_dependencies, func_get_autoconf_early_snippet)
12177         (func_get_autoconf_snippet, func_get_automake_snippet)
12178         (func_get_include_directive, func_get_link_directive)
12179         (func_get_license, func_get_maintainer): If $do_cache is false,
12180         use old, non-caching extraction scripts.
12181         Suggestion by Bruno Haible.
12182
12183 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12184
12185         gnulib-tool: cache module metainformation.
12186         * gnulib-tool (sed_extract_prog): Match newline before each
12187         header, and rewrite header to a shell variable suffix.
12188         (func_cache_var, func_cache_lookup_module): New functions,
12189         to turn a module name into a cache variable prefix, and to
12190         look up and cache module metainformation.
12191         (func_get_description, func_get_status)
12192         (func_get_notice, func_get_applicability, func_get_filelist)
12193         (func_get_dependencies, func_get_autoconf_early_snippet)
12194         (func_get_autoconf_snippet, func_get_automake_snippet)
12195         (func_get_include_directive, func_get_link_directive)
12196         (func_get_license, func_get_maintainer): Use
12197         func_cache_lookup_module.
12198
12199 2010-02-07  Bruno Haible  <bruno@clisp.org>
12200
12201         fnctl: Fix missing dependency.
12202         * modules/fcntl (Depends-on): Add getdtablesize.
12203         Reported by John W. Eaton <jwe@gnu.org>.
12204
12205 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12206
12207         Argp: fix recognition of short alias options.
12208
12209         * lib/argp-parse.c (convert_options): Fix improper use of
12210         `|' between character values.
12211         * tests/test-argp.c (group1_option): New alias option
12212         --read (-r).
12213         (group1_parser): Special handling for 'r'.
12214         (test15): New test case.
12215         (test_fun): Add test15.
12216         * tests/test-argp-2.sh: Update expected --help and --usage
12217         outputs.
12218
12219 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
12220
12221         * tests/test-argp.c: Fix indentation.
12222
12223 2010-02-04  Eric Blake  <ebb9@byu.net>
12224
12225         gettimeofday: expose type of second argument
12226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
12227         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
12228         * tests/test-gettimeofday.c: Use it to silence warning.
12229         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
12230         the issue.
12231
12232 2010-02-03  Jim Meyering  <meyering@redhat.com>
12233
12234         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
12235         * lib/regcomp.c (TYPE_SIGNED): Define.
12236         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
12237
12238         regcomp.c: avoid a new -Wshadow warning
12239         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
12240
12241 2010-02-01  Jim Meyering  <meyering@redhat.com>
12242
12243         removing useless parentheses in cpp #define directives
12244         For motivation, see commit c0221df4, "define STREQ(a,b)
12245         consistently, removing useless parentheses"
12246         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
12247         * lib/mountlist.c (MNT_IGNORE): Likewise.
12248         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
12249
12250 2010-02-01  Eric Blake  <ebb9@byu.net>
12251
12252         sys_time: use link-warning
12253         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12254         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12255         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12256         * modules/sys_time (Depends-on): Add warn-on-use.
12257         (Makefile.am): Always build replacement.
12258         (configure.ac): Update substitutions.
12259         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12260         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12261         bother with SYS_TIME_H.
12262         * modules/gettimeofday (configure.ac): Declare indicator.
12263         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12264         in use.
12265
12266         closein-tests: silence compiler warning
12267         * tests/test-closein.c (main): Ignore fread result.
12268         * modules/closein-tests (Depends-on): Add ignore-value.
12269
12270         tests: silence warning about system return
12271         * tests/test-areadlink-with-size.c (main): Ignore system result.
12272         * tests/test-areadlink.c (main): Likewise.
12273         * tests/test-areadlinkat-with-size.c (main): Likewise.
12274         * tests/test-areadlinkat.c (main): Likewise.
12275         * tests/test-canonicalize-lgpl.c (main): Likewise.
12276         * tests/test-canonicalize.c (main): Likewise.
12277         * tests/test-chown.c (main): Likewise.
12278         * tests/test-fchownat.c (main): Likewise.
12279         * tests/test-fdutimensat.c (main): Likewise.
12280         * tests/test-fstatat.c (main): Likewise.
12281         * tests/test-futimens.c (main): Likewise.
12282         * tests/test-lchown.c (main): Likewise.
12283         * tests/test-link.c (main): Likewise.
12284         * tests/test-linkat.c (main): Likewise.
12285         * tests/test-lstat.c (main): Likewise.
12286         * tests/test-mkdir.c (main): Likewise.
12287         * tests/test-mkdirat.c (main): Likewise.
12288         * tests/test-mkfifo.c (main): Likewise.
12289         * tests/test-mkfifoat.c (main): Likewise.
12290         * tests/test-mknod.c (main): Likewise.
12291         * tests/test-readlink.c (main): Likewise.
12292         * tests/test-remove.c (main): Likewise.
12293         * tests/test-rename.c (main): Likewise.
12294         * tests/test-renameat.c (main): Likewise.
12295         * tests/test-rmdir.c (main): Likewise.
12296         * tests/test-symlink.c (main): Likewise.
12297         * tests/test-symlinkat.c (main): Likewise.
12298         * tests/test-unlink.c (main): Likewise.
12299         * tests/test-unlinkat.c (main): Likewise.
12300         * tests/test-utimens.c (main): Likewise.
12301         * tests/test-utimensat.c (main): Likewise.
12302         * modules/areadlink-tests (Depends-on): Add ignore-value.
12303         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12304         * modules/areadlinkat-tests (Depends-on): Likewise.
12305         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12306         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12307         * modules/canonicalize-tests (Depends-on): Likewise.
12308         * modules/chown-tests (Depends-on): Likewise.
12309         * modules/fdutimensat-tests (Depends-on): Likewise.
12310         * modules/futimens-tests (Depends-on): Likewise.
12311         * modules/lchown-tests (Depends-on): Likewise.
12312         * modules/link-tests (Depends-on): Likewise.
12313         * modules/linkat-tests (Depends-on): Likewise.
12314         * modules/lstat-tests (Depends-on): Likewise.
12315         * modules/mkdir-tests (Depends-on): Likewise.
12316         * modules/mkfifo-tests (Depends-on): Likewise.
12317         * modules/mkfifoat-tests (Depends-on): Likewise.
12318         * modules/mknod-tests (Depends-on): Likewise.
12319         * modules/openat-tests (Depends-on): Likewise.
12320         * modules/readlink-tests (Depends-on): Likewise.
12321         * modules/remove-tests (Depends-on): Likewise.
12322         * modules/rename-tests (Depends-on): Likewise.
12323         * modules/renameat-tests (Depends-on): Likewise.
12324         * modules/rmdir-tests (Depends-on): Likewise.
12325         * modules/symlink-tests (Depends-on): Likewise.
12326         * modules/symlinkat-tests (Depends-on): Likewise.
12327         * modules/unlink-tests (Depends-on): Likewise.
12328         * modules/utimens-tests (Depends-on): Likewise.
12329         * modules/utimensat-tests (Depends-on): Likewise.
12330
12331 2010-01-31  Bruno Haible  <bruno@clisp.org>
12332
12333         Perform the same test for many <math.h> functions.
12334         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12335         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12336         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12337         of gl_MATHFUNC.
12338         * modules/acos (configure.ac): Likewise.
12339         * modules/asin (configure.ac): Likewise.
12340         * modules/atan (configure.ac): Likewise.
12341         * modules/atan2 (configure.ac): Likewise.
12342         * modules/cbrt (configure.ac): Likewise.
12343         * modules/copysign (configure.ac): Likewise.
12344         * modules/cos (configure.ac): Likewise.
12345         * modules/cosh (configure.ac): Likewise.
12346         * modules/erf (configure.ac): Likewise.
12347         * modules/erfc (configure.ac): Likewise.
12348         * modules/exp (configure.ac): Likewise.
12349         * modules/fmod (configure.ac): Likewise.
12350         * modules/hypot (configure.ac): Likewise.
12351         * modules/j0 (configure.ac): Likewise.
12352         * modules/j1 (configure.ac): Likewise.
12353         * modules/jn (configure.ac): Likewise.
12354         * modules/lgamma (configure.ac): Likewise.
12355         * modules/log (configure.ac): Likewise.
12356         * modules/log10 (configure.ac): Likewise.
12357         * modules/log1p (configure.ac): Likewise.
12358         * modules/pow (configure.ac): Likewise.
12359         * modules/remainder (configure.ac): Likewise.
12360         * modules/sin (configure.ac): Likewise.
12361         * modules/sinh (configure.ac): Likewise.
12362         * modules/tan (configure.ac): Likewise.
12363         * modules/tanh (configure.ac): Likewise.
12364         * modules/y0 (configure.ac): Likewise.
12365         * modules/y1 (configure.ac): Likewise.
12366         * modules/yn (configure.ac): Likewise.
12367         Suggested by Paolo Bonzini.
12368
12369 2010-01-31  Bruno Haible  <bruno@clisp.org>
12370
12371         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12372
12373 2010-01-31  Bruno Haible  <bruno@clisp.org>
12374
12375         Work around getdelim() bug on FreeBSD 8.0.
12376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12377         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12378         not work.
12379         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12380         is 1.
12381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12382         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12383         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12384         a non-zero size.
12385         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12386
12387 2010-01-31  Bruno Haible  <bruno@clisp.org>
12388
12389         Work around getline() bug on FreeBSD 8.0.
12390         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12391         and a non-zero size.
12392         * tests/test-getline.c (main): Likewise.
12393         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12394         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12395
12396 2010-01-28  Eric Blake  <ebb9@byu.net>
12397
12398         regex: fix build failure
12399         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12400         platforms.
12401
12402 2010-01-28  Jim Meyering  <meyering@redhat.com>
12403
12404         regex: do not ignore memory allocation failure
12405         * lib/regex_internal.c (create_cd_newstate): Detect
12406         re_node_set_init_copy failure.   Extracted from glibc commit
12407         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12408
12409         regex: sync more white-space changes from libc
12410         * lib/regex_internal.c: White-space only changes.
12411         * lib/regexec.c: Likewise.
12412
12413         regex: add many uses of __attribute_warn_unused_result__
12414         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12415         * lib/regexec.c: Likewise.
12416         Extracted from a messy glibc commit.
12417
12418         regcomp.c: spelling and merge-artifact from glibc
12419         * lib/regcomp.c: Merge remainder of glibc's
12420         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12421
12422         regcomp.c: sync white-space changes from glibc
12423         * lib/regcomp.c: Merge to accommodate white space
12424         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12425
12426         regcomp.c: do not ignore internal return values
12427         * lib/regcomp.c: Do not ignore internal return values.
12428         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12429         but without its white-space changes and spelling fixes.
12430
12431         regex_internal.h: define __attribute_warn_unused_result__
12432         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12433
12434         maint: add a syntax-check rule to check for vulnerable Makefile.in
12435         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12436
12437 2010-01-27  Jim Meyering  <meyering@redhat.com>
12438
12439         ncftpput-ftp: clean up spaces
12440         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12441         Remove trailing blanks.
12442
12443 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12444
12445         * build-aux/git-version-gen: Fix copyright statement.
12446         * build-aux/gnupload: Likewise.
12447         * tests/test-arcfour.c: Likewise.
12448         * tests/test-arctwo.c: Likewise.
12449         * tests/test-count-one-bits.c: Likewise.
12450         * tests/test-crc.c: Likewise.
12451         * tests/test-des.c: Likewise.
12452         * tests/test-gc-arcfour.c: Likewise.
12453         * tests/test-gc-arctwo.c: Likewise.
12454         * tests/test-gc-des.c: Likewise.
12455         * tests/test-gc-hmac-md5.c: Likewise.
12456         * tests/test-gc-hmac-sha1.c: Likewise.
12457         * tests/test-gc-md2.c: Likewise.
12458         * tests/test-gc-md4.c: Likewise.
12459         * tests/test-gc-md5.c: Likewise.
12460         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12461         * tests/test-gc-rijndael.c: Likewise.
12462         * tests/test-gc-sha1.c: Likewise.
12463         * tests/test-gc.c: Likewise.
12464         * tests/test-gethostname.c: Likewise.
12465         * tests/test-gettimeofday.c: Likewise.
12466         * tests/test-hash.c: Likewise.
12467         * tests/test-hmac-md5.c: Likewise.
12468         * tests/test-hmac-sha1.c: Likewise.
12469         * tests/test-md2.c: Likewise.
12470         * tests/test-md4.c: Likewise.
12471         * tests/test-md5.c: Likewise.
12472         * tests/test-memchr.c: Likewise.
12473         * tests/test-memchr2.c: Likewise.
12474         * tests/test-memcmp.c: Likewise.
12475         * tests/test-memmem.c: Likewise.
12476         * tests/test-memrchr.c: Likewise.
12477         * tests/test-rawmemchr.c: Likewise.
12478         * tests/test-read-file.c: Likewise.
12479         * tests/test-rijndael.c: Likewise.
12480         * tests/test-sockets.c: Likewise.
12481         * tests/test-strchrnul.c: Likewise.
12482         * tests/test-strstr.c: Likewise.
12483         * tests/test-strtod.c: Likewise.
12484         * build-aux/ncftpput-ftp: Likewise.
12485
12486 2010-01-26  Eric Blake  <ebb9@byu.net>
12487
12488         ignore-value: update recommended header name
12489         * modules/ignore-value (Include): Only use <> for headers that
12490         exist in glibc.
12491
12492 2010-01-26  Jim Meyering  <meyering@redhat.com>
12493
12494         test-userspec.c: avoid compiler warnings
12495         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12496         and "initialization discards qualifiers..." warnings.
12497         Put the first "uid" in its own scope, and make char* members "const".
12498
12499 2010-01-25  Bruno Haible  <bruno@clisp.org>
12500
12501         gnulib-tool: Make warning diagnostics consistent.
12502         * gnulib-tool (func_warning): New function.
12503         Use it everywhere where gnulib-tool produces output to stderr and it is
12504         not a fatal error.
12505
12506 2010-01-25  Bruno Haible  <bruno@clisp.org>
12507
12508         Fix test dependencies.
12509         * modules/xstrtol-tests (Depends-on): Add inttypes.
12510         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12511
12512 2010-01-25 Pádraig Brady <P@draigBrady.com>
12513
12514         syntax-check: detect incorrect boolean macro values in config.h
12515         * modules/maintainer-makefile (configure.ac): Parameterize the location
12516         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12517         The logic is from Eric Blake and the location indicated by Jim Meyering.
12518         Note the more natural CONFIG_HEADER name is prohibited by automake
12519         for backwards compatibility reasons.
12520         * top/maint.mk (sc_Wundef_boolean): New rule.
12521
12522 2010-01-25  Jim Meyering  <meyering@redhat.com>
12523
12524         bootstrap: detect MacOS 10.6's shasum, too
12525         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12526         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12527
12528 2010-01-23  Jim Meyering  <meyering@redhat.com>
12529
12530         xstrtoll: new module
12531         * modules/xstrtoll: New file.
12532         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12533         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12534         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12535         ./configure fails if you use this module and lack "long long".
12536         * modules/xstrtoll-tests: New module.
12537         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12538         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12539         new init.sh-based test framework.
12540
12541 2010-01-24  Bruno Haible  <bruno@clisp.org>
12542
12543         Tests for module 'yn'.
12544         * modules/yn-tests: New file.
12545         * tests/test-yn.c: New file.
12546
12547         Tests for module 'y1'.
12548         * modules/y1-tests: New file.
12549         * tests/test-y1.c: New file.
12550
12551         Tests for module 'y0'.
12552         * modules/y0-tests: New file.
12553         * tests/test-y0.c: New file.
12554
12555         Tests for module 'tanh'.
12556         * modules/tanh-tests: New file.
12557         * tests/test-tanh.c: New file.
12558
12559         Tests for module 'tan'.
12560         * modules/tan-tests: New file.
12561         * tests/test-tan.c: New file.
12562
12563         Tests for module 'sqrt'.
12564         * modules/sqrt-tests: New file.
12565         * tests/test-sqrt.c: New file.
12566
12567         Tests for module 'sinh'.
12568         * modules/sinh-tests: New file.
12569         * tests/test-sinh.c: New file.
12570
12571         Tests for module 'sin'.
12572         * modules/sin-tests: New file.
12573         * tests/test-sin.c: New file.
12574
12575         Tests for module 'rint'.
12576         * modules/rint-tests: New file.
12577         * tests/test-rint.c: New file.
12578
12579         Tests for module 'remainder'.
12580         * modules/remainder-tests: New file.
12581         * tests/test-remainder.c: New file.
12582
12583         Tests for module 'pow'.
12584         * modules/pow-tests: New file.
12585         * tests/test-pow.c: New file.
12586
12587         Tests for module 'nextafter'.
12588         * modules/nextafter-tests: New file.
12589         * tests/test-nextafter.c: New file.
12590
12591         Tests for module 'modf'.
12592         * modules/modf-tests: New file.
12593         * tests/test-modf.c: New file.
12594
12595         Tests for module 'logb'.
12596         * modules/logb-tests: New file.
12597         * tests/test-logb.c: New file.
12598
12599         Tests for module 'log1p'.
12600         * modules/log1p-tests: New file.
12601         * tests/test-log1p.c: New file.
12602
12603         Tests for module 'log10'.
12604         * modules/log10-tests: New file.
12605         * tests/test-log10.c: New file.
12606
12607         Tests for module 'log'.
12608         * modules/log-tests: New file.
12609         * tests/test-log.c: New file.
12610
12611         Tests for module 'lgamma'.
12612         * modules/lgamma-tests: New file.
12613         * tests/test-lgamma.c: New file.
12614
12615         Tests for module 'ldexp'.
12616         * modules/ldexp-tests: New file.
12617         * tests/test-ldexp.c: New file.
12618
12619         Tests for module 'jn'.
12620         * modules/jn-tests: New file.
12621         * tests/test-jn.c: New file.
12622
12623         Tests for module 'j1'.
12624         * modules/j1-tests: New file.
12625         * tests/test-j1.c: New file.
12626
12627         Tests for module 'j0'.
12628         * modules/j0-tests: New file.
12629         * tests/test-j0.c: New file.
12630
12631         Tests for module 'hypot'.
12632         * modules/hypot-tests: New file.
12633         * tests/test-hypot.c: New file.
12634
12635         Tests for module 'fmod'.
12636         * modules/fmod-tests: New file.
12637         * tests/test-fmod.c: New file.
12638
12639         Tests for module 'fabs'.
12640         * modules/fabs-tests: New file.
12641         * tests/test-fabs.c: New file.
12642
12643         Tests for module 'exp'.
12644         * modules/exp-tests: New file.
12645         * tests/test-exp.c: New file.
12646
12647         Tests for module 'erfc'.
12648         * modules/erfc-tests: New file.
12649         * tests/test-erfc.c: New file.
12650
12651         Tests for module 'erf'.
12652         * modules/erf-tests: New file.
12653         * tests/test-erf.c: New file.
12654
12655         Tests for module 'cosh'.
12656         * modules/cosh-tests: New file.
12657         * tests/test-cosh.c: New file.
12658
12659         Tests for module 'cos'.
12660         * modules/cos-tests: New file.
12661         * tests/test-cos.c: New file.
12662
12663         Tests for module 'copysign'.
12664         * modules/copysign-tests: New file.
12665         * tests/test-copysign.c: New file.
12666
12667         Tests for module 'cbrt'.
12668         * modules/cbrt-tests: New file.
12669         * tests/test-cbrt.c: New file.
12670
12671         Tests for module 'atan2'.
12672         * modules/atan2-tests: New file.
12673         * tests/test-atan2.c: New file.
12674
12675         Tests for module 'atan'.
12676         * modules/atan-tests: New file.
12677         * tests/test-atan.c: New file.
12678
12679         Tests for module 'asin'.
12680         * modules/asin-tests: New file.
12681         * tests/test-asin.c: New file.
12682
12683         Tests for module 'acos'.
12684         * modules/acos-tests: New file.
12685         * tests/test-acos.c: New file.
12686
12687 2010-01-24  Bruno Haible  <bruno@clisp.org>
12688
12689         Fix tests for common <math.h> functions.
12690         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12691         code snippet that references the function pointer, rather than merely
12692         calling the function. Substitute the FUNC_LIBM variable.
12693         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12694         * modules/acos (configure.ac): Likewise.
12695         * modules/asin (configure.ac): Likewise.
12696         * modules/atan (configure.ac): Likewise.
12697         * modules/atan2 (configure.ac): Likewise.
12698         * modules/cbrt (configure.ac): Likewise.
12699         * modules/copysign (configure.ac): Likewise.
12700         * modules/cos (configure.ac): Likewise.
12701         * modules/cosh (configure.ac): Likewise.
12702         * modules/erf (configure.ac): Likewise.
12703         * modules/erfc (configure.ac): Likewise.
12704         * modules/exp (configure.ac): Likewise.
12705         * modules/fabs (configure.ac): Likewise.
12706         * modules/fmod (configure.ac): Likewise.
12707         * modules/hypot (configure.ac): Likewise.
12708         * modules/j0 (configure.ac): Likewise.
12709         * modules/j1 (configure.ac): Likewise.
12710         * modules/jn (configure.ac): Likewise.
12711         * modules/ldexp (configure.ac): Likewise.
12712         * modules/lgamma (configure.ac): Likewise.
12713         * modules/log (configure.ac): Likewise.
12714         * modules/log10 (configure.ac): Likewise.
12715         * modules/log1p (configure.ac): Likewise.
12716         * modules/logb (configure.ac): Likewise.
12717         * modules/modf (configure.ac): Likewise.
12718         * modules/nextafter (configure.ac): Likewise.
12719         * modules/pow (configure.ac): Likewise.
12720         * modules/remainder (configure.ac): Likewise.
12721         * modules/rint (configure.ac): Likewise.
12722         * modules/sin (configure.ac): Likewise.
12723         * modules/sinh (configure.ac): Likewise.
12724         * modules/tan (configure.ac): Likewise.
12725         * modules/tanh (configure.ac): Likewise.
12726         * modules/y0 (configure.ac): Likewise.
12727         * modules/y1 (configure.ac): Likewise.
12728         * modules/yn (configure.ac): Likewise.
12729
12730 2010-01-24  Bruno Haible  <bruno@clisp.org>
12731
12732         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12733         * tests/test-acosl.c (x): New variable.
12734         (main): Store argument in x and fetch it from x.
12735         * tests/test-asinl.c (x): New variable.
12736         (main): Store argument in x and fetch it from x.
12737         * tests/test-atanl.c (x): New variable.
12738         (main): Store argument in x and fetch it from x.
12739         * tests/test-cosl.c (x): New variable.
12740         (main): Store argument in x and fetch it from x.
12741         * tests/test-expl.c (x): New variable.
12742         (main): Store argument in x and fetch it from x.
12743         * tests/test-logl.c (x): New variable.
12744         (main): Store argument in x and fetch it from x.
12745         * tests/test-sinl.c (x): New variable.
12746         (main): Store argument in x and fetch it from x.
12747         * tests/test-sqrtl.c (x): New variable.
12748         (main): Store argument in x and fetch it from x.
12749         * tests/test-tanl.c (x): New variable.
12750         (main): Store argument in x and fetch it from x.
12751
12752 2010-01-24  Bruno Haible  <bruno@clisp.org>
12753
12754         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12755         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12756         assignments to the initial TESTS_ENVIRONMENT.
12757         * doc/gnulib.texi (Unit test modules): Document it.
12758         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12759         TESTS_ENVIRONMENT.
12760         * modules/btowc-tests (Makefile.am): Likewise.
12761         * modules/c-stack-tests (Makefile.am): Likewise.
12762         * modules/c-strcase-tests (Makefile.am): Likewise.
12763         * modules/copy-file-tests (Makefile.am): Likewise.
12764         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12765         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12766         * modules/mbrtowc-tests (Makefile.am): Likewise.
12767         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12768         * modules/mbscasestr-tests (Makefile.am): Likewise.
12769         * modules/mbschr-tests (Makefile.am): Likewise.
12770         * modules/mbscspn-tests (Makefile.am): Likewise.
12771         * modules/mbsinit-tests (Makefile.am): Likewise.
12772         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12773         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12774         * modules/mbspbrk-tests (Makefile.am): Likewise.
12775         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12776         * modules/mbsrchr-tests (Makefile.am): Likewise.
12777         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12778         * modules/mbsspn-tests (Makefile.am): Likewise.
12779         * modules/mbsstr-tests (Makefile.am): Likewise.
12780         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12781         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12782         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12783         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12784         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12785         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12786         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12787         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12788         * modules/wcrtomb-tests (Makefile.am): Likewise.
12789         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12790         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12791         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12792         assignments from TESTS_ENVIRONMENT.
12793         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12794         augmentation.
12795         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12796         * modules/atexit-tests (Makefile.am): Likewise.
12797         * modules/binary-io-tests (Makefile.am): Likewise.
12798         * modules/closein-tests (Makefile.am): Likewise.
12799         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12800         * modules/exclude-tests (Makefile.am): Likewise.
12801         * modules/fflush-tests (Makefile.am): Likewise.
12802         * modules/fpending-tests (Makefile.am): Likewise.
12803         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12804         * modules/freadahead-tests (Makefile.am): Likewise.
12805         * modules/freadptr-tests (Makefile.am): Likewise.
12806         * modules/freadseek-tests (Makefile.am): Likewise.
12807         * modules/fseek-tests (Makefile.am): Likewise.
12808         * modules/fseeko-tests (Makefile.am): Likewise.
12809         * modules/ftell-tests (Makefile.am): Likewise.
12810         * modules/ftello-tests (Makefile.am): Likewise.
12811         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12812         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12813         * modules/lseek-tests (Makefile.am): Likewise.
12814         * modules/parse-duration-tests (Makefile.am): Likewise.
12815         * modules/perror-tests (Makefile.am): Likewise.
12816         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12817         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12818         * modules/pipe-tests (Makefile.am): Likewise.
12819         * modules/pread-tests (Makefile.am): Likewise.
12820         * modules/printf-posix-tests (Makefile.am): Likewise.
12821         * modules/select-tests (Makefile.am): Likewise.
12822         * modules/sigpipe-tests (Makefile.am): Likewise.
12823         * modules/tsearch-tests (Makefile.am): Likewise.
12824         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12825         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12826         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12827         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12828         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12829         * modules/version-etc-tests (Makefile.am): Likewise.
12830         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12831         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12832         * modules/xalloc-die-tests (Makefile.am): Likewise.
12833         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12834         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12835         * modules/xstrtol-tests (Makefile.am): Likewise.
12836         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12837         * modules/yesno-tests (Makefile.am): Likewise.
12838         Suggested by Jim Meyering.
12839
12840 2010-01-24  Bruno Haible  <bruno@clisp.org>
12841
12842         More documentation.
12843         * doc/gnulib.texi (Writing modules): New chapter.
12844         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12845         the new chapter.
12846
12847 2010-01-24  Jim Meyering  <meyering@redhat.com>
12848
12849         maint.mk: do not prepend "./" after filtering
12850         * top/maint.mk (_prepend_srcdir_prefix): New variable
12851         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12852         "./" when $(srcdir) is ".".
12853
12854         define STREQ(a,b) consistently, removing useless parentheses
12855         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12856         since the only risk is that "a" or "b" contains an unparenthesized
12857         comma, but if either did that, STREQ would have 3 or more arguments.
12858         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12859         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12860         * lib/hash-triple.c (STREQ): Likewise.
12861         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12862         * lib/getugroups.c (STREQ): Likewise.
12863
12864 2010-01-23  Jim Meyering  <meyering@redhat.com>
12865
12866         maint.mk: fix syntax-check in a non-srcdir build directory
12867         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12868         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12869
12870 2010-01-22  Jim Meyering  <meyering@redhat.com>
12871
12872         userspec: add unit tests
12873         * tests/test-userspec.c: New file.
12874         * modules/userspec-tests: Likewise.
12875
12876 2010-01-21  Jim Meyering  <meyering@redhat.com>
12877
12878         maint.mk: handle source file names containing "." robustly
12879         * top/maint.mk (_dot_escaped_srcdir): Define.
12880         (VC_LIST): Use it in LHS of sed substitution.
12881
12882 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12883
12884         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12885         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12886         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12887         from a non-srcdir build.
12888
12889 2010-01-20  Eric Blake  <ebb9@byu.net>
12890
12891         warn-on-use: use instead of link-warning
12892         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12893         * modules/unistd (Depends-on, Makefile.am): Likewise.
12894         * modules/arpa_inet (Depends-on): Replace link-warning with
12895         warn-on-use.
12896         (Makefile.am): Update rules accordingly.
12897         * modules/ctype (Depends-on, Makefile.am): Likewise.
12898         * modules/dirent (Depends-on, Makefile.am): Likewise.
12899         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12900         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12901         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12902         * modules/locale (Depends-on, Makefile.am): Likewise.
12903         * modules/math (Depends-on, Makefile.am): Likewise.
12904         * modules/search (Depends-on, Makefile.am): Likewise.
12905         * modules/signal (Depends-on, Makefile.am): Likewise.
12906         * modules/spawn (Depends-on, Makefile.am): Likewise.
12907         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12908         * modules/string (Depends-on, Makefile.am): Likewise.
12909         * modules/strings (Depends-on, Makefile.am): Likewise.
12910         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12911         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12912         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12913         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12914         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12915         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12916         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12917         * modules/wchar (Depends-on, Makefile.am): Likewise.
12918         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12919         should be poisoned.
12920         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12921         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12922         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12923         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12924         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12925         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12926         * m4/math_h.m4 (gl_MATH_H): Likewise.
12927         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12928         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12929         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12930         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12931         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12932         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12933         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12934         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12935         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12939         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12941         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12942         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12943         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12944         GL_LINK_WARNING.
12945         * lib/ctype.in.h: Likewise.
12946         * lib/dirent.in.h: Likewise.
12947         * lib/fcntl.in.h: Likewise.
12948         * lib/inttypes.in.h: Likewise.
12949         * lib/langinfo.in.h: Likewise.
12950         * lib/locale.in.h: Likewise.
12951         * lib/math.in.h: Likewise.
12952         * lib/search.in.h: Likewise.
12953         * lib/signal.in.h: Likewise.
12954         * lib/spawn.in.h: Likewise.
12955         * lib/stdio.in.h: Likewise.
12956         * lib/stdlib.in.h: Likewise.
12957         * lib/string.in.h: Likewise.
12958         * lib/strings.in.h: Likewise.
12959         * lib/sys_file.in.h: Likewise.
12960         * lib/sys_ioctl.in.h: Likewise.
12961         * lib/sys_select.in.h: Likewise.
12962         * lib/sys_socket.in.h: Likewise.
12963         * lib/sys_stat.in.h: Likewise.
12964         * lib/sys_times.in.h: Likewise.
12965         * lib/sys_utsname.in.h: Likewise.
12966         * lib/unistd.in.h: Likewise.
12967         * lib/wchar.in.h: Likewise.
12968
12969 2010-01-20  Bruno Haible  <bruno@clisp.org>
12970
12971         Avoid duplicate -lm.
12972         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12973         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12975         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12976         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12977         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12978         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12979         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12981         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12982         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12983         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12984         Reported by Paolo Bonzini.
12985
12986 2010-01-19  Bruno Haible  <bruno@clisp.org>
12987
12988         langinfo, nl_langinfo: Relicense under LGPLv2+.
12989         * modules/langinfo (License): Change to LGPLv2+.
12990         * modules/nl_langinfo (License): Likewise.
12991         Patch by David Lutterkort <lutter@redhat.com>.
12992
12993 2010-01-19  Bruno Haible  <bruno@clisp.org>
12994
12995         Avoid compilation error with cc on OSF/1 5.1.
12996         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12997         statement, not before.
12998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12999
13000 2010-01-18  Bruno Haible  <bruno@clisp.org>
13001
13002         Avoid a link error due to the __printf__ symbol.
13003         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
13004         and 2.6.x.
13005         (__format__, __printf__): Remove definitions.
13006         * lib/argp-fmtstream.h: Likewise.
13007         * lib/argp.h: Likewise.
13008         * lib/error.h: Likewise.
13009         * lib/vasnprintf.h: Likewise.
13010         * lib/xprintf.h: Likewise.
13011         * lib/xvasprintf.h: Likewise.
13012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13013
13014 2010-01-18  Bruno Haible  <bruno@clisp.org>
13015
13016         Tests for module 'tanl'.
13017         * modules/tanl-tests: New file.
13018         * tests/test-tanl.c: New file.
13019
13020         Tests for module 'sqrtl'.
13021         * modules/sqrtl-tests: New file.
13022         * tests/test-sqrtl.c: New file.
13023
13024         Tests for module 'sinl'.
13025         * modules/sinl-tests: New file.
13026         * tests/test-sinl.c: New file.
13027
13028         Tests for module 'logl'.
13029         * modules/logl-tests: New file.
13030         * tests/test-logl.c: New file.
13031
13032         Tests for module 'expl'.
13033         * modules/expl-tests: New file.
13034         * tests/test-expl.c: New file.
13035
13036         Tests for module 'cosl'.
13037         * modules/cosl-tests: New file.
13038         * tests/test-cosl.c: New file.
13039
13040         Tests for module 'atanl'.
13041         * modules/atanl-tests: New file.
13042         * tests/test-atanl.c: New file.
13043
13044         Tests for module 'asinl'.
13045         * modules/asinl-tests: New file.
13046         * tests/test-asinl.c: New file.
13047
13048         Tests for module 'acosl'.
13049         * modules/acosl-tests: New file.
13050         * tests/test-acosl.c: New file.
13051
13052         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13053         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
13054         tanl): Use the standard gnulib idiom.
13055         * lib/cosl.c: Don't include trigl.c and sincosl.c.
13056         * lib/sinl.c: Likewise.
13057         * lib/tanl.c: Don't include trigl.c.
13058         (kernel_tanl): Make static.
13059         * lib/sincosl.c: Include trigl.h first.
13060         * lib/trigl.c: Likewise.
13061         * m4/acosl.m4: New file.
13062         * m4/asinl.m4: New file.
13063         * m4/atanl.m4: New file.
13064         * m4/cosl.m4: New file.
13065         * m4/expl.m4: New file.
13066         * m4/logl.m4: New file.
13067         * m4/sinl.m4: New file.
13068         * m4/sqrtl.m4: New file.
13069         * m4/tanl.m4: New file.
13070         * m4/mathl.m4: Remove file.
13071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
13072         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13073         Don't initialize GNULIB_MATHL.
13074         * modules/acosl: New file.
13075         * modules/asinl: New file.
13076         * modules/atanl: New file.
13077         * modules/cosl: New file.
13078         * modules/expl: New file.
13079         * modules/logl: New file.
13080         * modules/sinl: New file.
13081         * modules/sqrtl: New file.
13082         * modules/tanl: New file.
13083         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13084         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13085         substitute GNULIB_MATHL.
13086         * modules/mathl: Rewritten.
13087         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13088         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13089         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13090         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13091         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13092         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13093         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13094         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13095         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13096
13097 2010-01-18  Bruno Haible  <bruno@clisp.org>
13098
13099         sqrt: Make gl_FUNC_SQRT requirable.
13100         * m4/sqrt.m4: New file.
13101         * modules/sqrt (Files): Add it.
13102         (configure.ac): Invoke gl_FUNC_SQRT.
13103
13104 2010-01-18  Bruno Haible  <bruno@clisp.org>
13105
13106         New modules for common <math.h> functions.
13107         * m4/mathfunc.m4: New file.
13108         * modules/acos: New file.
13109         * modules/asin: New file.
13110         * modules/atan: New file.
13111         * modules/atan2: New file.
13112         * modules/cbrt: New file.
13113         * modules/copysign: New file.
13114         * modules/cos: New file.
13115         * modules/cosh: New file.
13116         * modules/erf: New file.
13117         * modules/erfc: New file.
13118         * modules/exp: New file.
13119         * modules/fabs: New file.
13120         * modules/fmod: New file.
13121         * modules/hypot: New file.
13122         * modules/j0: New file.
13123         * modules/j1: New file.
13124         * modules/jn: New file.
13125         * modules/ldexp: New file.
13126         * modules/lgamma: New file.
13127         * modules/log: New file.
13128         * modules/log10: New file.
13129         * modules/log1p: New file.
13130         * modules/logb: New file.
13131         * modules/modf: New file.
13132         * modules/nextafter: New file.
13133         * modules/pow: New file.
13134         * modules/remainder: New file.
13135         * modules/rint: New file.
13136         * modules/sin: New file.
13137         * modules/sinh: New file.
13138         * modules/sqrt: New file.
13139         * modules/tan: New file.
13140         * modules/tanh: New file.
13141         * modules/y0: New file.
13142         * modules/y1: New file.
13143         * modules/yn: New file.
13144         * doc/posix-functions/acos.texi: Mention the 'acos' module.
13145         * doc/posix-functions/asin.texi: Mention the 'asin' module.
13146         * doc/posix-functions/atan.texi: Mention the 'atan' module.
13147         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
13148         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
13149         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
13150         * doc/posix-functions/cos.texi: Mention the 'cos' module.
13151         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
13152         * doc/posix-functions/erf.texi: Mention the 'erf' module.
13153         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
13154         * doc/posix-functions/exp.texi: Mention the 'exp' module.
13155         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
13156         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
13157         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
13158         * doc/posix-functions/j0.texi: Mention the 'j0' module.
13159         * doc/posix-functions/j1.texi: Mention the 'j1' module.
13160         * doc/posix-functions/jn.texi: Mention the 'jn' module.
13161         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
13162         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
13163         * doc/posix-functions/log.texi: Mention the 'log' module.
13164         * doc/posix-functions/log10.texi: Mention the 'log10' module.
13165         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
13166         * doc/posix-functions/logb.texi: Mention the 'logb' module.
13167         * doc/posix-functions/modf.texi: Mention the 'modf' module.
13168         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
13169         * doc/posix-functions/pow.texi: Mention the 'pow' module.
13170         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
13171         * doc/posix-functions/rint.texi: Mention the 'rint' module.
13172         * doc/posix-functions/sin.texi: Mention the 'sin' module.
13173         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
13174         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
13175         * doc/posix-functions/tan.texi: Mention the 'tan' module.
13176         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
13177         * doc/posix-functions/y0.texi: Mention the 'y0' module.
13178         * doc/posix-functions/y1.texi: Mention the 'y1' module.
13179         * doc/posix-functions/yn.texi: Mention the 'yn' module.
13180
13181 2010-01-18  Jim Meyering  <meyering@redhat.com>
13182
13183         ignore-value: relax license to LGPLv2+
13184         * modules/ignore-value (License): Relax to LGPLv2+.
13185
13186         getdate: don't leak when TZ contains two or more '"'s
13187         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
13188         double quote in TZ after the first one.
13189
13190         readtokens: do not leak internal token_lengths buffer
13191         * lib/readtokens.c (readtokens): Free the local, lengths,
13192         when the supplied "token_lengths" parameter is NULL.
13193
13194 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13195
13196         Fix a couple of missing LIBTHREAD link failures on AIX.
13197         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
13198         $(LIBTHREAD).
13199         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
13200
13201         Link test-poll against INET_PTON_LIB.
13202         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
13203         for inet_pton on Solaris 10.
13204
13205 2010-01-17  Bruno Haible  <bruno@clisp.org>
13206
13207         unistdio/*-sprintf: Fix typo in module description.
13208         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
13209         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
13210         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
13211         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
13212         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
13213         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
13214         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
13215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13216
13217 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13218
13219         gnulib-tool: fix filelist for AIX, HP-UX ksh.
13220         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
13221         variables in shell case patterns, for AIX and HP-UX ksh.
13222
13223         Split large sed scripts, for HP-UX sed.
13224         * modules/stdio: Split sed scripts around 50 sed commands,
13225         to avoid HP-UX limit of 99 commands, in the near future.
13226         * modules/string: Likewise.
13227         * modules/unistd: Likewise.
13228
13229         gnulib-tool: avoid writing in the current directory.
13230         * gnulib-tool (func_emit_lib_Makefile_am)
13231         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
13232         not in the current directory, so concurrent gnulib-tool
13233         instances do not interfere.
13234
13235 2010-01-16  Jim Meyering  <meyering@redhat.com>
13236
13237         doc: update users.txt
13238         * users.txt: Add grep.
13239         (diffutils, gzip): Update URLs.
13240
13241 2010-01-12  Bruno Haible  <bruno@clisp.org>
13242
13243         posix_spawn: Avoid test failure on Cygwin.
13244         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
13245         characters.
13246         Reported by Simon Josefsson.
13247
13248 2010-01-12  Bruno Haible  <bruno@clisp.org>
13249
13250         * tests/test-cond.c (main): When skipping the test, show the reason.
13251
13252 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13253
13254         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13255
13256 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13257
13258         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13259         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13260
13261 2010-01-12  Eric Blake  <ebb9@byu.net>
13262
13263         build: guarantee AS_VAR_IF
13264         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13265         (gl_AS_VAR_IF): Move...
13266         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13267         Reported by Simon Josefsson.
13268
13269 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13270
13271         * lib/stdio.in.h: Fix typo.
13272
13273 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13274
13275         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13276         libgpg-error.
13277
13278 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13279
13280         * tests/test-xalloc-die.sh: Use $EXEEXT.
13281
13282 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13283             Bruno Haible  <bruno@clisp.org>
13284
13285         getlogin, getlogin_r: Avoid test failure.
13286         * tests/test-getlogin.c: Include <stdio.h>.
13287         (main): Skip the test when the function fails because stdin is not a
13288         tty.
13289         * tests/test-getlogin_r.c: Include <stdio.h>.
13290         (main): Skip the test when the function fails because stdin is not a
13291         tty.
13292
13293 2010-01-11  Eric Blake  <ebb9@byu.net>
13294
13295         tests: avoid more large file warnings
13296         * tests/test-fflush.c: Avoid warning about ftell use.
13297         * tests/test-fseek.c: Avoid warning about fseek use.
13298
13299 2010-01-10  Bruno Haible  <bruno@clisp.org>
13300
13301         nproc: Work better on Linux when /proc and /sys are not mounted.
13302         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13303         as lower bound when, on glibc/Linux systems,
13304         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13305         Suggested by Pádraig Brady <P@draigbrady.com>.
13306         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13307
13308         nproc: Refactor.
13309         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13310         extracted from num_processors.
13311         (num_processors): Call it.
13312
13313 2010-01-11  Jim Meyering  <meyering@redhat.com>
13314
13315         utimecmp: avoid new warning from upcoming gcc-4.5.0
13316         * lib/utimecmp.c (BILLION): Define using #define rather than an
13317         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13318
13319 2010-01-11  Eric Blake  <ebb9@byu.net>
13320
13321         math: add portability warnings for classification macros
13322         * modules/math (Depends-on): Add warn-on-use.
13323         (Makefile.am): Provide new substitutions.
13324         * m4/math_h.m4 (gl_MATH_H): Require inline.
13325         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13326         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13327         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13328         implement warnings.
13329
13330         unistd: warn on use of environ without module
13331         * modules/unistd (Depends-on): Add warn-on-use.
13332         (Makefile.am): Provide new substitutions.
13333         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13334         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13335
13336         stdio: warn on suspicious uses
13337         * modules/stdio (Depends-on): Add warn-on-use.
13338         (Makefile.am): Provide new substitutions.
13339         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13340         fseeko.
13341         * lib/stdio.in.h (gets): Always warn on use.
13342         (fseek, ftell): Adjust when warnings are issued, and honor
13343         _GL_NO_LARGE_FILES as a way to silence the warning.
13344         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13345         any warning about large file offsets.
13346         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13347         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13348         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13349         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13350         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13351         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13352         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13353         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13354
13355         warn-on-use: new module
13356         * modules/warn-on-use: New file.
13357         * build-aux/warn-on-use.h: Likewise.
13358         * m4/warn-on-use.m4: Likewise.
13359         * MODULES.html.sh (Support for building): Mention it.
13360
13361 2010-01-10  Bruno Haible  <bruno@clisp.org>
13362
13363         Tests for module 'unistr/u32-strdup'.
13364         * modules/unistr/u32-strdup-tests: New file.
13365         * tests/unistr/test-u32-strdup.c: New file.
13366
13367         Tests for module 'unistr/u16-strdup'.
13368         * modules/unistr/u16-strdup-tests: New file.
13369         * tests/unistr/test-u16-strdup.c: New file.
13370
13371         Tests for module 'unistr/u8-strdup'.
13372         * modules/unistr/u8-strdup-tests: New file.
13373         * tests/unistr/test-u8-strdup.c: New file.
13374         * tests/unistr/test-strdup.h: New file.
13375
13376         Tests for module 'unistr/u32-strncmp'.
13377         * modules/unistr/u32-strncmp-tests: New file.
13378         * tests/unistr/test-u32-strncmp.c: New file.
13379
13380         Tests for module 'unistr/u16-strncmp'.
13381         * modules/unistr/u16-strncmp-tests: New file.
13382         * tests/unistr/test-u16-strncmp.c: New file.
13383
13384         Tests for module 'unistr/u8-strncmp'.
13385         * modules/unistr/u8-strncmp-tests: New file.
13386         * tests/unistr/test-u8-strncmp.c: New file.
13387         * tests/unistr/test-strncmp.h: New file.
13388
13389         Tests for module 'unistr/u32-strcoll'.
13390         * modules/unistr/u32-strcoll-tests: New file.
13391         * tests/unistr/test-u32-strcoll.c: New file.
13392
13393         Tests for module 'unistr/u16-strcoll'.
13394         * modules/unistr/u16-strcoll-tests: New file.
13395         * tests/unistr/test-u16-strcoll.c: New file.
13396
13397         Tests for module 'unistr/u8-strcoll'.
13398         * modules/unistr/u8-strcoll-tests: New file.
13399         * tests/unistr/test-u8-strcoll.c: New file.
13400
13401         Tests for module 'unistr/u32-strcmp'.
13402         * modules/unistr/u32-strcmp-tests: New file.
13403         * tests/unistr/test-u32-strcmp.c: New file.
13404         * tests/unistr/test-u32-strcmp.h: New file.
13405
13406         Tests for module 'unistr/u16-strcmp'.
13407         * modules/unistr/u16-strcmp-tests: New file.
13408         * tests/unistr/test-u16-strcmp.c: New file.
13409         * tests/unistr/test-u16-strcmp.h: New file.
13410
13411         Tests for module 'unistr/u8-strcmp'.
13412         * modules/unistr/u8-strcmp-tests: New file.
13413         * tests/unistr/test-u8-strcmp.c: New file.
13414         * tests/unistr/test-u8-strcmp.h: New file.
13415         * tests/unistr/test-strcmp.h: New file.
13416
13417         Tests for module 'unistr/u32-strncat'.
13418         * modules/unistr/u32-strncat-tests: New file.
13419         * tests/unistr/test-u32-strncat.c: New file.
13420
13421         Tests for module 'unistr/u16-strncat'.
13422         * modules/unistr/u16-strncat-tests: New file.
13423         * tests/unistr/test-u16-strncat.c: New file.
13424
13425         Tests for module 'unistr/u8-strncat'.
13426         * modules/unistr/u8-strncat-tests: New file.
13427         * tests/unistr/test-u8-strncat.c: New file.
13428         * tests/unistr/test-strncat.h: New file.
13429
13430         Tests for module 'unistr/u32-strcat'.
13431         * modules/unistr/u32-strcat-tests: New file.
13432         * tests/unistr/test-u32-strcat.c: New file.
13433
13434         Tests for module 'unistr/u16-strcat'.
13435         * modules/unistr/u16-strcat-tests: New file.
13436         * tests/unistr/test-u16-strcat.c: New file.
13437
13438         Tests for module 'unistr/u8-strcat'.
13439         * modules/unistr/u8-strcat-tests: New file.
13440         * tests/unistr/test-u8-strcat.c: New file.
13441         * tests/unistr/test-strcat.h: New file.
13442
13443         Tests for module 'unistr/u32-stpncpy'.
13444         * modules/unistr/u32-stpncpy-tests: New file.
13445         * tests/unistr/test-u32-stpncpy.c: New file.
13446
13447         Tests for module 'unistr/u16-stpncpy'.
13448         * modules/unistr/u16-stpncpy-tests: New file.
13449         * tests/unistr/test-u16-stpncpy.c: New file.
13450
13451         Tests for module 'unistr/u8-stpncpy'.
13452         * modules/unistr/u8-stpncpy-tests: New file.
13453         * tests/unistr/test-u8-stpncpy.c: New file.
13454         * tests/unistr/test-stpncpy.h: New file.
13455
13456         Tests for module 'unistr/u32-strncpy'.
13457         * modules/unistr/u32-strncpy-tests: New file.
13458         * tests/unistr/test-u32-strncpy.c: New file.
13459
13460         Tests for module 'unistr/u16-strncpy'.
13461         * modules/unistr/u16-strncpy-tests: New file.
13462         * tests/unistr/test-u16-strncpy.c: New file.
13463
13464         Tests for module 'unistr/u8-strncpy'.
13465         * modules/unistr/u8-strncpy-tests: New file.
13466         * tests/unistr/test-u8-strncpy.c: New file.
13467         * tests/unistr/test-strncpy.h: New file.
13468
13469         Tests for module 'unistr/u32-stpcpy'.
13470         * modules/unistr/u32-stpcpy-tests: New file.
13471         * tests/unistr/test-u32-stpcpy.c: New file.
13472
13473         Tests for module 'unistr/u16-stpcpy'.
13474         * modules/unistr/u16-stpcpy-tests: New file.
13475         * tests/unistr/test-u16-stpcpy.c: New file.
13476
13477         Tests for module 'unistr/u8-stpcpy'.
13478         * modules/unistr/u8-stpcpy-tests: New file.
13479         * tests/unistr/test-u8-stpcpy.c: New file.
13480         * tests/unistr/test-stpcpy.h: New file.
13481
13482         Tests for module 'unistr/u32-strcpy'.
13483         * modules/unistr/u32-strcpy-tests: New file.
13484         * tests/unistr/test-u32-strcpy.c: New file.
13485
13486         Tests for module 'unistr/u16-strcpy'.
13487         * modules/unistr/u16-strcpy-tests: New file.
13488         * tests/unistr/test-u16-strcpy.c: New file.
13489
13490         Tests for module 'unistr/u8-strcpy'.
13491         * modules/unistr/u8-strcpy-tests: New file.
13492         * tests/unistr/test-u8-strcpy.c: New file.
13493         * tests/unistr/test-strcpy.h: New file.
13494
13495         Tests for module 'unistr/u32-strnlen'.
13496         * modules/unistr/u32-strnlen-tests: New file.
13497         * tests/unistr/test-u32-strnlen.c: New file.
13498
13499         Tests for module 'unistr/u16-strnlen'.
13500         * modules/unistr/u16-strnlen-tests: New file.
13501         * tests/unistr/test-u16-strnlen.c: New file.
13502
13503         Tests for module 'unistr/u8-strnlen'.
13504         * modules/unistr/u8-strnlen-tests: New file.
13505         * tests/unistr/test-u8-strnlen.c: New file.
13506         * tests/unistr/test-strnlen.h: New file.
13507
13508         Tests for module 'unistr/u32-strlen'.
13509         * modules/unistr/u32-strlen-tests: New file.
13510         * tests/unistr/test-u32-strlen.c: New file.
13511
13512         Tests for module 'unistr/u16-strlen'.
13513         * modules/unistr/u16-strlen-tests: New file.
13514         * tests/unistr/test-u16-strlen.c: New file.
13515
13516         Tests for module 'unistr/u8-strlen'.
13517         * modules/unistr/u8-strlen-tests: New file.
13518         * tests/unistr/test-u8-strlen.c: New file.
13519
13520         Tests for module 'unistr/u32-prev'.
13521         * modules/unistr/u32-prev-tests: New file.
13522         * tests/unistr/test-u32-prev.c: New file.
13523
13524         Tests for module 'unistr/u16-prev'.
13525         * modules/unistr/u16-prev-tests: New file.
13526         * tests/unistr/test-u16-prev.c: New file.
13527
13528         Tests for module 'unistr/u8-prev'.
13529         * modules/unistr/u8-prev-tests: New file.
13530         * tests/unistr/test-u8-prev.c: New file.
13531
13532         Tests for module 'unistr/u32-next'.
13533         * modules/unistr/u32-next-tests: New file.
13534         * tests/unistr/test-u32-next.c: New file.
13535
13536         Tests for module 'unistr/u16-next'.
13537         * modules/unistr/u16-next-tests: New file.
13538         * tests/unistr/test-u16-next.c: New file.
13539
13540         Tests for module 'unistr/u8-next'.
13541         * modules/unistr/u8-next-tests: New file.
13542         * tests/unistr/test-u8-next.c: New file.
13543
13544         Tests for module 'unistr/u32-strmbtouc'.
13545         * modules/unistr/u32-strmbtouc-tests: New file.
13546         * tests/unistr/test-u32-strmbtouc.c: New file.
13547
13548         Tests for module 'unistr/u16-strmbtouc'.
13549         * modules/unistr/u16-strmbtouc-tests: New file.
13550         * tests/unistr/test-u16-strmbtouc.c: New file.
13551
13552         Tests for module 'unistr/u8-strmbtouc'.
13553         * modules/unistr/u8-strmbtouc-tests: New file.
13554         * tests/unistr/test-u8-strmbtouc.c: New file.
13555
13556         Tests for module 'unistr/u32-strmblen'.
13557         * modules/unistr/u32-strmblen-tests: New file.
13558         * tests/unistr/test-u32-strmblen.c: New file.
13559
13560         Tests for module 'unistr/u16-strmblen'.
13561         * modules/unistr/u16-strmblen-tests: New file.
13562         * tests/unistr/test-u16-strmblen.c: New file.
13563
13564         Tests for module 'unistr/u8-strmblen'.
13565         * modules/unistr/u8-strmblen-tests: New file.
13566         * tests/unistr/test-u8-strmblen.c: New file.
13567
13568         Tests for module 'unistr/u32-cpy-alloc'.
13569         * modules/unistr/u32-cpy-alloc-tests: New file.
13570         * tests/unistr/test-u32-cpy-alloc.c: New file.
13571
13572         Tests for module 'unistr/u16-cpy-alloc'.
13573         * modules/unistr/u16-cpy-alloc-tests: New file.
13574         * tests/unistr/test-u16-cpy-alloc.c: New file.
13575
13576         Tests for module 'unistr/u8-cpy-alloc'.
13577         * modules/unistr/u8-cpy-alloc-tests: New file.
13578         * tests/unistr/test-u8-cpy-alloc.c: New file.
13579         * tests/unistr/test-cpy-alloc.h: New file.
13580
13581         Tests for module 'unistr/u32-mbsnlen'.
13582         * modules/unistr/u32-mbsnlen-tests: New file.
13583         * tests/unistr/test-u32-mbsnlen.c: New file.
13584
13585         Tests for module 'unistr/u16-mbsnlen'.
13586         * modules/unistr/u16-mbsnlen-tests: New file.
13587         * tests/unistr/test-u16-mbsnlen.c: New file.
13588
13589         Tests for module 'unistr/u8-mbsnlen'.
13590         * modules/unistr/u8-mbsnlen-tests: New file.
13591         * tests/unistr/test-u8-mbsnlen.c: New file.
13592
13593         Tests for module 'unistr/u32-chr'.
13594         * modules/unistr/u32-chr-tests: New file.
13595         * tests/unistr/test-u32-chr.c: New file.
13596
13597         Tests for module 'unistr/u16-chr'.
13598         * modules/unistr/u16-chr-tests: New file.
13599         * tests/unistr/test-u16-chr.c: New file.
13600
13601         Tests for module 'unistr/u8-chr'.
13602         * modules/unistr/u8-chr-tests: New file.
13603         * tests/unistr/test-u8-chr.c: New file.
13604         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13605
13606         Tests for module 'unistr/u32-cmp2'.
13607         * modules/unistr/u32-cmp2-tests: New file.
13608         * tests/unistr/test-u32-cmp2.c: New file.
13609
13610         Tests for module 'unistr/u16-cmp2'.
13611         * modules/unistr/u16-cmp2-tests: New file.
13612         * tests/unistr/test-u16-cmp2.c: New file.
13613
13614         Tests for module 'unistr/u8-cmp2'.
13615         * modules/unistr/u8-cmp2-tests: New file.
13616         * tests/unistr/test-u8-cmp2.c: New file.
13617         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13618
13619         Tests for module 'unistr/u32-cmp'.
13620         * modules/unistr/u32-cmp-tests: New file.
13621         * tests/unistr/test-u32-cmp.c: New file.
13622
13623         Tests for module 'unistr/u16-cmp'.
13624         * modules/unistr/u16-cmp-tests: New file.
13625         * tests/unistr/test-u16-cmp.c: New file.
13626
13627         Tests for module 'unistr/u8-cmp'.
13628         * modules/unistr/u8-cmp-tests: New file.
13629         * tests/unistr/test-u8-cmp.c: New file.
13630         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13631
13632         Tests for module 'unistr/u32-set'.
13633         * modules/unistr/u32-set-tests: New file.
13634         * tests/unistr/test-u32-set.c: New file.
13635
13636         Tests for module 'unistr/u16-set'.
13637         * modules/unistr/u16-set-tests: New file.
13638         * tests/unistr/test-u16-set.c: New file.
13639
13640         Tests for module 'unistr/u8-set'.
13641         * modules/unistr/u8-set-tests: New file.
13642         * tests/unistr/test-u8-set.c: New file.
13643         * tests/unistr/test-set.h: New file.
13644
13645         Tests for module 'unistr/u32-move'.
13646         * modules/unistr/u32-move-tests: New file.
13647         * tests/unistr/test-u32-move.c: New file.
13648
13649         Tests for module 'unistr/u16-move'.
13650         * modules/unistr/u16-move-tests: New file.
13651         * tests/unistr/test-u16-move.c: New file.
13652
13653         Tests for module 'unistr/u8-move'.
13654         * modules/unistr/u8-move-tests: New file.
13655         * tests/unistr/test-u8-move.c: New file.
13656         * tests/unistr/test-move.h: New file.
13657
13658         Tests for module 'unistr/u32-cpy'.
13659         * modules/unistr/u32-cpy-tests: New file.
13660         * tests/unistr/test-u32-cpy.c: New file.
13661
13662         Tests for module 'unistr/u16-cpy'.
13663         * modules/unistr/u16-cpy-tests: New file.
13664         * tests/unistr/test-u16-cpy.c: New file.
13665
13666         Tests for module 'unistr/u8-cpy'.
13667         * modules/unistr/u8-cpy-tests: New file.
13668         * tests/unistr/test-u8-cpy.c: New file.
13669         * tests/unistr/test-cpy.h: New file.
13670
13671 2010-01-09  Bruno Haible  <bruno@clisp.org>
13672
13673         Tests for module 'unistr/u32-uctomb'.
13674         * modules/unistr/u32-uctomb-tests: New file.
13675         * tests/unistr/test-u32-uctomb.c: New file.
13676
13677         Tests for module 'unistr/u16-uctomb'.
13678         * modules/unistr/u16-uctomb-tests: New file.
13679         * tests/unistr/test-u16-uctomb.c: New file.
13680
13681         Tests for module 'unistr/u8-uctomb'.
13682         * modules/unistr/u8-uctomb-tests: New file.
13683         * tests/unistr/test-u8-uctomb.c: New file.
13684
13685         Tests for module 'unistr/u32-mbtoucr'.
13686         * modules/unistr/u32-mbtoucr-tests: New file.
13687         * tests/unistr/test-u32-mbtoucr.c: New file.
13688
13689         Tests for module 'unistr/u16-mbtoucr'.
13690         * modules/unistr/u16-mbtoucr-tests: New file.
13691         * tests/unistr/test-u16-mbtoucr.c: New file.
13692
13693         Tests for module 'unistr/u8-mbtoucr'.
13694         * modules/unistr/u8-mbtoucr-tests: New file.
13695         * tests/unistr/test-u8-mbtoucr.c: New file.
13696
13697         Tests for module 'unistr/u32-mbtouc'.
13698         * modules/unistr/u32-mbtouc-tests: New file.
13699         * tests/unistr/test-u32-mbtouc.c: New file.
13700
13701         Tests for module 'unistr/u16-mbtouc'.
13702         * modules/unistr/u16-mbtouc-tests: New file.
13703         * tests/unistr/test-u16-mbtouc.c: New file.
13704
13705         Tests for module 'unistr/u8-mbtouc'.
13706         * modules/unistr/u8-mbtouc-tests: New file.
13707         * tests/unistr/test-u8-mbtouc.c: New file.
13708
13709         Tests for module 'unistr/u32-mbtouc-unsafe'.
13710         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13711         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13712         * tests/unistr/test-u32-mbtouc.h: New file.
13713
13714         Tests for module 'unistr/u16-mbtouc-unsafe'.
13715         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13716         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13717         * tests/unistr/test-u16-mbtouc.h: New file.
13718
13719         Tests for module 'unistr/u8-mbtouc-unsafe'.
13720         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13721         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13722         * tests/unistr/test-u8-mbtouc.h: New file.
13723
13724         Tests for module 'unistr/u32-mblen'.
13725         * modules/unistr/u32-mblen-tests: New file.
13726         * tests/unistr/test-u32-mblen.c: New file.
13727
13728         Tests for module 'unistr/u16-mblen'.
13729         * modules/unistr/u16-mblen-tests: New file.
13730         * tests/unistr/test-u16-mblen.c: New file.
13731
13732         Tests for module 'unistr/u8-mblen'.
13733         * modules/unistr/u8-mblen-tests: New file.
13734         * tests/unistr/test-u8-mblen.c: New file.
13735
13736         Tests for module 'unistr/u32-to-u16'.
13737         * modules/unistr/u32-to-u16-tests: New file.
13738         * tests/unistr/test-u32-to-u16.c: New file.
13739
13740         Tests for module 'unistr/u32-to-u8'.
13741         * modules/unistr/u32-to-u8-tests: New file.
13742         * tests/unistr/test-u32-to-u8.c: New file.
13743
13744         Tests for module 'unistr/u16-to-u32'.
13745         * modules/unistr/u16-to-u32-tests: New file.
13746         * tests/unistr/test-u16-to-u32.c: New file.
13747
13748         Tests for module 'unistr/u16-to-u8'.
13749         * modules/unistr/u16-to-u8-tests: New file.
13750         * tests/unistr/test-u16-to-u8.c: New file.
13751
13752         Tests for module 'unistr/u8-to-u32'.
13753         * modules/unistr/u8-to-u32-tests: New file.
13754         * tests/unistr/test-u8-to-u32.c: New file.
13755
13756         Tests for module 'unistr/u8-to-u16'.
13757         * modules/unistr/u8-to-u16-tests: New file.
13758         * tests/unistr/test-u8-to-u16.c: New file.
13759
13760         Tests for module 'unistr/u32-check'.
13761         * modules/unistr/u32-check-tests: New file.
13762         * tests/unistr/test-u32-check.c: New file.
13763
13764         Tests for module 'unistr/u16-check'.
13765         * modules/unistr/u16-check-tests: New file.
13766         * tests/unistr/test-u16-check.c: New file.
13767
13768         Tests for module 'unistr/u8-check'.
13769         * modules/unistr/u8-check-tests: New file.
13770         * tests/unistr/test-u8-check.c: New file.
13771
13772         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13773         (category_equals): New function.
13774         (main): Add more tests.
13775         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13776
13777         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13778
13779 2010-01-10  Bruno Haible  <bruno@clisp.org>
13780
13781         unistr/u*-strcoll: Try harder to distinguish different strings.
13782         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13783         compare s1 and s2 to see if they are different.
13784
13785 2010-01-10  Bruno Haible  <bruno@clisp.org>
13786
13787         unistr/u*-stpncpy: Fix the return value.
13788         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13789         description of the return value consistent with stpncpy in glibc.
13790         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13791         written non-NUL unit.
13792
13793 2010-01-10  Bruno Haible  <bruno@clisp.org>
13794
13795         unistr/u*-next: Add missing dependencies.
13796         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13797         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13798         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13799
13800 2010-01-10  Bruno Haible  <bruno@clisp.org>
13801
13802         unistr/u8-mbsnlen: Fix return value for incomplete character.
13803         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13804         u8_mblen.
13805         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13806         Remove unistr/u8-mblen.
13807         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13808         u16_mblen.
13809         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13810         Remove unistr/u16-mblen.
13811
13812 2010-01-10  Bruno Haible  <bruno@clisp.org>
13813
13814         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13815         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13816         Reported by Brian Gough <bjg@gnu.org> and
13817         Chris Clayton <chris2553@googlemail.com> via
13818         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13819
13820 2010-01-09  Bruno Haible  <bruno@clisp.org>
13821
13822         unistr/u16-to-u32: Reject invalid input.
13823         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13824         u16_mbtouc.
13825         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13826         Remove unistr/u16-mbtouc.
13827
13828         unistr/u16-to-u8: Reject invalid input.
13829         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13830         u16_mbtouc.
13831         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13832         Remove unistr/u16-mbtouc.
13833
13834         unistr/u8-to-u32: Reject invalid input.
13835         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13836         u8_mbtouc.
13837         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13838         Remove unistr/u8-mbtouc.
13839
13840         unistr/u8-to-u16: Reject invalid input.
13841         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13842         u8_mbtouc.
13843         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13844         Remove unistr/u8-mbtouc.
13845
13846 2010-01-09  Bruno Haible  <bruno@clisp.org>
13847
13848         Tests for module 'getlogin'.
13849         * modules/getlogin-tests: New file.
13850         * tests/test-getlogin.c: New file.
13851
13852         New module 'getlogin'.
13853         * lib/unistd.in.h (getlogin): New declaration.
13854         * lib/getlogin.c: New file.
13855         * m4/getlogin.m4: New file.
13856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13857         HAVE_GETLOGIN.
13858         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13859         HAVE_GETLOGIN.
13860         * modules/getlogin: New file.
13861         * doc/posix-functions/getlogin.texi: Mention the new module.
13862         Reported by John W. Eaton <jwe@gnu.org>.
13863
13864 2010-01-09  Bruno Haible  <bruno@clisp.org>
13865
13866         getlogin_r: Support for native Windows.
13867         * lib/getlogin_r.c: Include <windows.h>
13868         (getlogin_r): Implement for native Windows.
13869         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13870         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13871         via John W. Eaton <jwe@gnu.org>.
13872
13873 2010-01-09  Bruno Haible  <bruno@clisp.org>
13874
13875         getlogin_r: Small fixes.
13876         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13877         succeeds.
13878         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13879         before testing whether getlogin_r is declared. No need to set
13880         HAVE_DECL_GETLOGIN_R to 1.
13881         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13882
13883 2010-01-09  Bruno Haible  <bruno@clisp.org>
13884
13885         * lib/unistd.in.h (getlogin_r): Add comment.
13886
13887 2010-01-09  Bruno Haible  <bruno@clisp.org>
13888
13889         Tests for module 'getlogin_r'.
13890         * modules/getlogin_r-tests: New file.
13891         * tests/test-getlogin_r.c: New file.
13892
13893 2010-01-09  Jim Meyering  <meyering@redhat.com>
13894
13895         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13896         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13897         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13898
13899 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13900
13901         * lib/dup2.c (rpl_dup2): Improve comment.
13902
13903 2010-01-08  Eric Blake  <ebb9@byu.net>
13904
13905         maint.mk: allow packages to add makefile @@ exceptions
13906         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13907         (sc_makefile_check): Rename...
13908         (sc_makefile_at_at_check): ...to this, and use hook.
13909
13910         dup2: work around mingw bug
13911         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13912         Reported by Simon Josefsson.
13913
13914 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13915
13916         glob: Fix C++ compilation.
13917         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13918         C++.
13919
13920 2010-01-07  Bruno Haible  <bruno@clisp.org>
13921
13922         Fix indentation of wctype.in.h, broken since 2007-01-06.
13923         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13924
13925 2010-01-07  Bruno Haible  <bruno@clisp.org>
13926
13927         mbslen: Avoid collision with system function.
13928         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13929         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13930         * m4/mbslen.m4: New file.
13931         * modules/mbslen (Files): Add it.
13932         (configure.ac): Invoke gl_MBSLEN.
13933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13934         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13935         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13936         via Ian Beckwith <ianb@erislabs.net>.
13937
13938 2010-01-07  Bruno Haible  <bruno@clisp.org>
13939
13940         dirent: Document the last fix.
13941         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13942
13943 2010-01-07  Bruno Haible  <bruno@clisp.org>
13944
13945         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13946         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13947         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13948         va_list are defined.
13949         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13950         Reported by Eric Blake.
13951
13952 2010-01-07  Bruno Haible  <bruno@clisp.org>
13953
13954         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13955         * modules/xlist (Depends-on): Add 'list',
13956         * modules/xoset (Depends-on): Add 'oset'.
13957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13958
13959 2010-01-07  Bruno Haible  <bruno@clisp.org>
13960
13961         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13962         * doc/posix-functions/strncasecmp.texi: Likewise.
13963
13964 2010-01-07  Bruno Haible  <bruno@clisp.org>
13965
13966         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13967
13968 2010-01-07  John W. Eaton  <jwe@octave.org>
13969
13970         wctype: allow C++ use
13971         * lib/wctype.in.h: Add extern "C" block for C++.
13972
13973 2010-01-06  Eric Blake  <ebb9@byu.net>
13974
13975         maint.mk: detect incorrect GFDL usage
13976         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13977
13978 2010-01-06  Jim Meyering  <meyering@redhat.com>
13979         and Eric Blake  <ebb9@byu.net>
13980
13981         maint.mk: ignore multi-line copyright in NEWS
13982         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13983
13984 2010-01-06  Eric Blake  <ebb9@byu.net>
13985
13986         select: add missing dependency
13987         * modules/select-tests (Depends-on): Move sockets dependency...
13988         * modules/select (Depends-on): ...here.
13989         Reported by Ian Beckwith.
13990
13991         doc: regenerate INSTALL
13992         * doc/INSTALL: Reflect recent autoconf update.
13993         * doc/INSTALL.ISO: Likewise.
13994         * doc/INSTALL.UTF-8: Likewise.
13995
13996         pread: fix compilation on glibc
13997         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13998         Reported by Ralf Wildenhues.
13999
14000         dirent: fix test failure
14001         * lib/dirent.in.h (includes): Guarantee ino_t.
14002         Reported by Ralf Wildenhues.
14003
14004 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
14005
14006         linkat, renameat: avoid bad free
14007         * lib/at-func2.c (at_func2): Fix typo.
14008         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
14009
14010 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14011
14012         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
14013         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
14014         to avoid failure of symlink test later.
14015
14016 2010-01-06  Eric Blake  <ebb9@byu.net>
14017
14018         stdio, unistd: guarantee ssize_t
14019         * lib/unistd.in.h (includes): Ensure that types required by POSIX
14020         2008 are exposed when needed.
14021         * lib/stdio.in.h (includes): Likewise.
14022         Reported by Ralf Wildenhues.
14023
14024 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14025
14026         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
14027         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
14028         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
14029
14030 2010-01-06  Jim Meyering  <meyering@redhat.com>
14031
14032         readtokens: this module *does* require xalloc.h
14033         It uses only functions that were omitted by the old syntax-check rule.
14034         * lib/readtokens.c: Include "xalloc.h" once again.
14035         * modules/readtokens (Depends-on): Add xalloc.
14036         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
14037
14038 2010-01-05  Eric Blake  <ebb9@byu.net>
14039
14040         maint: support 'make announcement' from a VPATH build
14041         * top/maint.mk (announcement): Look for correct NEWS file.
14042
14043 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
14044
14045         utimens (fdutimens): ignore a negative FD, per contract
14046         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
14047         when we have a valid file descriptor.  Otherwise, using a brand
14048         new glibc (with just-patched futimens that now fails with EBADF)
14049         would cause this function to fail with ENOSYS.
14050         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
14051         See also http://bugzilla.redhat.com/552320.
14052
14053 2010-01-05  Eric Blake  <ebb9@byu.net>
14054
14055         strcase: document what it provides
14056         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
14057         gnulib module.
14058         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
14059         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
14060
14061 2010-01-05  Jim Meyering  <meyering@redhat.com>
14062
14063         maint: remove useless inclusions of "xalloc.h"
14064         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
14065         * lib/readtokens.c: Likewise.
14066         * lib/same.c: Likewise.
14067         * modules/getloadavg (Depends-on): Remove xalloc.
14068         * modules/readtokens: Likewise.
14069         * modules/same: Likewise.
14070
14071         maint.mk: include 4 more function names in alloca.h-checking regexp
14072         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
14073         regexp.  Before, we would give a false-positive (saying alloca.h
14074         is included unnecessarily) when the only uses involved omitted symbols.
14075
14076         xalloc.h: use consistent formatting
14077         * lib/xalloc.h: Move declarations to start in the first column.
14078
14079 2010-01-05  Eric Blake  <ebb9@byu.net>
14080
14081         mkdir: avoid xalloc
14082         * lib/mkdir.c (includes): Drop unused header.
14083         Reported by John W. Eaton.
14084
14085 2010-01-04  Jim Meyering  <meyering@redhat.com>
14086
14087         nl_langinfo: avoid configure-time syntax error
14088         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14089         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14090         the empty string.  Don't let that provoke a shell syntax error.
14091
14092         regcomp, regexec, fnmatch: avoid array bounds read error
14093         * lib/regcomp.c (build_equiv_class): From glibc:
14094         Use only the low 24 bits of a findidx return value as an index
14095         into the weights array.  Patch by Ulrich Drepper:
14096         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14097         * lib/regexec.c (check_node_accept_bytes): Likewise.
14098         * lib/fnmatch_loop.c (FCT): Likewise.
14099
14100         regcomp: skip collseq lookup when there are no rules
14101         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14102         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14103
14104         regcomp: recognize ill-formed { } expressions
14105         * lib/regcomp.c (parse_dup_op): From glibc:
14106         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14107
14108         regcomp: fix typo in comment
14109         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14110         s/satisfy/satisfies/.
14111
14112         regcomp: sync from glibc: remove dead store
14113         * lib/regcomp.c (duplicate_node_closure): Remove useless
14114         search_duplicated_node call and dead store.
14115
14116         regcomp: sync from glibc; always use nl_langinfo
14117         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14118         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14119         * modules/regex (Depends-on): Add nl_langinfo.
14120
14121 2010-01-04  Eric Blake  <ebb9@byu.net>
14122
14123         fdopendir: fix configure test
14124         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14125
14126 2010-01-01  Bruno Haible  <bruno@clisp.org>
14127
14128         wchar: Remove unused configure check.
14129         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
14130
14131 2010-01-01  Eric Blake  <ebb9@byu.net>
14132
14133         headers: make check of system header explicit
14134         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
14135         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
14136         ourselves.
14137         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14140         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
14141         internals.
14142         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
14143         missing.
14144         Suggested by Bruno Haible.
14145
14146 2010-01-01  Jim Meyering  <meyering@redhat.com>
14147
14148         ChangeLog: tweak to eliminate unnecessary copyright line
14149         * ChangeLog: Remove a copyright line that was mistakenly updated
14150         by today's update-copyright run.  Reported by Eric Blake.
14151
14152         test-update-copyright: don't let envvar setting cause test failure
14153         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14154
14155 2010-01-01  Bruno Haible  <bruno@clisp.org>
14156
14157         localename: Avoid gcc warning.
14158         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
14159         function if it is not used.
14160
14161 2010-01-01  Jim Meyering  <meyering@redhat.com>
14162
14163         update nearly all FSF copyright year lists to include 2010
14164         Use the same procedure as for 2009, outlined in
14165         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
14166
14167         version-etc: set COPYRIGHT_YEAR to 2010
14168         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
14169
14170 2009-12-31  Eric Blake  <ebb9@byu.net>
14171
14172         doc: correct availability of cygwin 1.5.x getopt
14173         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
14174         variables.
14175         * doc/posix-functions/opterr.texi (opterr): Likewise.
14176         * doc/posix-functions/optind.texi (optind): Likewise.
14177         * doc/posix-functions/optopt.texi (optopt): Likewise.
14178         * doc/posix-functions/tzname.texi (tzname): Likewise.
14179
14180         openat: update maintainer
14181         * modules/openat (Maintainer): Add myself.
14182
14183         utimens: avoid shadowing warning
14184         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
14185         buffers into one, to avoid shadowing, as well as avoiding a
14186         redundant stat.
14187         Reported by Jim Meyering.
14188
14189         test-dup2: avoid compiler warning
14190         * tests/test-dup2.c (is_inheritable): Only define if used.
14191
14192 2010-01-01  Bruno Haible  <bruno@clisp.org>
14193
14194         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
14195         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
14196         defined, use wctomb instead of wcrtomb.
14197
14198 2010-01-01  Bruno Haible  <bruno@clisp.org>
14199
14200         iconv: Reject native Solaris iconv.
14201         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
14202         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
14203
14204 2009-12-31  Bruno Haible  <bruno@clisp.org>
14205
14206         * tests/test-signal.c (main): Remove test of 'SIG'.
14207
14208 2009-12-31  Bruno Haible  <bruno@clisp.org>
14209
14210         spawn: Fix incomplete fix.
14211         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14212         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14213         warnings for GNULIB_POSIXCHECK again.
14214         Reported by Eric Blake.
14215
14216 2009-12-31  Bruno Haible  <bruno@clisp.org>
14217
14218         Avoid namespace pollution on glibc systems.
14219         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
14220         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
14221         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
14222         glibc systems.
14223
14224 2009-12-31  Bruno Haible  <bruno@clisp.org>
14225
14226         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
14227         (gl_REPLACE_WCHAR_H): Turn into a no-op.
14228         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
14229         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14230         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14231         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14232         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14233
14234 2009-12-31  Bruno Haible  <bruno@clisp.org>
14235
14236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14237         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
14238         afterwards.
14239
14240 2009-12-31  Bruno Haible  <bruno@clisp.org>
14241
14242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
14243         SYS_UTSNAME_H.
14244
14245 2009-12-31  Bruno Haible  <bruno@clisp.org>
14246
14247         spawn: Fix misapplied patch.
14248         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
14249         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
14250         warnings for GNULIB_POSIXCHECK.
14251
14252 2009-12-31  Bruno Haible  <bruno@clisp.org>
14253
14254         times: Update after sys_times changed.
14255         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14256         * modules/times (Files): Add it.
14257         (configure.ac): Invoke gl_FUNC_TIMES.
14258
14259 2009-12-31  Bruno Haible  <bruno@clisp.org>
14260
14261         Use AC_C_INLINE where necessary.
14262         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14263         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14265         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14266         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14267         * m4/mbiter.m4 (gl_MBITER): Likewise.
14268         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14269         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14270         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14271         * modules/u64 (configure.ac): Likewise.
14272
14273 2009-12-31  Bruno Haible  <bruno@clisp.org>
14274
14275         Use AC_C_INLINE instead of module 'inline' where possible.
14276         * modules/inline (Description): Clarify purpose.
14277         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14278         * modules/count-one-bits (Depends-on): Remove inline.
14279         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14280         * modules/openat (Depends-on): Remove inline.
14281         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14282         instead of depending on module 'inline'.
14283         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14284         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14285         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14286         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14287         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14288         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14289         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14290         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14291         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14292         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14293         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14294         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14295         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14296         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14297         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14298         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14299         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14300         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14301         Likewise.
14302         * modules/unictype/property-ascii-hex-digit (Depends-on,
14303         configure.ac): Likewise.
14304         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14305         configure.ac): Likewise.
14306         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14307         configure.ac): Likewise.
14308         * modules/unictype/property-bidi-block-separator (Depends-on,
14309         configure.ac): Likewise.
14310         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14311         configure.ac): Likewise.
14312         * modules/unictype/property-bidi-common-separator (Depends-on,
14313         configure.ac): Likewise.
14314         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14315         Likewise.
14316         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14317         configure.ac): Likewise.
14318         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14319         configure.ac): Likewise.
14320         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14321         configure.ac): Likewise.
14322         * modules/unictype/property-bidi-european-digit (Depends-on,
14323         configure.ac): Likewise.
14324         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14325         configure.ac): Likewise.
14326         * modules/unictype/property-bidi-left-to-right (Depends-on,
14327         configure.ac): Likewise.
14328         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14329         configure.ac): Likewise.
14330         * modules/unictype/property-bidi-other-neutral (Depends-on,
14331         configure.ac): Likewise.
14332         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14333         Likewise.
14334         * modules/unictype/property-bidi-segment-separator (Depends-on,
14335         configure.ac): Likewise.
14336         * modules/unictype/property-bidi-whitespace (Depends-on,
14337         configure.ac): Likewise.
14338         * modules/unictype/property-combining (Depends-on, configure.ac):
14339         Likewise.
14340         * modules/unictype/property-composite (Depends-on, configure.ac):
14341         Likewise.
14342         * modules/unictype/property-currency-symbol (Depends-on,
14343         configure.ac): Likewise.
14344         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14345         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14346         Likewise.
14347         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14348         configure.ac): Likewise.
14349         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14350         Likewise.
14351         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14352         Likewise.
14353         * modules/unictype/property-extender (Depends-on, configure.ac):
14354         Likewise.
14355         * modules/unictype/property-format-control (Depends-on, configure.ac):
14356         Likewise.
14357         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14358         Likewise.
14359         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14360         Likewise.
14361         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14362         Likewise.
14363         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14364         Likewise.
14365         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14366         Likewise.
14367         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14368         Likewise.
14369         * modules/unictype/property-id-start (Depends-on, configure.ac):
14370         Likewise.
14371         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14372         Likewise.
14373         * modules/unictype/property-ids-binary-operator (Depends-on,
14374         configure.ac): Likewise.
14375         * modules/unictype/property-ids-trinary-operator (Depends-on,
14376         configure.ac): Likewise.
14377         * modules/unictype/property-ignorable-control (Depends-on,
14378         configure.ac): Likewise.
14379         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14380         Likewise.
14381         * modules/unictype/property-join-control (Depends-on, configure.ac):
14382         Likewise.
14383         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14384         Likewise.
14385         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14386         Likewise.
14387         * modules/unictype/property-logical-order-exception (Depends-on,
14388         configure.ac): Likewise.
14389         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14390         Likewise.
14391         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14392         * modules/unictype/property-non-break (Depends-on, configure.ac):
14393         Likewise.
14394         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14395         Likewise.
14396         * modules/unictype/property-numeric (Depends-on, configure.ac):
14397         Likewise.
14398         * modules/unictype/property-other-alphabetic (Depends-on,
14399         configure.ac): Likewise.
14400         * modules/unictype/property-other-default-ignorable-code-point
14401         (Depends-on, configure.ac): Likewise.
14402         * modules/unictype/property-other-grapheme-extend (Depends-on,
14403         configure.ac): Likewise.
14404         * modules/unictype/property-other-id-continue (Depends-on,
14405         configure.ac): Likewise.
14406         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14407         Likewise.
14408         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14409         Likewise.
14410         * modules/unictype/property-other-math (Depends-on, configure.ac):
14411         Likewise.
14412         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14413         Likewise.
14414         * modules/unictype/property-paired-punctuation (Depends-on,
14415         configure.ac): Likewise.
14416         * modules/unictype/property-paragraph-separator (Depends-on,
14417         configure.ac): Likewise.
14418         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14419         Likewise.
14420         * modules/unictype/property-pattern-white-space (Depends-on,
14421         configure.ac): Likewise.
14422         * modules/unictype/property-private-use (Depends-on, configure.ac):
14423         Likewise.
14424         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14425         Likewise.
14426         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14427         Likewise.
14428         * modules/unictype/property-radical (Depends-on, configure.ac):
14429         Likewise.
14430         * modules/unictype/property-sentence-terminal (Depends-on,
14431         configure.ac): Likewise.
14432         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14433         Likewise.
14434         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14435         * modules/unictype/property-terminal-punctuation (Depends-on,
14436         configure.ac): Likewise.
14437         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14438         Likewise.
14439         * modules/unictype/property-unassigned-code-value (Depends-on,
14440         configure.ac): Likewise.
14441         * modules/unictype/property-unified-ideograph (Depends-on,
14442         configure.ac): Likewise.
14443         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14444         Likewise.
14445         * modules/unictype/property-variation-selector (Depends-on,
14446         configure.ac): Likewise.
14447         * modules/unictype/property-white-space (Depends-on, configure.ac):
14448         Likewise.
14449         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14450         Likewise.
14451         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14452         Likewise.
14453         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14454         Likewise.
14455         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14456         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14457         Likewise.
14458
14459 2009-12-31  Bruno Haible  <bruno@clisp.org>
14460
14461         Remove unnecessary AC_C_INLINE invocation.
14462         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14463         since 2009-08-21.
14464
14465 2009-12-31  Jim Meyering  <meyering@redhat.com>
14466
14467         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14468         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14469         With this change, we can all remove the gpg_key_ID = ... definition
14470         from our respective cfg.mk files.
14471
14472         maint.mk: create announcement template in ~/, not in /tmp
14473         * top/maint.mk (emit_upload_commands): Adjust.
14474         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14475         Remove temporary file, .ci-msg.
14476
14477 2009-12-31  Eric Blake  <ebb9@byu.net>
14478
14479         link-warning: always build headers with link warnings
14480         * modules/arpa_inet (Makefile.am): Always build replacement
14481         header.
14482         * modules/ctype (Makefile.am): Likewise.
14483         * modules/dirent (Makefile.am): Likewise.
14484         * modules/inttypes (Makefile.am): Likewise.
14485         * modules/langinfo (Makefile.am): Likewise.
14486         * modules/locale (Makefile.am): Likewise.
14487         * modules/spawn (Makefile.am): Likewise.
14488         * modules/sys_file (Makefile.am): Likewise.
14489         * modules/sys_ioctl (Makefile.am): Likewise.
14490         * modules/sys_select (Makefile.am): Likewise.
14491         * modules/sys_socket (Makefile.am): Likewise.
14492         * modules/sys_times (Makefile.am): Likewise.
14493         * modules/sys_utsname (Makefile.am): Likewise.
14494         * modules/sys_wait (Makefile.am): Likewise.
14495         * modules/wchar (Makefile.am): Likewise.
14496         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14497         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14498         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14499         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14500         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14501         Likewise.
14502         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14503         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14504         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14505         Likewise.
14506         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14507         Likewise.
14508         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14509         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14510         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14512         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14513         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14514         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14515         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14516         (gl_WCHAR_H_DEFAULTS): Likewise.
14517
14518 2009-12-31  Eric Blake  <ebb9@byu.net>
14519
14520         signal, spawn: use link warnings
14521         * lib/signal.in.h (sigset_t): Make unconditional.
14522         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14523         (sigpending, sigprocmask, sigaction): Add link warnings.
14524         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14525         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14526         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14527         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14528         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14529         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14530         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14531         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14532         (posix_spawn_file_actions_destroy)
14533         (posix_spawn_file_actions_addopen)
14534         (posix_spawn_file_actions_addclose)
14535         (posix_spawn_file_actions_adddup2): Likewise.
14536         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14537         * tests/test-signal.c (main): Enhance test.
14538
14539         spawn: improve wrapper support
14540         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14541         (gl_SPAWN_H_DEFAULTS): New defaults.
14542         * modules/spawn (Makefile.am): Substitute them.
14543         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14544         Only declare if missing or broken.
14545
14546         sys_times, sys_utsname: use include_next
14547         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14548         header.
14549         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14550         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14551         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14552         * modules/sys_times (Depends-on): Add include_next.
14553         (Makefile.am): Substitute additional values.
14554         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14555         * lib/sys_times.in.h (includes): Include native header, if
14556         available.
14557         * lib/sys_utsname.in.h (includes): Likewise.
14558         * tests/test-sys_times.c (main): Enhance test.
14559
14560         fdutimensat: revert prior patch
14561         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14562         utimens.h.
14563         Reported by Bruno Haible.
14564
14565 2009-12-30  Eric Blake  <ebb9@byu.net>
14566
14567         sys_wait: drop link-warning dependency
14568         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14569         link-warning efforts.
14570         * lib/sys_wait.in.h: Likewise.
14571
14572         fdutimensat: remove bogus dependency
14573         * modules/fdutimensat (Depends-on): Drop inline.
14574
14575         unistd: fix typo
14576         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14577
14578 2009-12-30  Bruno Haible  <bruno@clisp.org>
14579
14580         Fix compilation error with Solaris cc.
14581         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14582         * lib/unicase/u16-is-invariant.c: Likewise.
14583         * lib/unicase/u32-is-invariant.c: Likewise.
14584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14585
14586 2009-12-30  Bruno Haible  <bruno@clisp.org>
14587
14588         Fix test crash.
14589         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14590         locales.
14591         Reported by Simon Josefsson <simon@josefsson.org>.
14592
14593 2009-12-30  Bruno Haible  <bruno@clisp.org>
14594
14595         Fix compilation error on most platforms.
14596         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14597         Reported by Simon Josefsson <simon@josefsson.org>
14598         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14599
14600 2009-12-30  Eric Blake  <ebb9@byu.net>
14601
14602         futimens, utimensat: work around ntfs-3g bug
14603         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14604         a ctime bug is present, and expand workaround to cover ntfs-3g.
14605         * lib/utimens.c (fdutimens, lutimens): Likewise.
14606         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14607         (validate_timespec): Adjust return value.
14608         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14609         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14610         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14611
14612 2009-12-29  Eric Blake  <ebb9@byu.net>
14613
14614         link-warning: make usage consistent
14615         * modules/ctype (Depends-on): Add link-warning.
14616         (Makefile.am): Update rules accordingly.
14617         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14618         * modules/locale (Depends-on, Makefile.am): Likewise.
14619         * modules/sys_file (Makefile.am): Likewise.
14620         * modules/getopt-posix (Makefile.am): Delete unused link warning
14621         efforts.
14622         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14623         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14624         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14625         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14626
14627         stdio: remove unused variables
14628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14630         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14631
14632         tests: test more substitute headers
14633         * modules/ctype-tests: New file.
14634         * modules/dirent-tests: Likewise.
14635         * modules/spawn-tests: Likewise.
14636         * modules/sys_file-tests: Likewise.
14637         * modules/sys_ioctl-tests: Likewise.
14638         * modules/sys_wait-tests: Likewise.
14639         * tests/test-ctype.c: Likewise.
14640         * tests/test-dirent.c: Likewise.
14641         * tests/test-spawn.c: Likewise.
14642         * tests/test-sys_file.c: Likewise.
14643         * tests/test-sys_ioctl.c: Likewise.
14644         * tests/test-sys_wait.c: Likewise.
14645         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14646         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14647         whether or not flock is in use.
14648
14649         tests: remove License section from module
14650         * modules/arpa_inet-tests: Remove unneeded section.
14651         * modules/byteswap-tests: Likewise.
14652         * modules/ceilf-tests: Likewise.
14653         * modules/ceill-tests: Likewise.
14654         * modules/crypto/des-tests: Likewise.
14655         * modules/crypto/gc-arcfour-tests: Likewise.
14656         * modules/crypto/gc-arctwo-tests: Likewise.
14657         * modules/crypto/gc-des-tests: Likewise.
14658         * modules/crypto/gc-hmac-md5-tests: Likewise.
14659         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14660         * modules/crypto/gc-md2-tests: Likewise.
14661         * modules/crypto/gc-md4-tests: Likewise.
14662         * modules/crypto/gc-md5-tests: Likewise.
14663         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14664         * modules/crypto/gc-rijndael-tests: Likewise.
14665         * modules/crypto/gc-sha1-tests: Likewise.
14666         * modules/crypto/gc-tests: Likewise.
14667         * modules/crypto/md2-tests: Likewise.
14668         * modules/crypto/md4-tests: Likewise.
14669         * modules/fcntl-h-tests: Likewise.
14670         * modules/floorf-tests: Likewise.
14671         * modules/floorl-tests: Likewise.
14672         * modules/frexp-nolibm-tests: Likewise.
14673         * modules/frexp-tests: Likewise.
14674         * modules/frexpl-nolibm-tests: Likewise.
14675         * modules/frexpl-tests: Likewise.
14676         * modules/getaddrinfo-tests: Likewise.
14677         * modules/inttypes-tests: Likewise.
14678         * modules/isfinite-tests: Likewise.
14679         * modules/isinf-tests: Likewise.
14680         * modules/ldexpl-tests: Likewise.
14681         * modules/locale-tests: Likewise.
14682         * modules/math-tests: Likewise.
14683         * modules/netdb-tests: Likewise.
14684         * modules/netinet_in-tests: Likewise.
14685         * modules/printf-frexp-tests: Likewise.
14686         * modules/printf-frexpl-tests: Likewise.
14687         * modules/priv-set-tests: Likewise.
14688         * modules/random_r-tests: Likewise.
14689         * modules/round-tests: Likewise.
14690         * modules/roundf-tests: Likewise.
14691         * modules/roundl-tests: Likewise.
14692         * modules/search-tests: Likewise.
14693         * modules/select-tests: Likewise.
14694         * modules/signal-tests: Likewise.
14695         * modules/stdbool-tests: Likewise.
14696         * modules/stddef-tests: Likewise.
14697         * modules/stdint-tests: Likewise.
14698         * modules/stdio-tests: Likewise.
14699         * modules/stdlib-tests: Likewise.
14700         * modules/string-tests: Likewise.
14701         * modules/strings-tests: Likewise.
14702         * modules/sys_select-tests: Likewise.
14703         * modules/sys_socket-tests: Likewise.
14704         * modules/sys_stat-tests: Likewise.
14705         * modules/sys_time-tests: Likewise.
14706         * modules/sys_utsname-tests: Likewise.
14707         * modules/sysexits-tests: Likewise.
14708         * modules/time-tests: Likewise.
14709         * modules/trunc-tests: Likewise.
14710         * modules/truncf-tests: Likewise.
14711         * modules/truncl-tests: Likewise.
14712         * modules/tsearch-tests: Likewise.
14713         * modules/unistd-tests: Likewise.
14714         * modules/wchar-tests: Likewise.
14715         * modules/wctype-tests: Likewise.
14716
14717         tests: fix license on several tests
14718         * tests/test-des.c: Update to GPLv3+.
14719         * tests/test-flock.c: Likewise.
14720         * tests/test-fsync.c: Likewise.
14721         * tests/test-futimens.h: Likewise.
14722         * tests/test-gc-arcfour.c: Likewise.
14723         * tests/test-gc-arctwo.c: Likewise.
14724         * tests/test-gc-des.c: Likewise.
14725         * tests/test-gc-hmac-md5.c: Likewise.
14726         * tests/test-gc-hmac-sha1.c: Likewise.
14727         * tests/test-gc-md2.c: Likewise.
14728         * tests/test-gc-md4.c: Likewise.
14729         * tests/test-gc-md5.c: Likewise.
14730         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14731         * tests/test-gc-rijndael.c: Likewise.
14732         * tests/test-gc-sha1.c: Likewise.
14733         * tests/test-gc.c: Likewise.
14734         * tests/test-getcwd.c: Likewise.
14735         * tests/test-link.c: Likewise.
14736         * tests/test-link.h: Likewise.
14737         * tests/test-lutimens.h: Likewise.
14738         * tests/test-md2.c: Likewise.
14739         * tests/test-md4.c: Likewise.
14740         * tests/test-mkdir.h: Likewise.
14741         * tests/test-rename.c: Likewise.
14742         * tests/test-rename.h: Likewise.
14743         * tests/test-safe-alloc.c: Likewise.
14744         * tests/test-utimens-common.h: Likewise.
14745         * tests/test-utimens.h: Likewise.
14746
14747         maint: sync license texts
14748         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14749         * doc/gpl-3.0.texi: Revert copyright year update.
14750         * doc/lgpl-3.0.texi: Likewise.
14751
14752 2009-12-29  Jim Meyering  <meyering@redhat.com>
14753
14754         update nearly all FSF copyright year lists to include 2009
14755         The files named by the following are exempted:
14756             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14757               test -f "$dst" && { echo "$dst"; continue; }
14758               test -d "$dst" || continue
14759               echo "$dst"/$(basename "$src")
14760             done > exempt
14761             git ls-files tests/unictype >> exempt
14762         In the remaining files, convert to all-interval notation if
14763         - there is already at least one year interval like 2000-2003
14764         - the file is maintained by me
14765         - the file is in lib/uni*/, where that style already prevails
14766         Otherwise, use update-copyright's default.
14767
14768 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14769         and Eric Blake  <ebb9@byu.net>
14770
14771         tests: don't require debug system() to pass
14772         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14773         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14774         * tests/test-unlink.h (test_unlink_func): Likewise.
14775         * tests/test-fstatat.c (main): ...into callers.
14776         * tests/test-lstat.c (main): Likewise.
14777         * tests/test-rmdir.c (main): Likewise.
14778         * tests/test-unlink.c (main): Likewise.
14779         * tests/test-unlinkat.c (main): Likewise.
14780         * tests/test-areadlink-with-size.c (main): Don't require a
14781         debug-only system call to pass, aiding cross-testing to mingw.
14782         * tests/test-areadlink.c (main): Likewise.
14783         * tests/test-areadlinkat-with-size.c (main): Likewise.
14784         * tests/test-areadlinkat.c (main): Likewise.
14785         * tests/test-canonicalize-lgpl.c (main): Likewise.
14786         * tests/test-canonicalize.c (main): Likewise.
14787         * tests/test-chown.c (main): Likewise.
14788         * tests/test-fchownat.c (main): Likewise.
14789         * tests/test-lchown.c (main): Likewise.
14790         * tests/test-fdutimensat.c (main): Likewise.
14791         * tests/test-futimens.c (main): Likewise.
14792         * tests/test-link.c (main): Likewise.
14793         * tests/test-linkat.c (main): Likewise.
14794         * tests/test-mkdir.c (main): Likewise.
14795         * tests/test-mkdirat.c (main): Likewise.
14796         * tests/test-mkfifo.c (main): Likewise.
14797         * tests/test-mkfifoat.c (main): Likewise.
14798         * tests/test-mknod.c (main): Likewise.
14799         * tests/test-readlink.c (main): Likewise.
14800         * tests/test-remove.c (main): Likewise.
14801         * tests/test-rename.c (main): Likewise.
14802         * tests/test-renameat.c (main): Likewise.
14803         * tests/test-symlink.c (main): Likewise.
14804         * tests/test-symlinkat.c (main): Likewise.
14805         * tests/test-utimens.c (main): Likewise.
14806         * tests/test-utimensat.c (main): Likewise.
14807
14808 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14809
14810         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14811         on $(UNUSED_PARAMETER_H) to avoid build failure.
14812
14813 2009-12-28  Jim Meyering  <meyering@redhat.com>
14814
14815         update-copyright: you may specify a max. line length other than 72
14816         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14817
14818         maint: use consistent FSF copyright line syntax
14819         * lib/posixtm.c: Add missing comma in FSF copyright line.
14820         * lib/posixtm.h: Likewise.
14821         * lib/getugroups.c: Add missing ", Inc.".
14822
14823         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14824         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14825         FSF copyright line.  Remove trailing blanks.
14826
14827 2009-12-28  Eric Blake  <ebb9@byu.net>
14828
14829         test-dup2: reduce dependencies
14830         * modules/cloexec (Configure.ac): Set witness.
14831         * modules/dup2-tests (Depends-on): Drop cloexec.
14832         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14833         not present.
14834         Suggested by Bruno Haible.
14835
14836 2009-12-26  Bruno Haible  <bruno@clisp.org>
14837
14838         Remove an unneeded dependency.
14839         * modules/fseterr (Depends-on): Remove dup2.
14840
14841 2009-12-26  Eric Blake  <ebb9@byu.net>
14842
14843         tests: use macros.h in more places
14844         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14845         (ASSERT_STREAM): Provide default of stderr.
14846         * tests/test-dirent-safer.c: Include macros.h, using alternate
14847         stream for assertions.
14848         * tests/test-dup-safer.c: Likewise.
14849         * tests/test-freopen-safer.c: Likewise.
14850         * tests/test-getopt.c: Likewise.
14851         * tests/test-openat-safer.c: Likewise.
14852         * tests/test-pipe.c: Likewise.
14853         * tests/test-popen-safer.c: Likewise.
14854         * modules/dirent-safer-tests (Files): Include macros.h.
14855         * modules/unistd-safer-tests (Files): Likewise.
14856         * modules/freopen-safer-tests (Files): Likewise.
14857         * modules/getopt-posix-tests (Files): Likewise.
14858         * modules/openat-safer-tests (Files): Likewise.
14859         * modules/pipe-tests (Files): Likewise.
14860
14861 2009-12-26  Bruno Haible  <bruno@clisp.org>
14862
14863         javacomp: Portability fix.
14864         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14865         that it also works on Solaris.
14866
14867 2009-12-26  Bruno Haible  <bruno@clisp.org>
14868
14869         localename: Fix storage allocation of gl_locale_name_thread's result.
14870         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14871         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14872         all platforms that have 'uselocale'.
14873         (gl_locale_name_thread_unsafe): New function, extracted from
14874         gl_locale_name_thread.
14875         (gl_locale_name_thread): Call struniq on all platforms that have
14876         'uselocale'.
14877         * tests/test-localename.c (test_locale_name_thread): Check that the
14878         resulting strings are permanently allocated.
14879         * modules/localename-tests (Depends-on): Add strdup.
14880
14881 2009-12-26  Bruno Haible  <bruno@clisp.org>
14882
14883         * tests/test-localename.c (categories): Fill in the strings.
14884
14885 2009-12-26  Jim Meyering  <meyering@redhat.com>
14886
14887         isdir: complete the removal of m4/isdir.m4
14888         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14889
14890         isdir: clean up, since at least grep still uses it
14891         * lib/isdir.c: Include "isdir.h".
14892         (S_ISDIR): Remove now-unneeded definition.
14893         * modules/isdir (Files): Add lib/isdir.h.
14894         * lib/isdir.h: New file, with declaration.
14895         * m4/isdir.m4: Remove file -- unneeded.
14896
14897 2009-12-25  Bruno Haible  <bruno@clisp.org>
14898
14899         selinux-h: Make generated .h files standalone.
14900         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14901         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14902         * lib/se-selinux.in.h: Likewise.
14903         * modules/selinux-h (Depends-on): Add unused-parameter.
14904         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14905         selinux/selinux.h and selinux/context.h.
14906         Suggested by Eric Blake.
14907
14908 2009-12-25  Bruno Haible  <bruno@clisp.org>
14909
14910         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14911         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14912         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14913         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14914         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14915
14916 2009-12-24  Bruno Haible  <bruno@clisp.org>
14917
14918         openat: Fix warning.
14919         * lib/openat-proc.c: Include <unistd.h>.
14920
14921 2009-12-24  Bruno Haible  <bruno@clisp.org>
14922
14923         New module 'unused-parameter'.
14924         * build-aux/unused-parameter.h: New file, extracted from earlier
14925         gnulib-common.m4.
14926         * modules/unused-parameter: New file.
14927         * lib/unistr.h: Include unused-parameter.h.
14928         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14929         _GL_UNUSED.
14930         * modules/unistr/base (Depends-on): Add unused-parameter.
14931
14932 2009-12-24  Bruno Haible  <bruno@clisp.org>
14933
14934         Add missing dependencies to 'extensions' module.
14935         * m4/extensions.m4: Add comment.
14936         * modules/accept4 (Depends-on): Add extensions.
14937         * modules/dup3 (Depends-on): Likewise.
14938         * modules/fcntl (Depends-on): Likewise.
14939         * modules/futimens (Depends-on): Likewise.
14940         * modules/mknod (Depends-on): Likewise.
14941         * modules/pipe2 (Depends-on): Likewise.
14942         * modules/stat-time (Depends-on): Likewise.
14943         * modules/strcasestr-simple (Depends-on): Likewise.
14944         * modules/strsignal (Depends-on): Likewise.
14945         * modules/utimensat (Depends-on): Likewise.
14946         * modules/localcharset (Depends-on): Likewise. Needed because of
14947         gl_FCNTL_O_FLAGS.
14948         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14949         AC_TYPE_MBSTATE_T.
14950         * modules/wcsnrtombs (Depends-on): Likewise.
14951         * modules/wcsrtombs (Depends-on): Likewise.
14952
14953 2009-12-24  Bruno Haible  <bruno@clisp.org>
14954
14955         binary-io: Avoid gcc warning due to SET_BINARY.
14956         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14957         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14958
14959 2009-12-24  Bruno Haible  <bruno@clisp.org>
14960
14961         Avoid future namespace pollution on glibc systems.
14962         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14963         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14964         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14965         glibc systems.
14966
14967 2009-12-24  Bruno Haible  <bruno@clisp.org>
14968
14969         Refactor common macros used in tests.
14970         * tests/macros.h: New file.
14971         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14972         and/or <stdlib.h>, if appropriate.
14973         (ASSERT, SIZEOF): Remove macros.
14974         * tests/test-areadlink-with-size.c: Likewise.
14975         * tests/test-areadlinkat.c: Likewise.
14976         * tests/test-areadlinkat-with-size.c: Likewise.
14977         * tests/test-argmatch.c: Likewise.
14978         * tests/test-argv-iter.c: Likewise.
14979         * tests/test-array-mergesort.c: Likewise.
14980         * tests/test-array_list.c: Likewise.
14981         * tests/test-array_oset.c: Likewise.
14982         * tests/test-avltree_list.c: Likewise.
14983         * tests/test-avltree_oset.c: Likewise.
14984         * tests/test-avltreehash_list.c: Likewise.
14985         * tests/test-base64.c: Likewise.
14986         * tests/test-binary-io.c: Likewise.
14987         * tests/test-bitrotate.c: Likewise.
14988         * tests/test-btowc.c: Likewise.
14989         * tests/test-byteswap.c: Likewise.
14990         * tests/test-c-ctype.c: Likewise.
14991         * tests/test-c-stack.c: Likewise.
14992         * tests/test-c-strcasecmp.c: Likewise.
14993         * tests/test-c-strcasestr.c: Likewise.
14994         * tests/test-c-strncasecmp.c: Likewise.
14995         * tests/test-c-strstr.c: Likewise.
14996         * tests/test-canonicalize-lgpl.c: Likewise.
14997         * tests/test-canonicalize.c: Likewise.
14998         * tests/test-carray_list.c: Likewise.
14999         * tests/test-ceilf1.c: Likewise.
15000         * tests/test-ceilf2.c: Likewise.
15001         * tests/test-ceill.c: Likewise.
15002         * tests/test-chown.c: Likewise.
15003         * tests/test-cloexec.c: Likewise.
15004         * tests/test-copy-acl.c: Likewise.
15005         * tests/test-copy-file.c: Likewise.
15006         * tests/test-count-one-bits.c: Likewise.
15007         * tests/test-dprintf-posix.c: Likewise.
15008         * tests/test-dup2.c: Likewise.
15009         * tests/test-dup3.c: Likewise.
15010         * tests/test-duplocale.c: Likewise.
15011         * tests/test-fbufmode.c: Likewise.
15012         * tests/test-fchdir.c: Likewise.
15013         * tests/test-fchownat.c: Likewise.
15014         * tests/test-fcntl-safer.c: Likewise.
15015         * tests/test-fcntl.c: Likewise.
15016         * tests/test-fdopendir.c: Likewise.
15017         * tests/test-fdutimensat.c: Likewise.
15018         * tests/test-fflush2.c: Likewise.
15019         * tests/test-file-has-acl.c: Likewise.
15020         * tests/test-filevercmp.c: Likewise.
15021         * tests/test-flock.c: Likewise.
15022         * tests/test-floorf1.c: Likewise.
15023         * tests/test-floorf2.c: Likewise.
15024         * tests/test-floorl.c: Likewise.
15025         * tests/test-fnmatch.c: Likewise.
15026         * tests/test-fopen.h: Likewise.
15027         * tests/test-fpending.c: Likewise.
15028         * tests/test-fprintf-posix.c: Likewise.
15029         * tests/test-fpurge.c: Likewise.
15030         * tests/test-freadable.c: Likewise.
15031         * tests/test-freadahead.c: Likewise.
15032         * tests/test-freading.c: Likewise.
15033         * tests/test-freadptr.c: Likewise.
15034         * tests/test-freadptr2.c: Likewise.
15035         * tests/test-freadseek.c: Likewise.
15036         * tests/test-freopen.c: Likewise.
15037         * tests/test-frexp.c: Likewise.
15038         * tests/test-frexpl.c: Likewise.
15039         * tests/test-fseek.c: Likewise.
15040         * tests/test-fseeko.c: Likewise.
15041         * tests/test-fstatat.c: Likewise.
15042         * tests/test-fstrcmp.c: Likewise.
15043         * tests/test-fsync.c: Likewise.
15044         * tests/test-ftell.c: Likewise.
15045         * tests/test-ftello.c: Likewise.
15046         * tests/test-func.c: Likewise.
15047         * tests/test-futimens.c: Likewise.
15048         * tests/test-fwritable.c: Likewise.
15049         * tests/test-fwriting.c: Likewise.
15050         * tests/test-getcwd.c: Likewise.
15051         * tests/test-getdate.c: Likewise.
15052         * tests/test-getdelim.c: Likewise.
15053         * tests/test-getdtablesize.c: Likewise.
15054         * tests/test-getgroups.c: Likewise.
15055         * tests/test-getline.c: Likewise.
15056         * tests/test-getndelim2.c: Likewise.
15057         * tests/test-glob.c: Likewise.
15058         * tests/test-hash.c: Likewise.
15059         * tests/test-i-ring.c: Likewise.
15060         * tests/test-iconv-utf.c: Likewise.
15061         * tests/test-iconv.c: Likewise.
15062         * tests/test-idpriv-drop.c: Likewise.
15063         * tests/test-idpriv-droptemp.c: Likewise.
15064         * tests/test-inet_ntop.c: Likewise.
15065         * tests/test-inet_pton.c: Likewise.
15066         * tests/test-isblank.c: Likewise.
15067         * tests/test-isfinite.c: Likewise.
15068         * tests/test-isinf.c: Likewise.
15069         * tests/test-isnan.c: Likewise.
15070         * tests/test-isnand.h: Likewise.
15071         * tests/test-isnanf.h: Likewise.
15072         * tests/test-isnanl.h: Likewise.
15073         * tests/test-lchown.c: Likewise.
15074         * tests/test-ldexpl.c: Likewise.
15075         * tests/test-link.c: Likewise.
15076         * tests/test-linkat.c: Likewise.
15077         * tests/test-linked_list.c: Likewise.
15078         * tests/test-linkedhash_list.c: Likewise.
15079         * tests/test-localename.c: Likewise.
15080         * tests/test-lseek.c: Likewise.
15081         * tests/test-lstat.c: Likewise.
15082         * tests/test-mbmemcasecmp.c: Likewise.
15083         * tests/test-mbmemcasecoll.c: Likewise.
15084         * tests/test-mbrtowc.c: Likewise.
15085         * tests/test-mbscasecmp.c: Likewise.
15086         * tests/test-mbscasestr1.c: Likewise.
15087         * tests/test-mbscasestr2.c: Likewise.
15088         * tests/test-mbscasestr3.c: Likewise.
15089         * tests/test-mbscasestr4.c: Likewise.
15090         * tests/test-mbschr.c: Likewise.
15091         * tests/test-mbscspn.c: Likewise.
15092         * tests/test-mbsinit.c: Likewise.
15093         * tests/test-mbsncasecmp.c: Likewise.
15094         * tests/test-mbsnrtowcs.c: Likewise.
15095         * tests/test-mbspbrk.c: Likewise.
15096         * tests/test-mbspcasecmp.c: Likewise.
15097         * tests/test-mbsrchr.c: Likewise.
15098         * tests/test-mbsrtowcs.c: Likewise.
15099         * tests/test-mbsspn.c: Likewise.
15100         * tests/test-mbsstr1.c: Likewise.
15101         * tests/test-mbsstr2.c: Likewise.
15102         * tests/test-mbsstr3.c: Likewise.
15103         * tests/test-memchr.c: Likewise.
15104         * tests/test-memchr2.c: Likewise.
15105         * tests/test-memcmp.c: Likewise.
15106         * tests/test-memmem.c: Likewise.
15107         * tests/test-memrchr.c: Likewise.
15108         * tests/test-mkdir.c: Likewise.
15109         * tests/test-mkdirat.c: Likewise.
15110         * tests/test-mkfifo.c: Likewise.
15111         * tests/test-mkfifoat.c: Likewise.
15112         * tests/test-mknod.c: Likewise.
15113         * tests/test-nanosleep.c: Likewise.
15114         * tests/test-nl_langinfo.c: Likewise.
15115         * tests/test-obstack-printf.c: Likewise.
15116         * tests/test-open.c: Likewise.
15117         * tests/test-openat.c: Likewise.
15118         * tests/test-pipe-filter-gi1.c: Likewise.
15119         * tests/test-pipe-filter-gi2-main.c: Likewise.
15120         * tests/test-pipe-filter-ii1.c: Likewise.
15121         * tests/test-pipe-filter-ii2-main.c: Likewise.
15122         * tests/test-pipe2.c: Likewise.
15123         * tests/test-popen.h: Likewise.
15124         * tests/test-posixtm.c: Likewise.
15125         * tests/test-pread.c: Likewise.
15126         * tests/test-printf-frexp.c: Likewise.
15127         * tests/test-printf-frexpl.c: Likewise.
15128         * tests/test-printf-posix.c: Likewise.
15129         * tests/test-priv-set.c: Likewise.
15130         * tests/test-quotearg.c: Likewise.
15131         * tests/test-random_r.c: Likewise.
15132         * tests/test-rawmemchr.c: Likewise.
15133         * tests/test-rbtree_list.c: Likewise.
15134         * tests/test-rbtree_oset.c: Likewise.
15135         * tests/test-rbtreehash_list.c: Likewise.
15136         * tests/test-readlink.c: Likewise.
15137         * tests/test-remove.c: Likewise.
15138         * tests/test-rename.c: Likewise.
15139         * tests/test-renameat.c: Likewise.
15140         * tests/test-rmdir.c: Likewise.
15141         * tests/test-round1.c: Likewise.
15142         * tests/test-roundf1.c: Likewise.
15143         * tests/test-roundl.c: Likewise.
15144         * tests/test-safe-alloc.c: Likewise.
15145         * tests/test-sameacls.c: Likewise.
15146         * tests/test-set-mode-acl.c: Likewise.
15147         * tests/test-setenv.c: Likewise.
15148         * tests/test-sigaction.c: Likewise.
15149         * tests/test-signbit.c: Likewise.
15150         * tests/test-sleep.c: Likewise.
15151         * tests/test-snprintf-posix.c: Likewise.
15152         * tests/test-snprintf.c: Likewise.
15153         * tests/test-sprintf-posix.c: Likewise.
15154         * tests/test-stat-time.c: Likewise.
15155         * tests/test-stat.c: Likewise.
15156         * tests/test-strcasestr.c: Likewise.
15157         * tests/test-strchrnul.c: Likewise.
15158         * tests/test-strerror.c: Likewise.
15159         * tests/test-striconv.c: Likewise.
15160         * tests/test-striconveh.c: Likewise.
15161         * tests/test-striconveha.c: Likewise.
15162         * tests/test-strsignal.c: Likewise.
15163         * tests/test-strstr.c: Likewise.
15164         * tests/test-strtod.c: Likewise.
15165         * tests/test-strverscmp.c: Likewise.
15166         * tests/test-symlink.c: Likewise.
15167         * tests/test-symlinkat.c: Likewise.
15168         * tests/test-trunc1.c: Likewise.
15169         * tests/test-trunc2.c: Likewise.
15170         * tests/test-truncf1.c: Likewise.
15171         * tests/test-truncf2.c: Likewise.
15172         * tests/test-truncl.c: Likewise.
15173         * tests/test-uname.c: Likewise.
15174         * tests/test-unlink.c: Likewise.
15175         * tests/test-unlinkat.c: Likewise.
15176         * tests/test-unsetenv.c: Likewise.
15177         * tests/test-usleep.c: Likewise.
15178         * tests/test-utimens.c: Likewise.
15179         * tests/test-utimensat.c: Likewise.
15180         * tests/test-vasnprintf-posix.c: Likewise.
15181         * tests/test-vasnprintf-posix2.c: Likewise.
15182         * tests/test-vasnprintf.c: Likewise.
15183         * tests/test-vasprintf-posix.c: Likewise.
15184         * tests/test-vasprintf.c: Likewise.
15185         * tests/test-vdprintf-posix.c: Likewise.
15186         * tests/test-vfprintf-posix.c: Likewise.
15187         * tests/test-vprintf-posix.c: Likewise.
15188         * tests/test-vsnprintf-posix.c: Likewise.
15189         * tests/test-vsnprintf.c: Likewise.
15190         * tests/test-vsprintf-posix.c: Likewise.
15191         * tests/test-wcrtomb.c: Likewise.
15192         * tests/test-wcsnrtombs.c: Likewise.
15193         * tests/test-wcsrtombs.c: Likewise.
15194         * tests/test-wctype.c: Likewise.
15195         * tests/test-wcwidth.c: Likewise.
15196         * tests/test-xfprintf-posix.c: Likewise.
15197         * tests/test-xmemdup0.c: Likewise.
15198         * tests/test-xprintf-posix.c: Likewise.
15199         * tests/test-xvasprintf.c: Likewise.
15200         * tests/unicase/test-locale-language.c: Likewise.
15201         * tests/unicase/test-mapping-part1.h: Likewise.
15202         * tests/unicase/test-predicate-part1.h: Likewise.
15203         * tests/unicase/test-u8-casecmp.c: Likewise.
15204         * tests/unicase/test-u8-casecoll.c: Likewise.
15205         * tests/unicase/test-u8-casefold.c: Likewise.
15206         * tests/unicase/test-u8-is-cased.c: Likewise.
15207         * tests/unicase/test-u8-is-casefolded.c: Likewise.
15208         * tests/unicase/test-u8-is-lowercase.c: Likewise.
15209         * tests/unicase/test-u8-is-titlecase.c: Likewise.
15210         * tests/unicase/test-u8-is-uppercase.c: Likewise.
15211         * tests/unicase/test-u8-tolower.c: Likewise.
15212         * tests/unicase/test-u8-totitle.c: Likewise.
15213         * tests/unicase/test-u8-toupper.c: Likewise.
15214         * tests/unicase/test-u16-casecmp.c: Likewise.
15215         * tests/unicase/test-u16-casecoll.c: Likewise.
15216         * tests/unicase/test-u16-casefold.c: Likewise.
15217         * tests/unicase/test-u16-is-cased.c: Likewise.
15218         * tests/unicase/test-u16-is-casefolded.c: Likewise.
15219         * tests/unicase/test-u16-is-lowercase.c: Likewise.
15220         * tests/unicase/test-u16-is-titlecase.c: Likewise.
15221         * tests/unicase/test-u16-is-uppercase.c: Likewise.
15222         * tests/unicase/test-u16-tolower.c: Likewise.
15223         * tests/unicase/test-u16-totitle.c: Likewise.
15224         * tests/unicase/test-u16-toupper.c: Likewise.
15225         * tests/unicase/test-u32-casecmp.c: Likewise.
15226         * tests/unicase/test-u32-casecoll.c: Likewise.
15227         * tests/unicase/test-u32-casefold.c: Likewise.
15228         * tests/unicase/test-u32-is-cased.c: Likewise.
15229         * tests/unicase/test-u32-is-casefolded.c: Likewise.
15230         * tests/unicase/test-u32-is-lowercase.c: Likewise.
15231         * tests/unicase/test-u32-is-titlecase.c: Likewise.
15232         * tests/unicase/test-u32-is-uppercase.c: Likewise.
15233         * tests/unicase/test-u32-tolower.c: Likewise.
15234         * tests/unicase/test-u32-totitle.c: Likewise.
15235         * tests/unicase/test-u32-toupper.c: Likewise.
15236         * tests/unicase/test-ulc-casecmp.c: Likewise.
15237         * tests/unicase/test-ulc-casecoll.c: Likewise.
15238         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15239         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15240         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15241         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15242         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15243         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15244         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15245         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15246         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15247         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15248         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15249         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15250         * tests/unictype/test-bidi_byname.c: Likewise.
15251         * tests/unictype/test-bidi_name.c: Likewise.
15252         * tests/unictype/test-bidi_of.c: Likewise.
15253         * tests/unictype/test-bidi_test.c: Likewise.
15254         * tests/unictype/test-block_list.c: Likewise.
15255         * tests/unictype/test-block_of.c: Likewise.
15256         * tests/unictype/test-block_test.c: Likewise.
15257         * tests/unictype/test-categ_and.c: Likewise.
15258         * tests/unictype/test-categ_and_not.c: Likewise.
15259         * tests/unictype/test-categ_byname.c: Likewise.
15260         * tests/unictype/test-categ_name.c: Likewise.
15261         * tests/unictype/test-categ_none.c: Likewise.
15262         * tests/unictype/test-categ_of.c: Likewise.
15263         * tests/unictype/test-categ_or.c: Likewise.
15264         * tests/unictype/test-categ_test_withtable.c: Likewise.
15265         * tests/unictype/test-combining.c: Likewise.
15266         * tests/unictype/test-decdigit.c: Likewise.
15267         * tests/unictype/test-digit.c: Likewise.
15268         * tests/unictype/test-mirror.c: Likewise.
15269         * tests/unictype/test-numeric.c: Likewise.
15270         * tests/unictype/test-pr_byname.c: Likewise.
15271         * tests/unictype/test-pr_test.c: Likewise.
15272         * tests/unictype/test-predicate-part1.h: Likewise.
15273         * tests/unictype/test-scripts.c: Likewise.
15274         * tests/unictype/test-sy_c_ident.c: Likewise.
15275         * tests/unictype/test-sy_java_ident.c: Likewise.
15276         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15277         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15278         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15279         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15280         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15281         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15282         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15283         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15284         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15285         * tests/uninorm/test-compat-decomposition.c: Likewise.
15286         * tests/uninorm/test-composition.c: Likewise.
15287         * tests/uninorm/test-decomposing-form.c: Likewise.
15288         * tests/uninorm/test-decomposition.c: Likewise.
15289         * tests/uninorm/test-u8-nfc.c: Likewise.
15290         * tests/uninorm/test-u8-nfd.c: Likewise.
15291         * tests/uninorm/test-u8-nfkc.c: Likewise.
15292         * tests/uninorm/test-u8-nfkd.c: Likewise.
15293         * tests/uninorm/test-u8-normcmp.c: Likewise.
15294         * tests/uninorm/test-u8-normcoll.c: Likewise.
15295         * tests/uninorm/test-u16-nfc.c: Likewise.
15296         * tests/uninorm/test-u16-nfd.c: Likewise.
15297         * tests/uninorm/test-u16-nfkc.c: Likewise.
15298         * tests/uninorm/test-u16-nfkd.c: Likewise.
15299         * tests/uninorm/test-u16-normcmp.c: Likewise.
15300         * tests/uninorm/test-u16-normcoll.c: Likewise.
15301         * tests/uninorm/test-u32-nfc.c: Likewise.
15302         * tests/uninorm/test-u32-nfd.c: Likewise.
15303         * tests/uninorm/test-u32-nfkc.c: Likewise.
15304         * tests/uninorm/test-u32-nfkd.c: Likewise.
15305         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15306         * tests/uninorm/test-u32-normcmp.c: Likewise.
15307         * tests/uninorm/test-u32-normcoll.c: Likewise.
15308         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15309         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15310         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15311         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15312         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15313         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15314         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15315         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15316         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15317         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15318         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15319         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15320         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15321         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15322         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15323         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15324         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15325         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15326         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15327         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15328         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15329         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15330         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15331         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15332         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15333         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15334         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15335         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15336         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15337         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15338         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15339         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15340         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15341         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15342         * tests/uniwidth/test-u8-width.c: Likewise.
15343         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15344         * tests/uniwidth/test-u16-width.c: Likewise.
15345         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15346         * tests/uniwidth/test-u32-width.c: Likewise.
15347         * tests/uniwidth/test-uc_width.c: Likewise.
15348         * tests/uniwidth/test-uc_width2.c: Likewise.
15349         * modules/acl-tests (Files): Add tests/macros.h.
15350         * modules/areadlink-tests (Files): Likewise.
15351         * modules/areadlink-with-size-tests (Files): Likewise.
15352         * modules/areadlinkat-tests (Files): Likewise.
15353         * modules/areadlinkat-with-size-tests (Files): Likewise.
15354         * modules/argmatch-tests (Files): Likewise.
15355         * modules/argv-iter-tests (Files): Likewise.
15356         * modules/array-list-tests (Files): Likewise.
15357         * modules/array-mergesort-tests (Files): Likewise.
15358         * modules/array-oset-tests (Files): Likewise.
15359         * modules/avltree-list-tests (Files): Likewise.
15360         * modules/avltree-oset-tests (Files): Likewise.
15361         * modules/avltreehash-list-tests (Files): Likewise.
15362         * modules/base64-tests (Files): Likewise.
15363         * modules/binary-io-tests (Files): Likewise.
15364         * modules/bitrotate-tests (Files): Likewise.
15365         * modules/btowc-tests (Files): Likewise.
15366         * modules/byteswap-tests (Files): Likewise.
15367         * modules/c-ctype-tests (Files): Likewise.
15368         * modules/c-stack-tests (Files): Likewise.
15369         * modules/c-strcase-tests (Files): Likewise.
15370         * modules/c-strcasestr-tests (Files): Likewise.
15371         * modules/c-strstr-tests (Files): Likewise.
15372         * modules/canonicalize-lgpl-tests (Files): Likewise.
15373         * modules/canonicalize-tests (Files): Likewise.
15374         * modules/carray-list-tests (Files): Likewise.
15375         * modules/ceilf-tests (Files): Likewise.
15376         * modules/ceill-tests (Files): Likewise.
15377         * modules/chown-tests (Files): Likewise.
15378         * modules/cloexec-tests (Files): Likewise.
15379         * modules/copy-file-tests (Files): Likewise.
15380         * modules/count-one-bits-tests (Files): Likewise.
15381         * modules/dprintf-posix-tests (Files): Likewise.
15382         * modules/dup2-tests (Files): Likewise.
15383         * modules/dup3-tests (Files): Likewise.
15384         * modules/duplocale-tests (Files): Likewise.
15385         * modules/fbufmode-tests (Files): Likewise.
15386         * modules/fchdir-tests (Files): Likewise.
15387         * modules/fcntl-safer-tests (Files): Likewise.
15388         * modules/fcntl-tests (Files): Likewise.
15389         * modules/fdopendir-tests (Files): Likewise.
15390         * modules/fdutimensat-tests (Files): Likewise.
15391         * modules/fflush-tests (Files): Likewise.
15392         * modules/filevercmp-tests (Files): Likewise.
15393         * modules/flock-tests (Files): Likewise.
15394         * modules/floorf-tests (Files): Likewise.
15395         * modules/floorl-tests (Files): Likewise.
15396         * modules/fnmatch-tests (Files): Likewise.
15397         * modules/fopen-safer-tests (Files): Likewise.
15398         * modules/fopen-tests (Files): Likewise.
15399         * modules/fpending-tests (Files): Likewise.
15400         * modules/fprintf-posix-tests (Files): Likewise.
15401         * modules/fpurge-tests (Files): Likewise.
15402         * modules/freadable-tests (Files): Likewise.
15403         * modules/freadahead-tests (Files): Likewise.
15404         * modules/freading-tests (Files): Likewise.
15405         * modules/freadptr-tests (Files): Likewise.
15406         * modules/freadseek-tests (Files): Likewise.
15407         * modules/freopen-tests (Files): Likewise.
15408         * modules/frexp-nolibm-tests (Files): Likewise.
15409         * modules/frexp-tests (Files): Likewise.
15410         * modules/frexpl-nolibm-tests (Files): Likewise.
15411         * modules/frexpl-tests (Files): Likewise.
15412         * modules/fseek-tests (Files): Likewise.
15413         * modules/fseeko-tests (Files): Likewise.
15414         * modules/fstrcmp-tests (Files): Likewise.
15415         * modules/fsync-tests (Files): Likewise.
15416         * modules/ftell-tests (Files): Likewise.
15417         * modules/ftello-tests (Files): Likewise.
15418         * modules/func-tests (Files): Likewise.
15419         * modules/futimens-tests (Files): Likewise.
15420         * modules/fwritable-tests (Files): Likewise.
15421         * modules/fwriting-tests (Files): Likewise.
15422         * modules/getcwd-tests (Files): Likewise.
15423         * modules/getdate-tests (Files): Likewise.
15424         * modules/getdelim-tests (Files): Likewise.
15425         * modules/getdtablesize-tests (Files): Likewise.
15426         * modules/getgroups-tests (Files): Likewise.
15427         * modules/getline-tests (Files): Likewise.
15428         * modules/getndelim2-tests (Files): Likewise.
15429         * modules/glob-tests (Files): Likewise.
15430         * modules/hash-tests (Files): Likewise.
15431         * modules/i-ring-tests (Files): Likewise.
15432         * modules/iconv-tests (Files): Likewise.
15433         * modules/iconv_open-utf-tests (Files): Likewise.
15434         * modules/idpriv-drop-tests (Files): Likewise.
15435         * modules/idpriv-droptemp-tests (Files): Likewise.
15436         * modules/inet_ntop-tests (Files): Likewise.
15437         * modules/inet_pton-tests (Files): Likewise.
15438         * modules/isblank-tests (Files): Likewise.
15439         * modules/isfinite-tests (Files): Likewise.
15440         * modules/isinf-tests (Files): Likewise.
15441         * modules/isnan-tests (Files): Likewise.
15442         * modules/isnand-nolibm-tests (Files): Likewise.
15443         * modules/isnand-tests (Files): Likewise.
15444         * modules/isnanf-nolibm-tests (Files): Likewise.
15445         * modules/isnanf-tests (Files): Likewise.
15446         * modules/isnanl-nolibm-tests (Files): Likewise.
15447         * modules/isnanl-tests (Files): Likewise.
15448         * modules/lchown-tests (Files): Likewise.
15449         * modules/ldexpl-tests (Files): Likewise.
15450         * modules/link-tests (Files): Likewise.
15451         * modules/linkat-tests (Files): Likewise.
15452         * modules/linked-list-tests (Files): Likewise.
15453         * modules/linkedhash-list-tests (Files): Likewise.
15454         * modules/localename-tests (Files): Likewise.
15455         * modules/lseek-tests (Files): Likewise.
15456         * modules/lstat-tests (Files): Likewise.
15457         * modules/mbmemcasecmp-tests (Files): Likewise.
15458         * modules/mbmemcasecoll-tests (Files): Likewise.
15459         * modules/mbrtowc-tests (Files): Likewise.
15460         * modules/mbscasecmp-tests (Files): Likewise.
15461         * modules/mbscasestr-tests (Files): Likewise.
15462         * modules/mbschr-tests (Files): Likewise.
15463         * modules/mbscspn-tests (Files): Likewise.
15464         * modules/mbsinit-tests (Files): Likewise.
15465         * modules/mbsncasecmp-tests (Files): Likewise.
15466         * modules/mbsnrtowcs-tests (Files): Likewise.
15467         * modules/mbspbrk-tests (Files): Likewise.
15468         * modules/mbspcasecmp-tests (Files): Likewise.
15469         * modules/mbsrchr-tests (Files): Likewise.
15470         * modules/mbsrtowcs-tests (Files): Likewise.
15471         * modules/mbsspn-tests (Files): Likewise.
15472         * modules/mbsstr-tests (Files): Likewise.
15473         * modules/memchr-tests (Files): Likewise.
15474         * modules/memchr2-tests (Files): Likewise.
15475         * modules/memcmp-tests (Files): Likewise.
15476         * modules/memmem-tests (Files): Likewise.
15477         * modules/memrchr-tests (Files): Likewise.
15478         * modules/mkdir-tests (Files): Likewise.
15479         * modules/mkfifo-tests (Files): Likewise.
15480         * modules/mkfifoat-tests (Files): Likewise.
15481         * modules/mknod-tests (Files): Likewise.
15482         * modules/nanosleep-tests (Files): Likewise.
15483         * modules/nl_langinfo-tests (Files): Likewise.
15484         * modules/obstack-printf-tests (Files): Likewise.
15485         * modules/open-tests (Files): Likewise.
15486         * modules/openat-tests (Files): Likewise.
15487         * modules/pipe-filter-gi-tests (Files): Likewise.
15488         * modules/pipe-filter-ii-tests (Files): Likewise.
15489         * modules/pipe2-tests (Files): Likewise.
15490         * modules/popen-safer-tests (Files): Likewise.
15491         * modules/popen-tests (Files): Likewise.
15492         * modules/posixtm-tests (Files): Likewise.
15493         * modules/pread-tests (Files): Likewise.
15494         * modules/printf-frexp-tests (Files): Likewise.
15495         * modules/printf-frexpl-tests (Files): Likewise.
15496         * modules/printf-posix-tests (Files): Likewise.
15497         * modules/priv-set-tests (Files): Likewise.
15498         * modules/quotearg-tests (Files): Likewise.
15499         * modules/random_r-tests (Files): Likewise.
15500         * modules/rawmemchr-tests (Files): Likewise.
15501         * modules/rbtree-list-tests (Files): Likewise.
15502         * modules/rbtree-oset-tests (Files): Likewise.
15503         * modules/rbtreehash-list-tests (Files): Likewise.
15504         * modules/readlink-tests (Files): Likewise.
15505         * modules/remove-tests (Files): Likewise.
15506         * modules/rename-tests (Files): Likewise.
15507         * modules/renameat-tests (Files): Likewise.
15508         * modules/rmdir-tests (Files): Likewise.
15509         * modules/round-tests (Files): Likewise.
15510         * modules/roundf-tests (Files): Likewise.
15511         * modules/roundl-tests (Files): Likewise.
15512         * modules/safe-alloc-tests (Files): Likewise.
15513         * modules/setenv-tests (Files): Likewise.
15514         * modules/sigaction-tests (Files): Likewise.
15515         * modules/signbit-tests (Files): Likewise.
15516         * modules/sleep-tests (Files): Likewise.
15517         * modules/snprintf-posix-tests (Files): Likewise.
15518         * modules/snprintf-tests (Files): Likewise.
15519         * modules/sprintf-posix-tests (Files): Likewise.
15520         * modules/stat-tests (Files): Likewise.
15521         * modules/stat-time-tests (Files): Likewise.
15522         * modules/strcasestr-tests (Files): Likewise.
15523         * modules/strchrnul-tests (Files): Likewise.
15524         * modules/strerror-tests (Files): Likewise.
15525         * modules/striconv-tests (Files): Likewise.
15526         * modules/striconveh-tests (Files): Likewise.
15527         * modules/striconveha-tests (Files): Likewise.
15528         * modules/strsignal-tests (Files): Likewise.
15529         * modules/strstr-tests (Files): Likewise.
15530         * modules/strtod-tests (Files): Likewise.
15531         * modules/strverscmp-tests (Files): Likewise.
15532         * modules/symlink-tests (Files): Likewise.
15533         * modules/symlinkat-tests (Files): Likewise.
15534         * modules/trunc-tests (Files): Likewise.
15535         * modules/truncf-tests (Files): Likewise.
15536         * modules/truncl-tests (Files): Likewise.
15537         * modules/uname-tests (Files): Likewise.
15538         * modules/unicase/cased-tests (Files): Likewise.
15539         * modules/unicase/ignorable-tests (Files): Likewise.
15540         * modules/unicase/locale-language-tests (Files): Likewise.
15541         * modules/unicase/tolower-tests (Files): Likewise.
15542         * modules/unicase/totitle-tests (Files): Likewise.
15543         * modules/unicase/toupper-tests (Files): Likewise.
15544         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15545         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15546         * modules/unicase/u8-casefold-tests (Files): Likewise.
15547         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15548         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15549         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15550         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15551         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15552         * modules/unicase/u8-tolower-tests (Files): Likewise.
15553         * modules/unicase/u8-totitle-tests (Files): Likewise.
15554         * modules/unicase/u8-toupper-tests (Files): Likewise.
15555         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15556         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15557         * modules/unicase/u16-casefold-tests (Files): Likewise.
15558         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15559         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15560         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15561         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15562         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15563         * modules/unicase/u16-tolower-tests (Files): Likewise.
15564         * modules/unicase/u16-totitle-tests (Files): Likewise.
15565         * modules/unicase/u16-toupper-tests (Files): Likewise.
15566         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15567         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15568         * modules/unicase/u32-casefold-tests (Files): Likewise.
15569         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15570         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15571         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15572         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15573         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15574         * modules/unicase/u32-tolower-tests (Files): Likewise.
15575         * modules/unicase/u32-totitle-tests (Files): Likewise.
15576         * modules/unicase/u32-toupper-tests (Files): Likewise.
15577         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15578         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15579         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15580         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15581         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15582         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15583         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15584         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15585         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15586         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15587         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15588         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15589         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15590         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15591         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15592         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15593         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15594         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15595         * modules/unictype/block-list-tests (Files): Likewise.
15596         * modules/unictype/block-of-tests (Files): Likewise.
15597         * modules/unictype/block-test-tests (Files): Likewise.
15598         * modules/unictype/category-C-tests (Files): Likewise.
15599         * modules/unictype/category-Cc-tests (Files): Likewise.
15600         * modules/unictype/category-Cf-tests (Files): Likewise.
15601         * modules/unictype/category-Cn-tests (Files): Likewise.
15602         * modules/unictype/category-Co-tests (Files): Likewise.
15603         * modules/unictype/category-Cs-tests (Files): Likewise.
15604         * modules/unictype/category-L-tests (Files): Likewise.
15605         * modules/unictype/category-Ll-tests (Files): Likewise.
15606         * modules/unictype/category-Lm-tests (Files): Likewise.
15607         * modules/unictype/category-Lo-tests (Files): Likewise.
15608         * modules/unictype/category-Lt-tests (Files): Likewise.
15609         * modules/unictype/category-Lu-tests (Files): Likewise.
15610         * modules/unictype/category-M-tests (Files): Likewise.
15611         * modules/unictype/category-Mc-tests (Files): Likewise.
15612         * modules/unictype/category-Me-tests (Files): Likewise.
15613         * modules/unictype/category-Mn-tests (Files): Likewise.
15614         * modules/unictype/category-N-tests (Files): Likewise.
15615         * modules/unictype/category-Nd-tests (Files): Likewise.
15616         * modules/unictype/category-Nl-tests (Files): Likewise.
15617         * modules/unictype/category-No-tests (Files): Likewise.
15618         * modules/unictype/category-P-tests (Files): Likewise.
15619         * modules/unictype/category-Pc-tests (Files): Likewise.
15620         * modules/unictype/category-Pd-tests (Files): Likewise.
15621         * modules/unictype/category-Pe-tests (Files): Likewise.
15622         * modules/unictype/category-Pf-tests (Files): Likewise.
15623         * modules/unictype/category-Pi-tests (Files): Likewise.
15624         * modules/unictype/category-Po-tests (Files): Likewise.
15625         * modules/unictype/category-Ps-tests (Files): Likewise.
15626         * modules/unictype/category-S-tests (Files): Likewise.
15627         * modules/unictype/category-Sc-tests (Files): Likewise.
15628         * modules/unictype/category-Sk-tests (Files): Likewise.
15629         * modules/unictype/category-Sm-tests (Files): Likewise.
15630         * modules/unictype/category-So-tests (Files): Likewise.
15631         * modules/unictype/category-Z-tests (Files): Likewise.
15632         * modules/unictype/category-Zl-tests (Files): Likewise.
15633         * modules/unictype/category-Zp-tests (Files): Likewise.
15634         * modules/unictype/category-Zs-tests (Files): Likewise.
15635         * modules/unictype/category-and-not-tests (Files): Likewise.
15636         * modules/unictype/category-and-tests (Files): Likewise.
15637         * modules/unictype/category-byname-tests (Files): Likewise.
15638         * modules/unictype/category-name-tests (Files): Likewise.
15639         * modules/unictype/category-none-tests (Files): Likewise.
15640         * modules/unictype/category-of-tests (Files): Likewise.
15641         * modules/unictype/category-or-tests (Files): Likewise.
15642         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15643         * modules/unictype/combining-class-tests (Files): Likewise.
15644         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15645         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15646         * modules/unictype/ctype-blank-tests (Files): Likewise.
15647         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15648         * modules/unictype/ctype-digit-tests (Files): Likewise.
15649         * modules/unictype/ctype-graph-tests (Files): Likewise.
15650         * modules/unictype/ctype-lower-tests (Files): Likewise.
15651         * modules/unictype/ctype-print-tests (Files): Likewise.
15652         * modules/unictype/ctype-punct-tests (Files): Likewise.
15653         * modules/unictype/ctype-space-tests (Files): Likewise.
15654         * modules/unictype/ctype-upper-tests (Files): Likewise.
15655         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15656         * modules/unictype/decimal-digit-tests (Files): Likewise.
15657         * modules/unictype/digit-tests (Files): Likewise.
15658         * modules/unictype/mirror-tests (Files): Likewise.
15659         * modules/unictype/numeric-tests (Files): Likewise.
15660         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15661         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15662         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15663         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15664         Likewise.
15665         * modules/unictype/property-bidi-block-separator-tests (Files):
15666         Likewise.
15667         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15668         Likewise.
15669         * modules/unictype/property-bidi-common-separator-tests (Files):
15670         Likewise.
15671         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15672         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15673         Likewise.
15674         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15675         Likewise.
15676         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15677         Likewise.
15678         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15679         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15680         Likewise.
15681         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15682         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15683         Likewise.
15684         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15685         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15686         * modules/unictype/property-bidi-segment-separator-tests (Files):
15687         Likewise.
15688         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15689         * modules/unictype/property-byname-tests (Files): Likewise.
15690         * modules/unictype/property-combining-tests (Files): Likewise.
15691         * modules/unictype/property-composite-tests (Files): Likewise.
15692         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15693         * modules/unictype/property-dash-tests (Files): Likewise.
15694         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15695         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15696         Likewise.
15697         * modules/unictype/property-deprecated-tests (Files): Likewise.
15698         * modules/unictype/property-diacritic-tests (Files): Likewise.
15699         * modules/unictype/property-extender-tests (Files): Likewise.
15700         * modules/unictype/property-format-control-tests (Files): Likewise.
15701         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15702         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15703         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15704         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15705         * modules/unictype/property-hyphen-tests (Files): Likewise.
15706         * modules/unictype/property-id-continue-tests (Files): Likewise.
15707         * modules/unictype/property-id-start-tests (Files): Likewise.
15708         * modules/unictype/property-ideographic-tests (Files): Likewise.
15709         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15710         * modules/unictype/property-ids-trinary-operator-tests (Files):
15711         Likewise.
15712         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15713         * modules/unictype/property-iso-control-tests (Files): Likewise.
15714         * modules/unictype/property-join-control-tests (Files): Likewise.
15715         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15716         * modules/unictype/property-line-separator-tests (Files): Likewise.
15717         * modules/unictype/property-logical-order-exception-tests (Files):
15718         Likewise.
15719         * modules/unictype/property-lowercase-tests (Files): Likewise.
15720         * modules/unictype/property-math-tests (Files): Likewise.
15721         * modules/unictype/property-non-break-tests (Files): Likewise.
15722         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15723         * modules/unictype/property-numeric-tests (Files): Likewise.
15724         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15725         * modules/unictype/property-other-default-ignorable-code-point-tests
15726         (Files): Likewise.
15727         * modules/unictype/property-other-grapheme-extend-tests (Files):
15728         Likewise.
15729         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15730         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15731         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15732         * modules/unictype/property-other-math-tests (Files): Likewise.
15733         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15734         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15735         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15736         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15737         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15738         * modules/unictype/property-private-use-tests (Files): Likewise.
15739         * modules/unictype/property-punctuation-tests (Files): Likewise.
15740         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15741         * modules/unictype/property-radical-tests (Files): Likewise.
15742         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15743         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15744         * modules/unictype/property-space-tests (Files): Likewise.
15745         * modules/unictype/property-terminal-punctuation-tests (Files):
15746         Likewise.
15747         * modules/unictype/property-test-tests (Files): Likewise.
15748         * modules/unictype/property-titlecase-tests (Files): Likewise.
15749         * modules/unictype/property-unassigned-code-value-tests (Files):
15750         Likewise.
15751         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15752         * modules/unictype/property-uppercase-tests (Files): Likewise.
15753         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15754         * modules/unictype/property-white-space-tests (Files): Likewise.
15755         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15756         * modules/unictype/property-xid-start-tests (Files): Likewise.
15757         * modules/unictype/property-zero-width-tests (Files): Likewise.
15758         * modules/unictype/scripts-tests (Files): Likewise.
15759         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15760         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15761         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15762         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15763         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15764         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15765         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15766         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15767         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15768         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15769         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15770         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15771         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15772         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15773         * modules/uninorm/composition-tests (Files): Likewise.
15774         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15775         * modules/uninorm/decomposition-tests (Files): Likewise.
15776         * modules/uninorm/filter-tests (Files): Likewise.
15777         * modules/uninorm/nfc-tests (Files): Likewise.
15778         * modules/uninorm/nfd-tests (Files): Likewise.
15779         * modules/uninorm/nfkc-tests (Files): Likewise.
15780         * modules/uninorm/nfkd-tests (Files): Likewise.
15781         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15782         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15783         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15784         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15785         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15786         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15787         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15788         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15789         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15790         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15791         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15792         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15793         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15794         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15795         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15796         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15797         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15798         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15799         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15800         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15801         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15802         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15803         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15804         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15805         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15806         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15807         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15808         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15809         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15810         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15811         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15812         * modules/uniwidth/u8-width-tests (Files): Likewise.
15813         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15814         * modules/uniwidth/u16-width-tests (Files): Likewise.
15815         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15816         * modules/uniwidth/u32-width-tests (Files): Likewise.
15817         * modules/uniwidth/width-tests (Files): Likewise.
15818         * modules/unlink-tests (Files): Likewise.
15819         * modules/unsetenv-tests (Files): Likewise.
15820         * modules/usleep-tests (Files): Likewise.
15821         * modules/utimens-tests (Files): Likewise.
15822         * modules/utimensat-tests (Files): Likewise.
15823         * modules/vasnprintf-posix-tests (Files): Likewise.
15824         * modules/vasnprintf-tests (Files): Likewise.
15825         * modules/vasprintf-posix-tests (Files): Likewise.
15826         * modules/vasprintf-tests (Files): Likewise.
15827         * modules/vdprintf-posix-tests (Files): Likewise.
15828         * modules/vfprintf-posix-tests (Files): Likewise.
15829         * modules/vprintf-posix-tests (Files): Likewise.
15830         * modules/vsnprintf-posix-tests (Files): Likewise.
15831         * modules/vsnprintf-tests (Files): Likewise.
15832         * modules/vsprintf-posix-tests (Files): Likewise.
15833         * modules/wcrtomb-tests (Files): Likewise.
15834         * modules/wcsnrtombs-tests (Files): Likewise.
15835         * modules/wcsrtombs-tests (Files): Likewise.
15836         * modules/wctype-tests (Files): Likewise.
15837         * modules/wcwidth-tests (Files): Likewise.
15838         * modules/xmemdup0-tests (Files): Likewise.
15839         * modules/xprintf-posix-tests (Files): Likewise.
15840         * modules/xvasprintf-tests (Files): Likewise.
15841
15842 2009-12-24  Eric Blake  <ebb9@byu.net>
15843
15844         test-nanosleep: fix typo
15845         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15846         patch.
15847         Reported by Bruno Haible.
15848
15849 2009-12-24  Bruno Haible  <bruno@clisp.org>
15850
15851         Reduce namespace pollution on glibc systems.
15852         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15853         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15854         systems.
15855         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15856         <getopt.h> on glibc systems.
15857         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15858         systems.
15859         * lib/fcntl.c: Include <unistd.h> here instead.
15860
15861 2009-12-24  Bruno Haible  <bruno@clisp.org>
15862
15863         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15864
15865 2009-12-24  Eric Blake  <ebb9@byu.net>
15866
15867         tests: add signature checks
15868         * tests/signature.h (SIGNATURE_CHECK): New file.
15869         * modules/atexit-tests (Files): Use it.
15870         * modules/btowc-tests (Files): Likewise.
15871         * modules/canonicalize-lgpl-tests (Files): Likewise.
15872         * modules/ceilf-tests (Files): Likewise.
15873         * modules/ceill-tests (Files): Likewise.
15874         * modules/chown-tests (Files): Likewise.
15875         * modules/dprintf-posix-tests (Files): Likewise.
15876         * modules/dup2-tests (Files): Likewise.
15877         * modules/dup3-tests (Files): Likewise.
15878         * modules/duplocale-tests (Files): Likewise.
15879         * modules/fchdir-tests (Files): Likewise.
15880         * modules/fcntl-tests (Files): Likewise.
15881         * modules/fdopendir-tests (Files): Likewise.
15882         * modules/fflush-tests (Files): Likewise.
15883         * modules/flock-tests (Files): Likewise.
15884         * modules/floorf-tests (Files): Likewise.
15885         * modules/floorl-tests (Files): Likewise.
15886         * modules/fnmatch-tests (Files): Likewise.
15887         * modules/fopen-tests (Files): Likewise.
15888         * modules/fprintf-posix-tests (Files): Likewise.
15889         * modules/freopen-tests (Files): Likewise.
15890         * modules/frexp-nolibm-tests (Files): Likewise.
15891         * modules/frexp-tests (Files): Likewise.
15892         * modules/frexpl-nolibm-tests (Files): Likewise.
15893         * modules/frexpl-tests (Files): Likewise.
15894         * modules/fseek-tests (Files): Likewise.
15895         * modules/fseeko-tests (Files): Likewise.
15896         * modules/fsync-tests (Files): Likewise.
15897         * modules/ftell-tests (Files): Likewise.
15898         * modules/ftello-tests (Files): Likewise.
15899         * modules/futimens-tests (Files): Likewise.
15900         * modules/getaddrinfo-tests (Files): Likewise.
15901         * modules/getcwd-tests (Files): Likewise.
15902         * modules/getdelim-tests (Files): Likewise.
15903         * modules/getdtablesize-tests (Files): Likewise.
15904         * modules/getgroups-tests (Files): Likewise.
15905         * modules/gethostname-tests (Files): Likewise.
15906         * modules/getline-tests (Files): Likewise.
15907         * modules/getopt-posix-tests (Files): Likewise.
15908         * modules/gettimeofday-tests (Files): Likewise.
15909         * modules/glob-tests (Files): Likewise.
15910         * modules/iconv-tests (Files): Likewise.
15911         * modules/inet_ntop-tests (Files): Likewise.
15912         * modules/inet_pton-tests (Files): Likewise.
15913         * modules/isblank-tests (Files): Likewise.
15914         * modules/lchown-tests (Files): Likewise.
15915         * modules/ldexpl-tests (Files): Likewise.
15916         * modules/link-tests (Files): Likewise.
15917         * modules/linkat-tests (Files): Likewise.
15918         * modules/lseek-tests (Files): Likewise.
15919         * modules/lstat-tests (Files): Likewise.
15920         * modules/mbrtowc-tests (Files): Likewise.
15921         * modules/mbsinit-tests (Files): Likewise.
15922         * modules/mbsnrtowcs-tests (Files): Likewise.
15923         * modules/mbsrtowcs-tests (Files): Likewise.
15924         * modules/memchr-tests (Files): Likewise.
15925         * modules/memcmp-tests (Files): Likewise.
15926         * modules/memmem-tests (Files): Likewise.
15927         * modules/memrchr-tests (Files): Likewise.
15928         * modules/mkdir-tests (Files): Likewise.
15929         * modules/mkfifo-tests (Files): Likewise.
15930         * modules/mkfifoat-tests (Files): Likewise.
15931         * modules/mknod-tests (Files): Likewise.
15932         * modules/nanosleep-tests (Files): Likewise.
15933         * modules/nl_langinfo-tests (Files): Likewise.
15934         * modules/obstack-printf-tests (Files): Likewise.
15935         * modules/open-tests (Files): Likewise.
15936         * modules/openat-tests (Files): Likewise.
15937         * modules/perror-tests (Files): Likewise.
15938         * modules/pipe2-tests (Files): Likewise.
15939         * modules/poll-tests (Files): Likewise.
15940         * modules/popen-tests (Files): Likewise.
15941         * modules/posix_spawn-tests (Files): Likewise.
15942         * modules/posix_spawnp-tests (Files): Likewise.
15943         * modules/pread-tests (Files): Likewise.
15944         * modules/printf-posix-tests (Files): Likewise.
15945         * modules/pty-tests (Files): Likewise.
15946         * modules/random_r-tests (Files): Likewise.
15947         * modules/rawmemchr-tests (Files): Likewise.
15948         * modules/readlink-tests (Files): Likewise.
15949         * modules/remove-tests (Files): Likewise.
15950         * modules/rename-tests (Files): Likewise.
15951         * modules/renameat-tests (Files): Likewise.
15952         * modules/rmdir-tests (Files): Likewise.
15953         * modules/round-tests (Files): Likewise.
15954         * modules/roundf-tests (Files): Likewise.
15955         * modules/roundl-tests (Files): Likewise.
15956         * modules/select-tests (Files): Likewise.
15957         * modules/setenv-tests (Files): Likewise.
15958         * modules/sigaction-tests (Files): Likewise.
15959         * modules/sleep-tests (Files): Likewise.
15960         * modules/snprintf-posix-tests (Files): Likewise.
15961         * modules/snprintf-tests (Files): Likewise.
15962         * modules/sprintf-posix-tests (Files): Likewise.
15963         * modules/stat-tests (Files): Likewise.
15964         * modules/strcasestr-tests (Files): Likewise.
15965         * modules/strchrnul-tests (Files): Likewise.
15966         * modules/strerror-tests (Files): Likewise.
15967         * modules/strsignal-tests (Files): Likewise.
15968         * modules/strstr-tests (Files): Likewise.
15969         * modules/strtod-tests (Files): Likewise.
15970         * modules/strverscmp-tests (Files): Likewise.
15971         * modules/symlink-tests (Files): Likewise.
15972         * modules/symlinkat-tests (Files): Likewise.
15973         * modules/times-tests (Files): Likewise.
15974         * modules/trunc-tests (Files): Likewise.
15975         * modules/truncf-tests (Files): Likewise.
15976         * modules/truncl-tests (Files): Likewise.
15977         * modules/tsearch-tests (Files): Likewise.
15978         * modules/uname-tests (Files): Likewise.
15979         * modules/unlink-tests (Files): Likewise.
15980         * modules/unsetenv-tests (Files): Likewise.
15981         * modules/usleep-tests (Files): Likewise.
15982         * modules/utimensat-tests (Files): Likewise.
15983         * modules/vasprintf-tests (Files): Likewise.
15984         * modules/vdprintf-posix-tests (Files): Likewise.
15985         * modules/vfprintf-posix-tests (Files): Likewise.
15986         * modules/vprintf-posix-tests (Files): Likewise.
15987         * modules/vsnprintf-posix-tests (Files): Likewise.
15988         * modules/vsnprintf-tests (Files): Likewise.
15989         * modules/vsprintf-posix-tests (Files): Likewise.
15990         * modules/wcrtomb-tests (Files): Likewise.
15991         * modules/wcsnrtombs-tests (Files): Likewise.
15992         * modules/wcsrtombs-tests (Files): Likewise.
15993         * modules/wcwidth-tests (Files): Likewise.
15994         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15995         * tests/test-isinf.c (isinf): Likewise.
15996         * tests/test-isnan.c (isnan): Likewise.
15997         * tests/test-signbit.c (signbit): Likewise.
15998         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15999         declaration, either as macro or with correct signature.
16000         (select): Ensure function under test is declared with correct
16001         signature in correct header.
16002         * tests/test-atexit.c (atexit): Likewise.
16003         * tests/test-btowc.c (btowc): Likewise.
16004         * tests/test-canonicalize-lgpl.c (realpath)
16005         (canonicalize_file_name): Likewise.
16006         * tests/test-ceilf1.c (ceilf): Likewise.
16007         * tests/test-ceill.c (ceill): Likewise.
16008         * tests/test-chown.c (chown): Likewise.
16009         * tests/test-dprintf-posix.c (dprintf): Likewise.
16010         * tests/test-dup2.c (dup2): Likewise.
16011         * tests/test-dup3.c (dup3): Likewise.
16012         * tests/test-duplocale.c (duplocale): Likewise.
16013         * tests/test-fchdir.c (fchdir): Likewise.
16014         * tests/test-fchownat.c (fchownat): Likewise.
16015         * tests/test-fcntl.c (fcntl): Likewise.
16016         * tests/test-fdopendir.c (fdopendir): Likewise.
16017         * tests/test-fflush.c (fflush): Likewise.
16018         * tests/test-flock.c (flock): Likewise.
16019         * tests/test-floorf1.c (floorf): Likewise.
16020         * tests/test-floorl.c (floorl): Likewise.
16021         * tests/test-fnmatch.c (fnmatch): Likewise.
16022         * tests/test-fopen.c (fopen): Likewise.
16023         * tests/test-fprintf-posix.c (fprintf): Likewise.
16024         * tests/test-freopen.c (freopen): Likewise.
16025         * tests/test-frexp.c (frexp): Likewise.
16026         * tests/test-frexpl.c (frexpl): Likewise.
16027         * tests/test-fseek.c (fseek): Likewise.
16028         * tests/test-fseeko.c (fseeko): Likewise.
16029         * tests/test-fstatat.c (fstatat): Likewise.
16030         * tests/test-fsync.c (fsync): Likewise.
16031         * tests/test-ftell.c (ftell): Likewise.
16032         * tests/test-ftello.c (ftello): Likewise.
16033         * tests/test-futimens.c (futimens): Likewise.
16034         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
16035         (gai_strerror): Likewise.
16036         * tests/test-getcwd.c (getcwd): Likewise.
16037         * tests/test-getdelim.c (getdelim): Likewise.
16038         * tests/test-getdtablesize.c (getdtablesize): Likewise.
16039         * tests/test-getgroups.c (getgroups): Likewise.
16040         * tests/test-gethostname.c (gethostname): Likewise.
16041         * tests/test-getline.c (getline): Likewise.
16042         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
16043         Likewise.
16044         * tests/test-gettimeofday.c (gettimeofday): Likewise.
16045         * tests/test-glob.c (glob, globfree): Likewise.
16046         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
16047         * tests/test-inet_ntop.c (inet_ntop): Likewise.
16048         * tests/test-inet_pton.c (inet_pton): Likewise.
16049         * tests/test-isblank.c (isblank): Likewise.
16050         * tests/test-lchown.c (lchown): Likewise.
16051         * tests/test-ldexpl.c (ldexpl): Likewise.
16052         * tests/test-link.c (link): Likewise.
16053         * tests/test-linkat.c (linkat): Likewise.
16054         * tests/test-lseek.c (lseek): Likewise.
16055         * tests/test-lstat.c (lstat): Likewise.
16056         * tests/test-mbrtowc.c (mbrtowc): Likewise.
16057         * tests/test-mbsinit.c (mbsinit): Likewise.
16058         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
16059         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
16060         * tests/test-memchr.c (memchr): Likewise.
16061         * tests/test-memcmp.c (memcmp): Likewise.
16062         * tests/test-memmem.c (memmem): Likewise.
16063         * tests/test-memrchr.c (memrchr): Likewise.
16064         * tests/test-mkdir.c (mkdir): Likewise.
16065         * tests/test-mkdirat.c (mkdirat): Likewise.
16066         * tests/test-mkfifo.c (mkfifo): Likewise.
16067         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
16068         * tests/test-mknod.c (mknod): Likewise.
16069         * tests/test-nanosleep.c (nanosleep): Likewise.
16070         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
16071         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
16072         Likewise.
16073         * tests/test-open.c (open): Likewise.
16074         * tests/test-openat.c (openat): Likewise.
16075         * tests/test-perror.c (perror): Likewise.
16076         * tests/test-pipe2.c (pipe2): Likewise.
16077         * tests/test-poll.c (poll): Likewise.
16078         * tests/test-popen.c (popen, pclose): Likewise.
16079         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16080         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16081         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16082         (posix_spawn_file_actions_destroy)
16083         (posix_spawn_file_actions_addclose)
16084         (posix_spawn_file_actions_addopen)
16085         (posix_spawn_file_actions_adddup2): Likewise.
16086         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16087         * tests/test-pread.c (pread): Likewise.
16088         * tests/test-printf-posix.c (printf): Likewise.
16089         * tests/test-pty.c (openpty, forkpty): Likewise.
16090         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16091         (random_r): Likewise.
16092         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16093         * tests/test-readlink.c (readlink): Likewise.
16094         * tests/test-remove.c (remove): Likewise.
16095         * tests/test-rename.c (rename): Likewise.
16096         * tests/test-renameat.c (renameat): Likewise.
16097         * tests/test-rmdir.c (rmdir): Likewise.
16098         * tests/test-round1.c (round): Likewise.
16099         * tests/test-roundf1.c (roundf): Likewise.
16100         * tests/test-roundl.c (roundl): Likewise.
16101         * tests/test-setenv.c (setenv): Likewise.
16102         * tests/test-sigaction.c (sigaction): Likewise.
16103         * tests/test-sleep.c (sleep): Likewise.
16104         * tests/test-snprintf.c (snprintf): Likewise.
16105         * tests/test-sprintf-posix.c (sprintf): Likewise.
16106         * tests/test-stat.c (stat): Likewise.
16107         * tests/test-stpncpy.c (stpncpy): Likewise.
16108         * tests/test-strcasestr.c (strcasestr): Likewise.
16109         * tests/test-strchrnul.c (strchrnul): Likewise.
16110         * tests/test-strerror.c (strerror): Likewise.
16111         * tests/test-strsignal.c (strsignal): Likewise.
16112         * tests/test-strstr.c (strstr): Likewise.
16113         * tests/test-strtod.c (strtod): Likewise.
16114         * tests/test-strverscmp.c (strverscmp): Likewise.
16115         * tests/test-symlink.c (symlink): Likewise.
16116         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16117         * tests/test-times.c (times): Likewise.
16118         * tests/test-trunc1.c (trunc): Likewise.
16119         * tests/test-truncf1.c (truncf): Likewise.
16120         * tests/test-truncl.c (truncl): Likewise.
16121         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16122         Likewise.
16123         * tests/test-uname.c (uname): Likewise.
16124         * tests/test-unlink.c (unlink): Likewise.
16125         * tests/test-unlinkat.c (unlinkat): Likewise.
16126         * tests/test-unsetenv.c (unsetenv): Likewise.
16127         * tests/test-usleep.c (usleep): Likewise.
16128         * tests/test-utimensat.c (utimensat): Likewise.
16129         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
16130         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
16131         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
16132         * tests/test-vprintf-posix.c (vprintf): Likewise.
16133         * tests/test-vsnprintf.c (vsnprintf): Likewise.
16134         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
16135         * tests/test-wcrtomb.c (wcrtomb): Likewise.
16136         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
16137         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
16138         * tests/test-wcwidth.c (wcwidth): Likewise.
16139
16140         build: pull in conditional headers during GNULIB_POSIXCHECK
16141         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
16142         definitions from any conditionally-included headers.
16143         * lib/stdlib.in.h (includes): Likewise.
16144         * lib/unistd.in.h (includes): Likewise.
16145
16146 2009-12-24  Bruno Haible  <bruno@clisp.org>
16147
16148         * tests/test-argv-iter.c: Include header file being tested immediately
16149         after config.h.
16150         * tests/test-base64.c: Likewise.
16151         * tests/test-flock.c: Likewise.
16152         * tests/test-fsync.c: Likewise.
16153         * tests/test-getdate.c: Likewise.
16154         * tests/test-getndelim2.c: Likewise.
16155         * tests/test-isfinite.c: Likewise.
16156         * tests/test-isinf.c: Likewise.
16157         * tests/test-strerror.c: Likewise.
16158         * tests/test-strsignal.c: Likewise.
16159
16160 2009-12-23  Eric Blake  <ebb9@byu.net>
16161
16162         unistd: work around cygwin bug
16163         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
16164         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
16165         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16166
16167 2009-12-23  Bruno Haible  <bruno@clisp.org>
16168
16169         localename: More tests.
16170         * tests/test-localename.c (SIZEOF): New macro.
16171         (categories): New variable.
16172         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
16173         test_locale_name_default): Add test w.r.t. thread locale.
16174         (test_locale_name_thread): New function.
16175         (main): Invoke it.
16176
16177         localename: Make aware of thread locale.
16178         * lib/localename.h (gl_locale_name_thread): New declaration.
16179         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
16180         behaviour with respect to thread locale.
16181         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
16182         <langinfo.h>, glthread/lock.h.
16183         (SIZE_BITS): New macro.
16184         (string_hash): New function.
16185         (struct hash_node): New type.
16186         (HASH_TABLE_SIZE): New macro.
16187         (struniq_hash_table, struniq_lock): New variables.
16188         (struniq): New function.
16189         (gl_locale_name_thread): New function.
16190         (gl_locale_name): Invoke it.
16191         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
16192         * modules/localename (Depends-on): Add lock.
16193         Reported by Mike Gran <spk121@yahoo.com>.
16194
16195 2009-12-23  Eric Blake  <ebb9@byu.net>
16196
16197         va-args: new module
16198         * modules/va-args: New file.
16199         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
16200         * MODULES.html.sh (Core language properties): Mention it.
16201
16202         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
16203         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
16204         named alias for __attribute__((__unused__)).
16205         * lib/chown.c: Update client.
16206         * lib/fchmodat.c: Likewise.
16207         * lib/fts.c: Likewise.
16208         * lib/getdate.y: Likewise.
16209         * lib/getgroups.c: Likewise.
16210         * lib/getopt.c: Likewise.
16211         * lib/getugroups.c: Likewise.
16212         * lib/mkdir.c: Likewise.
16213         * lib/mkfifo.c: Likewise.
16214         * lib/mkfifoat.c: Likewise.
16215         * lib/mknod.c: Likewise.
16216         * lib/mknodat.c: Likewise.
16217         * lib/readlink.c: Likewise.
16218         * lib/se-context.in.h: Likewise.
16219         * lib/se-selinux.in.h: Likewise.
16220         * lib/sockets.c: Likewise.
16221         * lib/symlink.c: Likewise.
16222         * lib/symlinkat.c: Likewise.
16223         * lib/unicodeio.c: Likewise.
16224         * lib/unistr.h: Likewise.
16225         * tests/test-areadlink.c: Likewise.
16226         * tests/test-areadlinkat.c: Likewise.
16227         * tests/test-filenamecat.c: Likewise.
16228         * tests/test-fseeko.c: Likewise.
16229         * tests/test-ftello.c: Likewise.
16230         * tests/test-getdate.c: Likewise.
16231         * tests/test-getgroups.c: Likewise.
16232         * tests/test-gethostname.c: Likewise.
16233         * tests/test-quotearg.c: Likewise.
16234         * tests/test-version-etc.c: Likewise.
16235         * tests/test-xalloc-die.c: Likewise.
16236         * tests/test-xfprintf-posix.c: Likewise.
16237         * tests/test-xprintf-posix.c: Likewise.
16238         * tests/test-xvasprintf.c: Likewise.
16239
16240         tests: avoid compiler warnings
16241         * tests/test-fcntl.c (main): Delete unused parameters.
16242         * tests/test-freopen-safer.c (main): Likewise.
16243         * tests/test-xalloc-die.c (main): Mark unused parameters.
16244         * tests/test-fseeko.c (main): Likewise.
16245         * tests/test-ftello.c (main): Likewise.
16246         * tests/test-nanosleep.c (main): Avoid declaration warning.
16247         * tests/test-sleep.c (main): Likewise.
16248         * tests/test-unsetenv.c (main): Silence warning about string
16249         literal.
16250         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16251
16252 2009-12-23  Bruno Haible  <bruno@clisp.org>
16253
16254         * tests/test-localename.c (test_locale_name): New function, extracted
16255         from main. Also test mixed situations.
16256         (test_locale_name_posix, test_locale_name_environ,
16257         test_locale_name_default): New functions.
16258         (main): Invoke them all.
16259         * modules/localename-tests (configure.ac): Test for newlocale.
16260
16261 2009-12-23  Bruno Haible  <bruno@clisp.org>
16262
16263         unistd: Ensure getcwd gets declared before being overridden.
16264         * lib/unistd.in.h: Conditionally include <io.h>.
16265
16266 2009-12-22  Bruno Haible  <bruno@clisp.org>
16267
16268         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16269         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16270         (gl_WCHAR_H): Invoke it.
16271         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16272         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16273         Reported by Karl Berry <karl@freefriends.org>.
16274
16275 2009-12-22  Eric Blake  <ebb9@byu.net>
16276
16277         math, unistd: avoid redundant includes
16278         * lib/math.in.h (isnan): No need to re-include <math.h>.
16279         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16280
16281         getsubopt: work around cygwin bug
16282         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16283         avoid conflicting with system getsubopt.
16284         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16285         bug.
16286
16287         getopt: synchronize from glibc
16288         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16289         parameter order.  Adjust all callers.
16290         (_getopt_internal_r, main): Adjust quoting in error messages.
16291         Drop considerations for outdated POSIX 1003.2 error message.
16292         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16293         callers.
16294         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16295
16296         test-getopt: test stderr behavior
16297         * modules/getopt-posix-tests (Depends-on): Add dup2.
16298         * tests/test-getopt.c (ASSERT): Avoid stderr.
16299         (main): Move stderr to a temporary file.
16300         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16301         Instead, add parameter to inform caller if output occurred.
16302         (test_getopt): Adjust all existing tests to expect silence, and
16303         add new tests of leading ":".
16304         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16305         glibc shortcomings with leading "-:" or "+:" in optstring.
16306         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16307         Likewise.
16308         * doc/posix-functions/getopt.texi (getopt): Likewise.
16309
16310         test-getopt: enhance test
16311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16312         supports optind=0.
16313         * tests/test-getopt.c (OPTIND_MIN): Move...
16314         * tests/test-getopt.h (OPTIND_MIN): ...here.
16315         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16316         Require that optind=0 works, since modern BSD supports it in
16317         addition to optreset, and since coreutils expects it.
16318         (test_getopt_long_only): New test.
16319         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16320         glibc shortcomings with 'W;', and enforcement of optind=0.
16321         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16322         Likewise.
16323
16324 2009-12-21  Bruno Haible  <bruno@clisp.org>
16325
16326         localename: Improvements for MacOS X and Cygwin.
16327         * lib/localename.h (gl_locale_name_environ): New declaration.
16328         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16329         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16330         (gl_locale_name_posix): Invoke it.
16331         (gl_locale_name_default): Add comments. Use Windows native API also on
16332         Cygwin.
16333
16334 2009-12-21  Bruno Haible  <bruno@clisp.org>
16335
16336         Update list of Win32 locale ids.
16337         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16338         (LANG_SAMI): Renamed from LANG_SAAMI.
16339         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16340         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16341         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16342         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16343         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16344         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16345         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16346         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16347         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16348         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16349         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16350         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16351         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16352         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16353         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16354         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16355         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16356         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16357         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16358         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16359         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16360         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16361         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16362         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16363         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16364         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16365         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16366         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16367         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16368         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16369         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16370         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16371         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16372         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16373         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16374         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16375         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16376         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16377         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16378         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16379         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16380         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16381         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16382         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16383         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16384         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16385         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16386         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16387         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16388         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16389         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16390         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16391         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16392         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16393         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16394         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16395         Add more languages and countries for Sami, Sorbian. Add more countries
16396         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16397         for Pashto. Change country for Syriac, Tswana.
16398
16399 2009-12-21  Eric Blake  <ebb9@byu.net>
16400
16401         test-utimens: avoid spurious failure
16402         * tests/test-chown.h (nap): Factor...
16403         * tests/nap.h: ...into new file.
16404         * tests/test-lchown.h (nap): Avoid duplication.
16405         * tests/test-utimens-common.h (nap): Use shared implementation,
16406         necessary on file systems with 1-second resolution.
16407         * modules/chown-tests (Files): Include new file.
16408         * modules/fdutimensat-tests (Files): Likewise.
16409         * modules/futimens-tests (Files): Likewise.
16410         * modules/lchown-tests (Files): Likewise.
16411         * modules/openat-tests (Files): Likewise.
16412         * modules/utimens-tests (Files): Likewise.
16413         * modules/utimensat-tests (Files): Likewise.
16414
16415 2009-12-19  Eric Blake  <ebb9@byu.net>
16416
16417         futimens, utimensat: work around Linux bug
16418         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16419         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16420         * lib/utimensat.c (rpl_utimensat): Work around it.
16421         * lib/futimens.c (rpl_futimens): Adjust comment.
16422
16423         utimens: work around Linux ctime bug
16424         * lib/utimens.c (detect_ctime_bug): New helper function.
16425         (update_timespec): Differentiate between workaround needed for
16426         this bug vs. what is needed for systems that lack utimensat.
16427         (fdutimens, lutimens): Work around bug.
16428
16429         utimens: check for ctime update
16430         * tests/test-utimens-common.h (check_ctime): Define.
16431         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16432         * tests/test-futimens.h (test_futimens): Likewise.
16433         * tests/test-lutimens.h (test_lutimens): Likewise.
16434         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16435         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16436
16437 2009-12-19  Bruno Haible  <bruno@clisp.org>
16438
16439         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16440         * tests/test-dprintf-posix2.sh: New file.
16441         * tests/test-dprintf-posix2.c: New file.
16442         * modules/dprintf-posix-tests (Files): Add them.
16443         (configure.ac): Check for getrlimit and setrlimit.
16444         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16445
16446 2009-12-19  Bruno Haible  <bruno@clisp.org>
16447
16448         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16449         * tests/test-fprintf-posix3.sh: New file.
16450         * tests/test-fprintf-posix3.c: New file.
16451         * modules/fprintf-posix-tests (Files): Add them.
16452         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16453
16454 2009-12-19  Eric Blake  <ebb9@byu.net>
16455
16456         dirfd: fix prototype
16457         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16458         * lib/dirfd.c (dirfd): Likewise.
16459
16460         canonicalize: reduce memory usage
16461         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16462         allocation to size.
16463         Reported by Solar Designer <solar@openwall.com>.
16464
16465 2009-12-19  Bruno Haible  <bruno@clisp.org>
16466
16467         New module attribute 'Applicability'.
16468         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16469         * gnulib-tool: New option --extract-applicability.
16470         (func_usage): Document it.
16471         (sed_extract_prog): Recognize it.
16472         (func_get_applicability): New function.
16473         (func_import): Generalize handling of 'link-warning' module.
16474         * modules/link-warning (Applicability): New section.
16475         * modules/arg-nonnull (Applicability): New section.
16476         Repoted by Simon Josefsson <simon@josefsson.org>.
16477
16478 2009-12-19  Bruno Haible  <bruno@clisp.org>
16479
16480         fflush: tweak
16481         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16482         * lib/fseeko.c (rpl_fseeko): Likewise.
16483
16484 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16485
16486         * lib/gl_list.h: Fix typo in comment.
16487
16488 2009-12-16  Eric Blake  <ebb9@byu.net>
16489
16490         fcntl: use to simplify other modules
16491         * modules/cloexec (Depends-on): Add fcntl.
16492         * modules/fchdir (Depends-on): Likewise.
16493         * modules/fd-safer-flag (Depends-on): Likewise.
16494         * modules/unistd-safer (Depends-on): Likewise.
16495         * modules/dup3 (configure.ac): Set module indicator.
16496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16497         missing.
16498         * lib/fchdir.c (_gl_register_dup): Fix comment.
16499         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16500         * lib/dup-safer.c (dup_safer): Likewise.
16501         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16502         * lib/dup3.c (dup3): Likewise.
16503         * tests/test-fchdir.c (main): Enhance test.
16504         Fixes a dup_cloexec bug reported by Ondřej Vašík.
16505
16506         fcntl: port portions of fcntl to mingw
16507         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16508         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16509         replacement for mingw.
16510         * modules/fcntl (Description): Update.
16511         (Depends-on): Add dup2.
16512         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16513         * modules/fcntl-h (Makefile.am): Substitute it.
16514         * lib/fcntl.in.h (fcntl): Update declaration.
16515         (F_DUPFD, F_GETFD): New macros, when needed.
16516         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16517         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16518         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16519         we now guarantee.
16520
16521         fcntl: work around cygwin bug in F_DUPFD
16522         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16523         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16524         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16525         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16526         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16527
16528         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16529         * modules/fcntl (Files): List new files.
16530         (configure.ac): Run a test.
16531         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16532         * lib/fcntl.c (rpl_fcntl): Likewise.
16533         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16534         (gl_FCNTL_H): Always replace fcntl.h.
16535         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16536         * lib/fcntl.in.h (fcntl): Declare replacement.
16537         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16538         needed, plus a witness.
16539         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16540         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16541         * tests/test-fcntl.c: New file.
16542         * modules/fcntl-tests: Likewise.
16543
16544         binary-io: avoid potential compilation warning
16545         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16546         directives.
16547
16548         fflush: avoid compilation error on NetBSD
16549         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16550         between off_t and fpos_t, since the latter is sometimes a struct.
16551         * lib/fseeko.c (rpl_fseeko): Likewise.
16552         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16553
16554 2009-12-15  Eric Blake  <ebb9@byu.net>
16555
16556         fcntl-h, stdio, sys_ioctl: fix declarations
16557         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16558         function must not take arguments.
16559         * lib/sys_ioctl.in.h (ioctl): Likewise.
16560         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16561         (open): Add a link warning.
16562
16563 2009-12-15  Jim Meyering  <meyering@redhat.com>
16564
16565         areadlink, areadlink-with-size: relax license to LGPLv2+
16566         * modules/areadlink (License): Relax to LGPLv2+.
16567         * modules/areadlink-with-size (License): Likewise.
16568
16569 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16570             Bruno Haible  <bruno@clisp.org>
16571
16572         *printf: Fix memory leak.
16573         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16574         * lib/vfprintf.c (vfprintf): Likewise.
16575         * lib/dprintf.c (dprintf): Likewise.
16576         * lib/vdprintf.c (vdprintf): Likewise.
16577
16578 2009-12-14  Eric Blake  <ebb9@byu.net>
16579
16580         accept4: adjust module dependencies
16581         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16582
16583         utimens: one more try at avoiding compiler warning
16584         * lib/utimens.c (lutimens): Lower scope of result.
16585
16586 2009-12-13  Bruno Haible  <bruno@clisp.org>
16587
16588         Move the malloc checking from module 'list' to new module 'xlist'.
16589         * modules/xlist: New file.
16590         * lib/gl_xlist.h: New file.
16591         * lib/gl_xlist.c: New file.
16592         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16593         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16594         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16595         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16596         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16597         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16598         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16599         gl_sortedlist_nx_add): New declarations.
16600         (struct gl_list_implementation): Rename and change methods accordingly.
16601         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16602         (gl_list_nx_create): Renamed from gl_list_create.
16603         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16604         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16605         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16606         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16607         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16608         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16609         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16610         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16611         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16612         gl_list_create_empty.
16613         (gl_list_nx_create): Renamed from gl_list_create.
16614         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16615         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16616         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16617         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16618         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16619         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16620         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16621         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16622         * lib/gl_array_list.c: Don't include xalloc.h.
16623         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16624         NULL upon out-of-memory.
16625         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16626         out-of-memory.
16627         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16628         Change return type to 'int'.
16629         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16630         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16631         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16632         upon out-of-memory.
16633         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16634         upon out-of-memory.
16635         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16636         upon out-of-memory.
16637         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16638         upon out-of-memory.
16639         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16640         out-of-memory.
16641         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16642         Update.
16643         (gl_array_list_implementation): Update.
16644         * lib/gl_carray_list.c: Don't include xalloc.h.
16645         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16646         Return NULL upon out-of-memory.
16647         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16648         out-of-memory.
16649         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16650         Change return type to 'int'.
16651         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16652         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16653         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16654         upon out-of-memory.
16655         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16656         upon out-of-memory.
16657         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16658         out-of-memory.
16659         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16660         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16661         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16662         Update.
16663         (gl_carray_list_implementation): Update.
16664         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16665         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16666         gl_linked_create_empty. Return NULL upon out-of-memory.
16667         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16668         out-of-memory.
16669         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16670         Change return type to 'int'. Return -1 upon out-of-memory.
16671         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16672         out-of-memory.
16673         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16674         upon out-of-memory.
16675         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16676         upon out-of-memory.
16677         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16678         NULL upon out-of-memory.
16679         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16680         upon out-of-memory.
16681         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16682         out-of-memory.
16683         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16684         Update.
16685         * lib/gl_linked_list.c: Don't include xalloc.h.
16686         (gl_linked_list_implementation): Update.
16687         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16688         (add_to_bucket): Change return type to 'int'.
16689         (gl_linkedhash_list_implementation): Update.
16690         * lib/gl_anytree_list1.h (free_subtree): New function.
16691         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16692         gl_tree_create_empty. Return NULL upon out-of-memory.
16693         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16694         Change return type to 'int'. Return -1 upon out-of-memory.
16695         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16696         out-of-memory.
16697         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16698         (gl_tree_remove_node): New function, moved here from
16699         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16700         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16701         Update.
16702         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16703         malloc, not xmalloc. Return NULL upon out-of-memory.
16704         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16705         out-of-memory.
16706         (gl_tree_remove_node_from_tree): New function, extracted from
16707         gl_tree_remove_node.
16708         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16709         upon out-of-memory.
16710         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16711         out-of-memory.
16712         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16713         upon out-of-memory.
16714         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16715         upon out-of-memory.
16716         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16717         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16718         not xmalloc. Return NULL upon out-of-memory.
16719         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16720         out-of-memory.
16721         (gl_tree_remove_node_from_tree): New function, extracted from
16722         gl_tree_remove_node.
16723         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16724         upon out-of-memory.
16725         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16726         out-of-memory.
16727         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16728         upon out-of-memory.
16729         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16730         upon out-of-memory.
16731         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16732         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16733         gl_anytree_list1.h before gl_anyavltree_list2.h.
16734         (gl_avltree_list_implementation): Update.
16735         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16736         gl_anytree_list1.h before gl_anyavltree_list2.h.
16737         (gl_rbtree_list_implementation): Update.
16738         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16739         Change return type to 'int'. Return -1 upon out-of-memory. Use
16740         __builtin_expect.
16741         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16742         (gl_avltreehash_list_implementation): Update.
16743         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16744         (gl_rbtreehash_list_implementation): Update.
16745         * modules/array-list (Depends-on): Remove xalloc.
16746         * modules/carray-list (Depends-on): Likewise.
16747         * modules/linked-list (Depends-on): Likewise.
16748         * modules/linkedhash-list (Depends-on): Likewise.
16749         * modules/avltree-list (Depends-on): Likewise.
16750         * modules/rbtree-list (Depends-on): Likewise.
16751         * modules/avltreehash-list (Depends-on): Likewise.
16752         * modules/rbtreehash-list (Depends-on): Likewise.
16753
16754         * modules/xsublist: New file.
16755         * lib/gl_xsublist.h: New file.
16756         * lib/gl_xsublist.c: New file.
16757         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16758         (gl_sublist_nx_create): New declaration.
16759         * lib/gl_sublist.c: Don't include xalloc.h.
16760         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16761         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16762         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16763         Change return type to 'int'. Return -1 upon out-of-memory.
16764         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16765         upon out-of-memory.
16766         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16767         NULL upon out-of-memory.
16768         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16769         upon out-of-memory.
16770         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16771         NULL upon out-of-memory.
16772         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16773         NULL upon out-of-memory.
16774         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16775         upon out-of-memory.
16776         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16777         (gl_sublist_list_implementation): Update.
16778         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16779         upon out-of-memory.
16780         * modules/sublist (Depends-on): Remove xalloc.
16781
16782         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16783         * tests/test-carray_list.c: Likewise.
16784         * tests/test-linked_list.c: Likewise.
16785         * tests/test-linkedhash_list.c: Likewise.
16786         * tests/test-avltree_list.c: Likewise.
16787         * tests/test-rbtree_list.c: Likewise.
16788         * tests/test-avltreehash_list.c: Likewise.
16789         * tests/test-rbtreehash_list.c: Likewise.
16790         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16791         * modules/carray-list-tests (Makefile.am): Likewise.
16792         * modules/linked-list-tests (Makefile.am): Likewise.
16793         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16794         * modules/avltree-list-tests (Makefile.am): Likewise.
16795         * modules/rbtree-list-tests (Makefile.am): Likewise.
16796         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16797         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16798
16799         * NEWS: Mention the changes.
16800
16801         * lib/clean-temp.c: Include gl_xlist.h.
16802         * modules/clean-temp (Depends-on): Add xlist.
16803
16804         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16805         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16806
16807         * tests/test-array_oset.c: Include gl_xlist.h.
16808         * modules/array-oset-tests (Depends-on): Add xlist.
16809
16810         Reported by José E. Marchesi <jemarch@gnu.org>.
16811
16812 2009-12-13  Bruno Haible  <bruno@clisp.org>
16813
16814         Move the malloc checking from module 'oset' to new module 'xoset'.
16815         * modules/xoset: New file.
16816         * lib/gl_xoset.h: New file.
16817         * lib/gl_xoset.c: New file.
16818         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16819         declarations.
16820         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16821         (struct gl_oset_implementation): Rename and change methods accordingly.
16822         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16823         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16824         'int'. Mark as __warn_unused_result__.
16825         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16826         gl_oset_create_empty.
16827         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16828         'int'.
16829         * lib/gl_array_oset.c: Don't include xalloc.h.
16830         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16831         malloc, not xmalloc.
16832         (grow): Change return type to 'int'. Don't call xalloc_die.
16833         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16834         to 'int'.
16835         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16836         'int'.
16837         (gl_array_oset_implementation): Update.
16838         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16839         gl_tree_create_empty.
16840         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16841         'int'.
16842         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16843         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16844         xmalloc.
16845         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16846         not xmalloc.
16847         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16848         xmalloc.
16849         (gl_avltree_oset_implementation): Update.
16850         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16851         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16852         xmalloc.
16853         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16854         not xmalloc.
16855         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16856         xmalloc.
16857         (gl_rbtree_oset_implementation): Update.
16858         * modules/array-oset (Depends-on): Remove xalloc.
16859         * modules/avltree-oset (Depends-on): Likewise.
16860         * modules/rbtree-oset (Depends-on): Likewise.
16861         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16862         * tests/test-avltree_oset.c: Likewise.
16863         * tests/test-rbtree_oset.c: Likewise.
16864         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16865         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16866         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16867         * NEWS: Mention the change.
16868
16869 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16870
16871         maint.mk: allow a project to override release-prep commands
16872         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16873         commands into a new rule.
16874         (release-prep): New rule.
16875         (release-prep-hook): New overridable variable.
16876
16877 2009-12-13  Bruno Haible  <bruno@clisp.org>
16878
16879         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16880
16881 2009-12-13  Jim Meyering  <meyering@redhat.com>
16882
16883         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16884         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16885
16886 2009-12-12  Bruno Haible  <bruno@clisp.org>
16887
16888         duplocale: Tweak.
16889         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16890
16891 2009-12-12  Karl Berry  <karl@gnu.org>
16892
16893         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16894
16895 2009-12-12  Bruno Haible  <bruno@clisp.org>
16896
16897         * m4/po.m4: Undo incorrect untabification.
16898
16899 2009-12-12  Bruno Haible  <bruno@clisp.org>
16900
16901         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16902         * modules/c-strtod (Depends-on): Add locale.
16903         * modules/c-strtold (Depends-on): Likewise.
16904
16905 2009-12-12  Bruno Haible  <bruno@clisp.org>
16906
16907         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16908
16909 2009-12-11  Eric Blake  <ebb9@byu.net>
16910
16911         setenv: relax requirement in light of POSIX ruling
16912         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16913         not NULL.
16914         * tests/test-setenv.c (main): Relax test.
16915         * tests/test-unsetenv.c (main): Likewise.
16916         * doc/posix-functions/setenv.texi (setenv): Document this.
16917         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16918
16919 2009-12-11  Bruno Haible  <bruno@clisp.org>
16920
16921         New module 'fd-safer-flag'.
16922         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16923         * lib/dup-safer.c (dup_safer_flag): Remove function.
16924         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16925         * lib/fd-safer.c (fd_safer_flag): Remove function.
16926         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16927         * modules/cloexec (configure.ac): Drop indicator macro.
16928         * modules/fd-safer-flag: New file.
16929         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16930         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16931         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16932
16933 2009-12-11  Bruno Haible  <bruno@clisp.org>
16934
16935         Tests for module 'nl_langinfo'.
16936         * modules/nl_langinfo-tests: New file.
16937         * tests/test-nl_langinfo.sh: New file.
16938         * tests/test-nl_langinfo.c: New file.
16939
16940         New module 'nl_langinfo'.
16941         * lib/nl_langinfo.c: New file.
16942         * m4/nl_langinfo.m4: New file.
16943         * modules/nl_langinfo: New file.
16944         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16945
16946 2009-12-11  Bruno Haible  <bruno@clisp.org>
16947
16948         Tests for module 'langinfo'.
16949         * modules/langinfo-tests: New file.
16950         * tests/test-langinfo.c: New file.
16951
16952         New module 'langinfo'.
16953         * lib/langinfo.in.h: New file.
16954         * m4/langinfo_h.m4: New file.
16955         * modules/langinfo: New file.
16956         * doc/posix-headers/langinfo.texi: Mention the new module.
16957
16958 2009-12-11  Bruno Haible  <bruno@clisp.org>
16959
16960         * lib/config.charset: Untabify.
16961
16962 2009-12-11  Bruno Haible  <bruno@clisp.org>
16963
16964         * modules/unistd-safer (configure.ac): Drop indicator macro.
16965
16966 2009-12-11  Bruno Haible  <bruno@clisp.org>
16967
16968         Move pipe2-safer code to its own file.
16969         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16970         * lib/pipe-safer.c (pipe2_safer): Remove function.
16971         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16972         (Makefile.am): Add it to lib_SOURCES.
16973
16974 2009-12-10  Bruno Haible  <bruno@clisp.org>
16975
16976         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16977
16978 2009-12-10  Bruno Haible  <bruno@clisp.org>
16979
16980         Declare which arguments expect non-NULL values, for GCC and clang.
16981         * build-aux/arg-nonnull.h: New file.
16982         * modules/arg-nonnull: New file.
16983         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16984         (inet_ntop, inet_pton): Use it.
16985         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16986         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16987         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16988         (open, openat): Use it.
16989         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16990         (fnmatch): Use it.
16991         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16992         (getopt, getopt_long, getopt_long_only): Use it.
16993         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16994         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16995         Use it.
16996         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16997         (iconv_open): Use it.
16998         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16999         (strtoimax, strtoumax): Use it.
17000         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
17001         (duplocale): Use it.
17002         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
17003         (frexp, frexpl): Use it.
17004         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
17005         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
17006         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
17007         (tsearch, tfind, tdelete, twalk): Use it.
17008         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
17009         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17010         sigpending): Use it.
17011         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
17012         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17013         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17014         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17015         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17016         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17017         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17018         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17019         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17020         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17021         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17022         Use it.
17023         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17024         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17025         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17026         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
17027         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
17028         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
17029         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
17030         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
17031         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
17032         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
17033         strtoull, unsetenv): Use it.
17034         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
17035         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17036         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17037         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17038         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17039         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
17040         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
17041         (strcasecmp, strncasecmp): Use it.
17042         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
17043         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
17044         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
17045         rpl_setsockopt): Use it.
17046         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
17047         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
17048         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
17049         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
17050         (gettimeofday): Use it.
17051         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
17052         (times): Use it.
17053         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
17054         (uname): Use it.
17055         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
17056         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
17057         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
17058         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
17059         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
17060         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
17061         unlinkat, write): Use it.
17062         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
17063         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
17064         * lib/argv-iter.h: Include arg-nonnull.h.
17065         (_ATTRIBUTE_NONNULL_): Remove macro.
17066         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
17067         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
17068         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
17069         optimization.
17070         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
17071         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
17072         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
17073         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
17074         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17075         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17076         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17077         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17078         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17079         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17080         * modules/dirent (Depends-on): Add arg-nonnull.
17081         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17082         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17083         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17084         * modules/fnmatch (Depends-on): Add arg-nonnull.
17085         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17086         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17087         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17088         * modules/glob (Depends-on): Add arg-nonnull.
17089         (Makefile.am): Insert arg-nonnull.h into glob.h.
17090         * modules/iconv_open (Depends-on): Add arg-nonnull.
17091         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17092         * modules/inttypes (Depends-on): Add arg-nonnull.
17093         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17094         * modules/locale (Depends-on): Add arg-nonnull.
17095         (Makefile.am): Insert arg-nonnull.h into locale.h.
17096         * modules/math (Depends-on): Add arg-nonnull.
17097         (Makefile.am): Insert arg-nonnull.h into math.h.
17098         * modules/netdb (Depends-on): Add arg-nonnull.
17099         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17100         * modules/search (Depends-on): Add arg-nonnull.
17101         (Makefile.am): Insert arg-nonnull.h into search.h.
17102         * modules/signal (Depends-on): Add arg-nonnull.
17103         (Makefile.am): Insert arg-nonnull.h into signal.h.
17104         * modules/spawn (Depends-on): Add arg-nonnull.
17105         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17106         * modules/stdio (Depends-on): Add arg-nonnull.
17107         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17108         * modules/stdlib (Depends-on): Add arg-nonnull.
17109         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17110         * modules/string (Depends-on): Add arg-nonnull.
17111         (Makefile.am): Insert arg-nonnull.h into string.h.
17112         * modules/strings (Depends-on): Add arg-nonnull.
17113         (Makefile.am): Insert arg-nonnull.h into strings.h.
17114         * modules/sys_socket (Depends-on): Add arg-nonnull.
17115         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17116         * modules/sys_stat (Depends-on): Add arg-nonnull.
17117         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17118         * modules/sys_time (Depends-on): Add arg-nonnull.
17119         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17120         * modules/sys_times (Depends-on): Add arg-nonnull.
17121         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17122         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17123         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17124         * modules/time (Depends-on): Add arg-nonnull.
17125         (Makefile.am): Insert arg-nonnull.h into time.h.
17126         * modules/unistd (Depends-on): Add arg-nonnull.
17127         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17128         * modules/wchar (Depends-on): Add arg-nonnull.
17129         (Makefile.am): Insert arg-nonnull.h into wchar.h.
17130         * modules/argv-iter (Depends-on): Add arg-nonnull.
17131         * tests/test-canonicalize.c (null_ptr): New function.
17132         (main): Use it.
17133         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
17134         (main): Use it.
17135         * tests/test-memmem.c (null_ptr): New function.
17136         (main): Use it.
17137         Reported by Jim Meyering.
17138
17139 2009-12-10  Bruno Haible  <bruno@clisp.org>
17140
17141         Use spaces for indentation, not tabs.
17142         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17143         * m4/*.m4: Untabify.
17144         * build-aux/*.h: Untabify.
17145         * tests/**/*.[hc]: Untabify.
17146         * README: New section "Indent with spaces, not TABs", based on
17147         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
17148         * NEWS: Mention the change.
17149
17150 2009-12-10  Bruno Haible  <bruno@clisp.org>
17151
17152         pty test: Fix link error.
17153         * modules/pty-tests (Makefile.am): Add the default LDADD value to
17154         test_pty_LDADD.
17155
17156 2009-12-07  Simon Josefsson  <simon@josefsson.org>
17157
17158         * modules/pty: New file.
17159         * modules/pty-tests: New file.
17160         * m4/pty.m4: New file.
17161         * tests/test-pty.c: New file.
17162         * doc/glibc-headers/pty.texi: Modified.
17163         * doc/glibc-functions/forkpty.texi: Modified.
17164         * doc/glibc-functions/openpty.texi: Modified.
17165
17166 2009-12-10  Bruno Haible  <bruno@clisp.org>
17167
17168         Avoid syntax error in C++ mode.
17169         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
17170
17171 2009-12-10  Bruno Haible  <bruno@clisp.org>
17172
17173         Use sed with option -e.
17174         * gnulib-tool (func_version, func_emit_copyright_notice,
17175         func_emit_initmacro_end, func_import, func_create_testdir): Pass
17176         option -e to sed.
17177         * modules/link-warning (Makefile.am): Likewise.
17178
17179 2009-12-10  Jim Meyering  <meyering@redhat.com>
17180
17181         mgetgroups: do not write bytes beyond end of malloc'd buffer
17182         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
17183         username, we call getgroups with a one-element-shorter buffer,
17184         but still told it the length was original, max_n_groups.
17185
17186 2009-12-09  Eric Blake  <ebb9@byu.net>
17187
17188         cloexec: relax license
17189         * modules/cloexec (Maintainer): Add myself.
17190         (License): Use LGPL, not GPL.
17191
17192         link-warning: optimize generation
17193         * modules/link-warning (Makefile.am): Reduce process usage.
17194
17195 2009-12-09  Bruno Haible  <bruno@clisp.org>
17196
17197         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
17198         workaround was added on 2009-11-17.
17199
17200 2009-12-09  Jim Meyering  <meyering@redhat.com>
17201             Bruno Haible  <bruno@clisp.org>
17202
17203         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
17204         * modules/link-warning (Makefile.am): Make the comment-removing sed
17205         command more robust in the face of bootstrap-prepended comment lines.
17206
17207 2009-12-09  Bruno Haible  <bruno@clisp.org>
17208
17209         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
17210         most one group.
17211
17212 2009-12-09  Simon Josefsson <simon@josefsson.org>
17213             Bruno Haible  <bruno@clisp.org>
17214
17215         * build-aux/link-warning.h: Add copyright notice.
17216         * modules/link-warning (Makefile.am): Generate link-warning.h from
17217         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
17218         * NEWS: Mention change in link-warning module.
17219         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
17220         * modules/dirent (Makefile.am): Add dependency to dirent.h.
17221         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
17222         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
17223         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
17224         * modules/math (Makefile.am): Add dependency to math.h.
17225         * modules/search (Makefile.am): Add dependency to search.h.
17226         * modules/signal (Makefile.am): Add dependency to signal.h.
17227         * modules/spawn (Makefile.am): Add dependency to spawn.h.
17228         * modules/stdio (Makefile.am): Add dependency to stdio.h.
17229         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
17230         * modules/string (Makefile.am): Add dependency to string.h.
17231         * modules/strings (Makefile.am): Add dependency to strings.h.
17232         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
17233         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
17234         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
17235         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
17236         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
17237         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
17238         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
17239         * modules/unistd (Makefile.am): Add dependency to unistd.h.
17240         * modules/wchar (Makefile.am): Add dependency to wchar.h.
17241
17242 2009-12-09  Bruno Haible  <bruno@clisp.org>
17243
17244         fchdir: Optimize away rpl_fstat when possible.
17245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
17246         REPLACE_OPEN_DIRECTORY.
17247         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
17248
17249 2009-12-09  Bruno Haible  <bruno@clisp.org>
17250
17251         * lib/fchdir.c: Update comment.
17252
17253 2009-12-09  Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17256
17257 2009-12-08  Eric Blake  <ebb9@byu.net>
17258
17259         fchdir: avoid memory leak on re-registration.
17260         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17261
17262 2009-12-08  Jim Meyering  <meyering@redhat.com>
17263
17264         init.sh: avoid Solaris 10 /bin/sh portability problem
17265         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17266         sourced script:
17267           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17268           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17269           bar
17270         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17271         and two tests used that idiom.
17272         * tests/init.sh: Update suggested usage comments.
17273         (path_prepend_): New function, to be used in place
17274         of the --src-path=DIR option.
17275         (setup_): Move PATH-prepending code into path_prepend_.
17276         * tests/test-pread.sh: Adapt to new usage.
17277         * tests/test-xalloc-die.sh: Likewise.
17278
17279 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17280
17281         * doc/gnulib.texi (Glibc pty.h): Add.
17282         * doc/glibc-functions/forkpty.texi: Add.
17283         * doc/glibc-functions/openpty.texi: Add.
17284         Suggested by Bruno Haible.
17285
17286 2009-12-08  Eric Blake  <ebb9@byu.net>
17287
17288         fchdir: fix logic bugs
17289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17290         * tests/test-fchdir.c (main): Enhance test.
17291         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17292         is in use.
17293
17294         dup2: fix logic bugs
17295         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17296         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17297         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17298         exists.
17299         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17300
17301 2009-12-07  Eric Blake  <ebb9@byu.net>
17302
17303         unlink: fix m4 detection
17304         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17305
17306         unistd-safer: add unit test
17307         * modules/unistd-safer-tests: New file.
17308         * tests/test-dup-safer.c: Likewise.
17309         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17310         * tests/test-dup2.c (setmode): Likewise.
17311         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17312
17313         cloexec: preserve text vs. binary across dup_cloexec
17314         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17315         mode.
17316         * modules/dup2-tests (Depends-on): Add binary-io.
17317         * modules/cloexec-tests (Depends-on): Likewise.
17318         * tests/test-dup2.c (setmode, is_mode): New helpers.
17319         (main): Add tests that translation mode is preserved.
17320         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17321         Reported by Bruno Haible.
17322
17323         mgetgroups: reduce duplicate listings
17324         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17325         resulting array.
17326         * tests/test-chown.h (test_chown): Simplify client.
17327         * tests/test-lchown.h (test_lchown): Likewise.
17328
17329 2009-12-06  Bruno Haible  <bruno@clisp.org>
17330
17331         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17332         value.
17333
17334 2009-12-06  Bruno Haible  <bruno@clisp.org>
17335
17336         * lib/progname.c: Include stdio.h, stdlib.h.
17337         (set_program_name): Reject a NULL argument.
17338
17339 2009-12-05  Eric Blake  <ebb9@byu.net>
17340
17341         pipe2-safer: new module
17342         * modules/pipe2-safer: New file.
17343         * lib/unistd-safer.h (pipe2_safer): New prototype.
17344         * lib/unistd--.h (pipe2): New wrapper.
17345         * lib/pipe-safer.c (pipe2_safer): New function.
17346         * modules/pipe (Depends-on): Add pipe2-safer.
17347         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17348
17349         stdlib-safer: preserve cloexec flag for mkostemp[s]
17350         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17351         fd_safer_flag.
17352
17353         unistd-safer: allow preservation of cloexec status via flag
17354         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17355         prototypes.
17356         * lib/dup-safer.c (dup_safer_flag): New function.
17357         * lib/fd-safer.c (fd_safer_flag): Likewise.
17358         * modules/cloexec (configure.ac): Set witness.
17359
17360         test-dup2: enhance test
17361         * modules/dup2-tests (Depends-on): Add cloexec.
17362         * tests/test-dup2.c (main): Enhance test.
17363
17364         cloexec: add dup_cloexec
17365         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17366         header and comments.
17367         * lib/cloexec.c (set_cloexec_flag): Add comments.
17368         (dup_cloexec): New function, with mingw implementation borrowed
17369         from...
17370         * lib/w32spawn.h (dup_noinherit): ...here.
17371         * modules/execute (Depends-on): Add cloexec.
17372         * modules/pipe (Depends-on): Likewise.
17373         * modules/cloexec (Depends-on): Add dup2.
17374         * modules/cloexec-tests (Files): New file.
17375         * tests/test-cloexec.c: Likewise.
17376
17377         test-xalloc-die: fix test for mingw
17378         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17379         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17380         directory and .exe suffix off argv[0] output.
17381
17382         test-fseeko: fix test for mingw
17383         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17384         than undefining fseek, so test will pass on mingw.
17385
17386 2009-12-05  Bruno Haible  <bruno@clisp.org>
17387
17388         * lib/progname.h (set_program_name): Clarify specification.
17389         * lib/progname.c (set_program_name): Likewise.
17390         Reported by Jim Meyering.
17391
17392 2009-12-05  Jim Meyering  <meyering@redhat.com>
17393
17394         maint.mk: backslash-escape parens in default regexp
17395         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17396         backslash-escape the literal parentheses.
17397
17398         maint.mk: news-date-check: use grep -E
17399         * top/maint.mk (today): Define a Make variable, not a...
17400         (news-date-check): ...shell variable.
17401         (news-date-regexp): Use the Make variable.
17402         Use grep's -E option.  Change the failing diagnostic to mention
17403         the variable, $(news-date-regexp).
17404
17405 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17406
17407         maintainer-makefile: allow customization of NEWS entry format
17408         * top/maint.mk (news-date-regexp): New overridable variable.
17409         (news-date-check): Use it.
17410
17411 2009-12-04  Eric Blake  <ebb9@byu.net>
17412
17413         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17414         * lib/mgetgroups.h (xgetgroups): New prototype.
17415         * lib/mgetgroups.c (xgetgroups): New wrapper.
17416         (mgetgroups): Handle ENOSYS.
17417         * modules/mgetgroups (Depends-on): Add realloc.
17418         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17419
17420         mgetgroups: avoid argument promotion issues with -1
17421         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17422         for invalid gid_t.
17423         * tests/test-chown.h (getegid, test_chown): Likewise.
17424         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17425
17426 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17427
17428         exclude: Fix header file problems.
17429         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17430
17431 2009-12-01  Jim Meyering  <meyering@redhat.com>
17432
17433         fts: fts_open: do not let an empty string cause immediate failure
17434         This is required in support of GNU rm, for which the command
17435         "rm A '' B" must process and remove both A and B, in spite of
17436         the empty string argument.
17437         * lib/fts.c (fts_open): Do not let the presence of an empty string
17438         cause fts_open to fail immediately.  Most fts-using tools must be
17439         able to process all arguments, in order, and can be expected to
17440         diagnose such arguments themselves.
17441
17442 2009-11-30  Eric Blake  <ebb9@byu.net>
17443
17444         utimens: fix compilation error
17445         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17446         Declare variable at right scope.
17447
17448 2009-11-29  Jim Meyering  <meyering@redhat.com>
17449
17450         bootstrap: handle perl-5.11's changed --version output
17451         * build-aux/bootstrap (get_version): Handle perl separately,
17452         since perl-5.11's --version output is different.
17453
17454 2009-11-28  Jim Meyering  <meyering@redhat.com>
17455
17456         userspec: depend on the inttostr module, too
17457         * modules/userspec (Depends-on): Add inttostr.
17458
17459         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17460         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17461         number of MAXUID when it evaluates to (uid_t) -1.
17462         Likewise for group ID.  Reported by Matt McCutchen in
17463         <http://savannah.gnu.org/bugs/?28113>
17464
17465         userspec: reformat to use spaces, not TABs
17466         * lib/userspec.c: Expand TABs to spaces.
17467         Add Emacs' "indent-tabs-mode: nil" hint.
17468
17469 2009-11-27  Eric Blake  <ebb9@byu.net>
17470
17471         getopt-gnu: flush out another BSD bug
17472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17473         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17474         flush out BSD bug.
17475         * tests/test-getopt.h (test_getopt): End lists with NULL.
17476         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17477         (test_getopt_long_posix): Enhance test.
17478         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17479         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17480         getopt-gnu.
17481         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17482         Likewise.
17483
17484 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17485
17486         * modules/idpriv-droptemp-tests (Notice): Fix text.
17487
17488 2009-11-27  Jim Meyering  <meyering@redhat.com>
17489
17490         test-xalloc-die: avoid spurious failure due to libtool argv difference
17491         In a libtool-enabled project, this test would fail due to a difference
17492         in the emitted program name, e.g.,
17493         -test-xalloc-die: memory exhausted
17494         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17495         Use program to avoid that.
17496         * modules/xalloc-die-tests (Depends-on): Add progname.
17497         * tests/test-xalloc-die.c: Include progname.h".
17498         (program_name): Remove decl.
17499         (main): Call set_program_name.
17500         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17501
17502 2009-11-26  Richard Jones  <rjones@redhat.com>
17503
17504         w32sock: leave win32 error in place.
17505         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17506
17507 2009-11-26  Eric Blake  <ebb9@byu.net>
17508
17509         init.sh: suggest to use skip_ and fail_ functions in comments
17510         * tests/init.sh: Add a sentence.
17511
17512 2009-11-25  Bruno Haible  <bruno@clisp.org>
17513
17514         init.sh: add documentation in comments
17515         * tests/init.sh: Add some developer and user documentation.
17516
17517 2009-11-26  Jim Meyering  <meyering@redhat.com>
17518
17519         init.sh: accommodate even those who specify bogus srcdir manually
17520         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17521         configure-time tests to be sanitized, so that there is no need to
17522         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17523         (with no double quotes) suffices.  However, since tests may be
17524         invoked manually, and since you may explicitly set srcdir to the
17525         name of a directory containing spaces, do quote its uses here.
17526         * tests/test-pread.sh: Likewise.
17527         Suggested by Bruno Haible.
17528
17529         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17530         * tests/test-pread.sh: Write no data into the pipe, because
17531         test-pread actually reads none.  This avoids a diagnostic,
17532         "bash: echo: write error: Broken pipe", that arises in the unusual
17533         event something is ignoring SIGPIPE, and might be interpreted
17534         as some sort of failure.  Reported by Bruno Haible.
17535
17536 2009-11-25  Jim Meyering  <meyering@redhat.com>
17537
17538         test-pread: cover failure with ESPIPE and EINVAL
17539         * tests/test-pread.c (main): Test for failure, too.
17540         * tests/test-pread.sh: Invoke with stdin on a pipe.
17541         Suggested by Eric Blake.
17542
17543         pread: improvement and fix
17544         * modules/pread (Depends-on): Depend on lseek, for portability to
17545         e.g., mingw.  Suggested by Eric Blake.
17546         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17547
17548         unistd.in.h: correct declaration of pread
17549         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17550         Reported by Richard W.M. Jones.
17551
17552         test-pread.sh: distribute the test script
17553         * modules/pread-tests (Files): Include test-pread.sh.
17554
17555         test-pread.sh: clean up
17556         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17557         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17558         That is unnecessary, since it's always ".".
17559         Suggestion from Eric Blake.
17560
17561         test-pread.sh: make executable
17562         * tests/test-pread.sh: Set executable bit.
17563         Reported by Eric Blake.
17564
17565         correct typo in test-pread.sh
17566         * tests/test-pread.sh: Add #! line.
17567
17568         test pread
17569         * tests/test-pread.c: New file.
17570         * tests/test-pread.sh: Likewise.
17571         * modules/pread-tests: Likewise.
17572
17573         pread: new module
17574         * modules/pread: New file.
17575         * lib/unistd.in.h (pread): Define/declare.
17576         * lib/pread.c (pread): New file.
17577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17578         * modules/unistd (Makefile.am): Substitute witnesses.
17579         * doc/posix-functions/pread.texi (pread): Update.
17580         * MODULES.html.sh: Add pread.
17581
17582 2009-11-25  Jim Meyering  <meyering@redhat.com>
17583
17584         tests/init.sh: new file to be used via most *.sh tests
17585         * tests/init.sh: New file.
17586
17587 2009-11-25  Eric Blake  <ebb9@byu.net>
17588
17589         utimens: work around older Linux failure with symlinks
17590         * lib/utimens.c (lutimensat_works_really): New variable.
17591         (fdutimens, lutimens): Use it to manage kernels that support
17592         nanosecond times on files, but not on symlinks.
17593         Reported by Ondřej Vašík.
17594
17595         utimes: fix configure grammar
17596         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17597
17598 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17599
17600         regex: Fix fastmap for multibyte character ranges.
17601         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17602         characters when a multibyte character range is included.
17603
17604 2009-11-22  Andy Wingo  <wingo@pobox.com>
17605
17606         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17607         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17608
17609 2009-11-24  Bruno Haible  <bruno@clisp.org>
17610
17611         doc: Most *_l functions exist in MacOS X 10.5.
17612         * doc/posix-functions/duplocale.texi: Update platforms list.
17613         * doc/posix-functions/freelocale.texi: Likewise.
17614         * doc/posix-functions/newlocale.texi: Likewise.
17615         * doc/posix-functions/uselocale.texi: Likewise.
17616         * doc/posix-functions/isalnum_l.texi: Likewise.
17617         * doc/posix-functions/isalpha_l.texi: Likewise.
17618         * doc/posix-functions/isblank_l.texi: Likewise.
17619         * doc/posix-functions/iscntrl_l.texi: Likewise.
17620         * doc/posix-functions/isdigit_l.texi: Likewise.
17621         * doc/posix-functions/isgraph_l.texi: Likewise.
17622         * doc/posix-functions/islower_l.texi: Likewise.
17623         * doc/posix-functions/isprint_l.texi: Likewise.
17624         * doc/posix-functions/ispunct_l.texi: Likewise.
17625         * doc/posix-functions/isspace_l.texi: Likewise.
17626         * doc/posix-functions/isupper_l.texi: Likewise.
17627         * doc/posix-functions/iswalnum_l.texi: Likewise.
17628         * doc/posix-functions/iswalpha_l.texi: Likewise.
17629         * doc/posix-functions/iswblank_l.texi: Likewise.
17630         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17631         * doc/posix-functions/iswctype_l.texi: Likewise.
17632         * doc/posix-functions/iswdigit_l.texi: Likewise.
17633         * doc/posix-functions/iswgraph_l.texi: Likewise.
17634         * doc/posix-functions/iswlower_l.texi: Likewise.
17635         * doc/posix-functions/iswprint_l.texi: Likewise.
17636         * doc/posix-functions/iswpunct_l.texi: Likewise.
17637         * doc/posix-functions/iswspace_l.texi: Likewise.
17638         * doc/posix-functions/iswupper_l.texi: Likewise.
17639         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17640         * doc/posix-functions/isxdigit_l.texi: Likewise.
17641         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17642         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17643         * doc/posix-functions/strcoll_l.texi: Likewise.
17644         * doc/posix-functions/strfmon_l.texi: Likewise.
17645         * doc/posix-functions/strftime_l.texi: Likewise.
17646         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17647         * doc/posix-functions/strxfrm_l.texi: Likewise.
17648         * doc/posix-functions/tolower_l.texi: Likewise.
17649         * doc/posix-functions/toupper_l.texi: Likewise.
17650         * doc/posix-functions/towctrans_l.texi: Likewise.
17651         * doc/posix-functions/towlower_l.texi: Likewise.
17652         * doc/posix-functions/towupper_l.texi: Likewise.
17653         * doc/posix-functions/wcscoll_l.texi: Likewise.
17654         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17655         * doc/posix-functions/wctrans_l.texi: Likewise.
17656         * doc/posix-functions/wctype_l.texi: Likewise.
17657         * doc/glibc-functions/strptime_l.texi: Likewise.
17658         * doc/glibc-functions/strtod_l.texi: Likewise.
17659         * doc/glibc-functions/strtof_l.texi: Likewise.
17660         * doc/glibc-functions/strtol_l.texi: Likewise.
17661         * doc/glibc-functions/strtold_l.texi: Likewise.
17662         * doc/glibc-functions/strtoll_l.texi: Likewise.
17663         * doc/glibc-functions/strtoul_l.texi: Likewise.
17664         * doc/glibc-functions/strtoull_l.texi: Likewise.
17665         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17666         * doc/glibc-functions/wcstod_l.texi: Likewise.
17667         * doc/glibc-functions/wcstof_l.texi: Likewise.
17668         * doc/glibc-functions/wcstol_l.texi: Likewise.
17669         * doc/glibc-functions/wcstold_l.texi: Likewise.
17670         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17671         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17672         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17673
17674 2009-11-24  Bruno Haible  <bruno@clisp.org>
17675
17676         duplocale: Fix logic bug.
17677         * lib/duplocale.c: Don't include <langinfo.h>.
17678         (_NL_LOCALE_NAME): Remove macro.
17679         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17680         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17681
17682 2009-11-23  Jim Meyering  <meyering@redhat.com>
17683
17684         test-update-copyright: don't hard-code /usr/bin/perl
17685         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17686         perl to print the current year.  Gilles Espinasse reported that
17687         the replaced use of perl was hard-coded as /usr/bin/perl.
17688
17689 2009-11-23  Bruno Haible  <bruno@clisp.org>
17690
17691         duplocale: Add support for glibc 2.3.x.
17692         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17693
17694 2009-11-22  Bruno Haible  <bruno@clisp.org>
17695
17696         vasnprintf: Tiny optimization.
17697         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17698         MacOS X.
17699
17700 2009-11-22  Bruno Haible  <bruno@clisp.org>
17701
17702         Tests for module 'duplocale'.
17703         * modules/duplocale-tests: New file.
17704         * tests/test-duplocale.c: New file.
17705
17706         New module 'duplocale'.
17707         * m4/duplocale.m4: New file.
17708         * lib/locale.in.h (duplocale): New declaration.
17709         * lib/duplocale.c: New file.
17710         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17711         gl_LOCALE_H_DEFAULTS): New macros.
17712         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17713         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17714         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17715         REPLACE_DUPLOCALE.
17716         * modules/duplocale: New file.
17717         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17718
17719 2009-11-22  Bruno Haible  <bruno@clisp.org>
17720
17721         * modules/locale-tests (configure.ac): Test for newlocale function.
17722         * tests/test-locale.c: When the system has extended locale functions,
17723         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17724
17725         locale: Make locale_t available when possible.
17726         * lib/locale.in.h: Include <xlocale.h> when it exists.
17727         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17728         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17729         * modules/locale (Depends-on): Add extensions.
17730         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17731         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17732
17733 2009-11-22  Bruno Haible  <bruno@clisp.org>
17734
17735         Add comments.
17736         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17737         invocation.
17738         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17739         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17740         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17741
17742 2009-11-22  Bruno Haible  <bruno@clisp.org>
17743
17744         error: account for the possibility of freopen (stdout).
17745         * lib/error.c: Include <unistd.h>.
17746         (flush_stdout): New function, extracted from error and error_at_line.
17747         Determine stdout's fd dynamically.
17748         (error, error_at_line): Invoke flush_stdout.
17749         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17750         * modules/error (Depends-on): Add unistd.
17751
17752 2009-11-22  Bruno Haible  <bruno@clisp.org>
17753
17754         diffseq: Add comment.
17755         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17756
17757 2009-11-22  Jim Meyering  <meyering@redhat.com>
17758
17759         c-stack: avoid defining an unused static function
17760         * lib/c-stack.c (find_stack_direction): Do not define this function
17761         when it will not be used.
17762
17763         diffseq: avoid spurious gcc warnings
17764         * lib/diffseq.h (IF_LINT2): Define.
17765         (compareseq): Use it to initialize two members of "part".
17766         This avoids two used-uninitialized warnings.
17767
17768 2009-11-21  Jim Meyering  <meyering@redhat.com>
17769
17770         c-stack: avoid "ignoring return value of `write'" warning
17771         * lib/c-stack.c: Include "ignore-value.h".
17772         (die): Explicitly ignore each write return value.
17773         * modules/c-stack (Depends-on): Add ignore-value.
17774
17775 2009-11-21  Bruno Haible  <bruno@clisp.org>
17776
17777         diffseq: reduce scope of variable 'best'.
17778         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17779         variable, earlier used for two different purposes.
17780
17781 2009-11-21  Jim Meyering  <meyering@redhat.com>
17782
17783         diffseq: remove useless assignment to "best"
17784         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17785         assignment.  At that point "best" is already guaranteed to be zero.
17786
17787 2009-11-20  Eric Blake  <ebb9@byu.net>
17788
17789         build: mention ftp redirector in release announcements
17790         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17791         values that used to come from cfg.mk; mention FTP redirect URL.
17792         * build-aux/announce-gen: Mention the mirror list.
17793         Suggested by Karl Berry.
17794
17795         nanosleep: improve port to mingw
17796         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17798         LIB_NANOSLEEP, but only when needed.
17799         * modules/select (Link): Document LIBSOCKET.
17800         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17801         enough.
17802
17803         nanosleep: work around cygwin bug
17804         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17805         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17806         bug.
17807         (getnow): Delete, not needed.
17808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17809         LIB_CLOCK_GETTIME.
17810         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17811         clock-time, gettime.
17812         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17813         bug.
17814         * modules/nanosleep-tests: New test.
17815         * tests/test-nanosleep.c: New file.
17816
17817         sleep: work around cygwin bug
17818         * lib/sleep.c (rpl_sleep): Work around the bug.
17819         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17820         (gl_PREREQ_SLEEP): Delete unused macro.
17821         * modules/sleep (Depends-on): Add verify.
17822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17823         * modules/unistd (Makefile.am): Substitute witness.
17824         * lib/unistd.in.h (sleep): Update prototype.
17825         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17826         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17827         * modules/sleep-tests (Depends-on): Check for alarm.
17828
17829 2009-11-20  Jim Meyering  <meyering@redhat.com>
17830
17831         maint.mk: improve sc_prohibit_magic_number_exit
17832         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17833         so it does not match uses like System.exit(1).
17834         Add comments showing how to correct all offenders.
17835
17836 2009-11-19  Eric Blake  <ebb9@byu.net>
17837
17838         xalloc-die-tests: add missing library
17839         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17840
17841         test-xvasprintf: silence compiler warnings
17842         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17843         empty string from gcc.
17844
17845 2009-11-19  Jim Meyering  <meyering@redhat.com>
17846
17847         xfreopen: new module, from coreutils
17848         * modules/xfreopen: New module.
17849         * lib/xfreopen.c: New file.
17850         * lib/xfreopen.h: New file.
17851         * MODULES.html.sh (File stream based Input/Output"): Add it.
17852
17853 2009-11-19  Eric Blake  <ebb9@byu.net>
17854
17855         manywarnings: depend on warnings
17856         * modules/manywarnings (Depends-on): Add warnings.
17857
17858         build: avoid compiler warnings
17859         * lib/select.c (rpl_select): Delete unused variable.
17860         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17861
17862 2009-11-18  Eric Blake  <ebb9@byu.net>
17863
17864         tests: avoid false negative with --with-packager
17865         * tests/test-version-etc.sh: Discard packager information.
17866         * tests/test-argp-version-etc-1.sh: Likewise.
17867         Reported by Mike Frysinger.
17868
17869         utimens: fix regression on Solaris
17870         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17871         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17872         can only change fd timestamps via futimesat.  Instead, use an
17873         additional witness macro to avoid BSD bug.
17874         Reported by Jim Meyering.
17875
17876 2009-11-17  Eric Blake  <ebb9@byu.net>
17877
17878         usleep: use it to simplify tests
17879         * modules/stat-time-tests (Depends-on): Add usleep.
17880         (configure.ac): Drop usleep check.
17881         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17882         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17883         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17884         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17885         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17886         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17887         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17888         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17889         Likewise.
17890         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17891         * tests/test-lchown.h (nap): Likewise.
17892         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17893         * tests/test-stat-time.c (nap): Likewise.
17894         * tests/test-utimens-common.h (nap): Update comments.
17895
17896         usleep: new module
17897         * modules/usleep: New file.
17898         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17899         * lib/usleep.c (usleep): Likewise.
17900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17901         * modules/unistd (Makefile.am): Substitute witnesses.
17902         * lib/unistd.in.h (usleep): Add declaration.
17903         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17904         * MODULES.html.sh (Date and time): Likewise.
17905         * modules/usleep-tests (Depends-on): New test.
17906         * tests/test-usleep.c: New file.
17907
17908         chown: work around OpenBSD bug
17909         * lib/chown.c (rpl_chown): Work around the bug.
17910         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17911         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17912         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17913         * modules/chown (Depends-on): Add stdbool.
17914         * modules/lchown (Depends-on): Likewise.
17915         * doc/posix-functions/chown.texi (chown): Document the bug.
17916         * doc/posix-functions/lchown.texi (lchown): Likewise.
17917         * tests/test-lchown.h (test_chown): Relax test.
17918
17919         mkstemp: avoid conflict with C++ keyword template
17920         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17921         * lib/mkostemp.c (mkostemp): Likewise.
17922         * lib/mkostemps.c (mkostemps): Likewise.
17923         * lib/mkstemp.c (mkstemp): Likewise.
17924         * lib/mkstemps.c (mkstemps): Likewise.
17925
17926         xalloc-die-tests: optimize
17927         * tests/test-xalloc-die.sh: Reduce number of processes.
17928
17929 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17930
17931         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17932         patch from ludo@gnu.org (Ludovic Courtès).
17933
17934 2009-11-17  Jim Meyering  <meyering@redhat.com>
17935
17936         version-etc: use proper license string
17937         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17938         * modules/version-etc-fsf: Likewise.
17939
17940 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17941
17942         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17943         printed to stdout.  Deal with EOL differences.
17944
17945 2009-11-17  Eric Blake  <ebb9@byu.net>
17946
17947         unsetenv: work around Solaris bug
17948         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17949         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17950         Reported by Jim Meyering.
17951
17952         vasnprintf: avoid compiler warnings
17953         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17954         variables.
17955         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17956
17957 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17958
17959         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17960         settings since xalloc-die is no longer the self test,
17961         xalloc-die.sh is.
17962
17963 2009-11-17  Jim Meyering  <meyering@redhat.com>
17964
17965         test-xalloc-die.sh: make the code agree with the commit log
17966         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17967         at the end, just in case you happen to have a test-xalloc-die
17968         program in some other PATH directory.
17969
17970         test-xalloc-die.sh: fix a portability bug
17971         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17972         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17973         Otherwise, argv[0] (as often seen in diagnostics) would be too
17974         system-dependent, sometimes with, and sometimes without the leading "./".
17975
17976         version-etc-fsf: relax license to LGPLv3+
17977         * modules/version-etc-fsf (License): Relax license.
17978
17979 2009-11-16  Eric Blake  <ebb9@byu.net>
17980
17981         xalloc-die-tests: avoid printing null pointer
17982         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17983         shell script.
17984         * tests/test-xalloc-die.c (program_name): Declare.
17985         * tests/test-xalloc-die.sh (tmpfiles): New file.
17986
17987         setenv, unsetenv: work around various bugs
17988         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17989         (setenv) [HAVE_SETENV]: Work around bugs.
17990         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17992         for bugs.
17993         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17994         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17996         * modules/stdlib (Makefile.am): Update substitutions.
17997         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17998         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17999         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18000         * modules/setenv-tests: New test.
18001         * modules/unsetenv-tests: Likewise.
18002         * tests/test-setenv.c: New file.
18003         * tests/test-unsetenv.c: Likewise.
18004
18005 2009-11-16  Jim Meyering  <meyering@redhat.com>
18006
18007         version-etc: relax license to LGPLv3+
18008         * modules/version-etc (License): Relax license.
18009
18010         better AC_REQUIRE expanded-before-required-warning avoidance
18011         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
18012         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
18013         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
18014         which is no longer needed.
18015
18016 2009-11-16  Eric Blake  <ebb9@byu.net>
18017
18018         test-freading: clean up temporary file
18019         * tests/test-freading.c (main): Remove file on success, and use
18020         ASSERT more liberally.
18021         Reported by Jim Meyering.
18022
18023 2009-11-16  Jim Meyering  <meyering@redhat.com>
18024
18025         avoid new AC_REQUIRE expanded-before-required warnings
18026         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
18027         merely using it.
18028         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
18029         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
18030
18031 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18032
18033         * tests/test-xalloc-die.c: New file.
18034         * modules/xalloc-die-tests: New file.
18035         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
18036         XFAIL_TESTS so it can be appended by modules.
18037
18038 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18039
18040         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
18041         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
18042
18043 2009-11-14  Eric Blake  <ebb9@byu.net>
18044
18045         fnmatch: avoid compiler warning
18046         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
18047         to silence compiler warning about mismatch signedness in ?:.
18048         Reported by Robert Millan.
18049
18050         intprops: add double-inclusion guard
18051         * lib/intprops.h: Allow idempotent includes.
18052         Suggested by Bruce Korb.
18053
18054         openat: detect Solaris fchownat bug
18055         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
18056         penalizing glibc chownat when only lchownat is broken.
18057         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
18058         trailing slash bugs.
18059         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
18060         * modules/openat-tests (Files): Include more files.
18061         (Depends-on): Add mgetgroups, sleep, stat-time.
18062         (configure.ac): Add additional checks.
18063         (Makefile.am): Build new test.
18064         * tests/test-fchownat.c: New file.
18065
18066         lchown: detect Solaris and FreeBSD bug
18067         * lib/lchown.c (rpl_lchown): Work around bug.
18068         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
18069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18070         * modules/unistd (Makefile.am): Populate it.
18071         * lib/unistd.in.h (lchown): Update declaration.
18072         * doc/posix-functions/lchown.texi (lchown): Document the bug.
18073         * modules/lchown-tests: New file.
18074         * tests/test-lchown.h (test_lchown): Likewise.
18075         * tests/test-lchown.c (main): Likewise.
18076
18077         chown: detect Solaris and FreeBSD bug
18078         * lib/chown.c (rpl_chown): Work around bug.
18079         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18080         (gl_PREREQ_CHOWN): Delete.
18081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18082         * modules/unistd (Makefile.am): Populate it.
18083         * lib/unistd.in.h (chown): Update declaration.
18084         * lib/lchown.c (chown): Update client.
18085         * modules/lchown (Depends-on): Add lstat.
18086         * doc/posix-functions/chown.texi (chown): Document the bug.
18087         * doc/posix-functions/getgroups.texi (getgroups): Document
18088         getgroups pitfall.
18089         * modules/chown-tests: New file.
18090         * tests/test-chown.h (test_chown): Likewise.
18091         * tests/test-chown.c (main): Likewise.
18092
18093 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18094
18095         gnulib-tool: correctly detect absence of m4 directories
18096         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18097
18098 2009-11-14  Jim Meyering  <meyering@redhat.com>
18099
18100         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18101         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18102
18103 2009-11-14  John W. Eaton  <jwe@gnu.org>
18104
18105         strftime.h: wrap funtion declaration in extern "C" block
18106         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18107
18108 2009-11-13  Eric Blake  <ebb9@byu.net>
18109
18110         getgroups: avoid compiler warning
18111         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18112
18113         getgroups: work around FreeBSD bug
18114         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18115         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18116         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18117         * tests/test-getgroups.c (main): Fix buffer overrun.
18118
18119         getgroups: avoid compilation failure
18120         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18121         * modules/getgroups (Depends-on): Add stdint.
18122
18123 2009-11-13  Jim Meyering  <meyering@redhat.com>
18124
18125         test-getgroups: avoid compilation failure
18126         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18127
18128 2009-11-13  Eric Blake  <ebb9@byu.net>
18129
18130         mgetgroups: new module, taken from coreutils
18131         * modules/mgetgroups: New file.
18132         * lib/mgetgroups.h: Likewise.
18133         * lib/mgetgroups.c (mgetgroups): Likewise.
18134         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
18135         * MODULES.html.sh (Users and groups): Mention it.
18136
18137         getgroups: don't expose GETGROUPS_T to user
18138         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
18139         an element at a time if GETGROUPS_T is wrong size.
18140         * lib/getugroups.h (getugroups): Change signature.
18141         * lib/unistd.in.h (getgroups): Likewise.
18142         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
18143         signature needs fixing.
18144         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
18145         AC_TYPE_GETGROUPS.
18146         * modules/group-member (Depends-on): Add getgroups.
18147         * lib/group-member.c (group_info, get_group_info): Use gid_t.
18148         (group_member): Rely on getgroups replacement.
18149         * lib/getugroups.c (getugroups): Use gid_t.
18150         * tests/test-getgroups.c (main): Likewise.
18151         * NEWS: Mention the signature change.
18152         * doc/posix-functions/getgroups.texi (getgroups): Mention the
18153         problem with signature.
18154         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
18155         GETGROUPS_T is still useful for setgroups.
18156
18157         getgroups, getugroups: provide stubs for mingw
18158         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
18159         * lib/getugroups.c (getugroups): Likewise.
18160         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
18161         function.  Modernize replacement scheme.
18162         (gl_PREREQ_GETGROUPS): Delete.
18163         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
18164         * modules/getgroups (configure.ac): Declare witness.
18165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18166         * modules/unistd (Depends-on): Substitute witness.
18167         * lib/unistd.in.h (getgroups): Declare replacement.
18168
18169         getgroups: avoid calling exit
18170         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
18171         drop xalloc.
18172         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
18173         dependencies.
18174         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
18175         exiting, in the rare case of malloc failure.
18176
18177         getgroups: fix logic error
18178         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
18179         has more than 20 groups.
18180         * modules/getgroups-tests: New test.
18181         * tests/test-getgroups.c: New file.
18182
18183 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18184
18185         * tests/test-base64.c: Improve.
18186
18187 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18188
18189         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
18190         Blake <ebb9@byu.net>.
18191
18192 2009-11-13  Simon Josefsson  <simon@josefsson.org>
18193
18194         * tests/test-xvasprintf.c: Add %s%s related checks.
18195
18196 2009-11-12  Eric Blake  <ebb9@byu.net>
18197
18198         version-etc: match standards.texi style
18199         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
18200         and use <> only for URLs.
18201
18202 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
18203
18204         fts: do not fail on a submount during traversal
18205         * lib/fts.c (fts_build): Read the stat info again after opening
18206         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
18207         Original report at http://bugzilla.redhat.com/501848.
18208
18209 2009-11-12  Jim Meyering  <meyering@redhat.com>
18210
18211         bootstrap: sync from coreutils
18212         * build-aux/bootstrap (bootstrap_epilogue): New function.
18213         Use git_modules_config in one more place.  This make bootstrap's
18214         --gnulib-srcdir option more useful for testing.
18215
18216         bootstrap: generalize autoheader check
18217         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
18218         AC_CONFIG_HEADERS.
18219
18220 2009-11-11  Eric Blake  <ebb9@byu.net>
18221
18222         mkfifoat: use new modules for Solaris and BSD bugs
18223         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
18224         * lib/mkfifoat.c (mknodat): Split...
18225         * lib/mknodat.c (mknodat): ...into new file.
18226         * modules/mkfifoat (Files): Ship new file.
18227         (Depends-on): Add mkfifo, mknod.
18228         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
18229         (Depends-on): Add symlink.
18230         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
18231         redundant with test_mkfifo.h.
18232         (do_mkfifoat, do_mknodat): New helpers.
18233
18234         mknod: new module
18235         * modules/mknod: New file.
18236         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18237         * lib/mknod.c (mknod): Likewise.
18238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18239         defaults.
18240         * modules/sys_stat (Makefile.am): Substitute them.
18241         * lib/sys_stat.in.h (mknod): Declare replacement.
18242         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18243         Document it.
18244         * doc/posix-functions/mknod.texi (mknod): Likewise.
18245         * modules/mknod-tests: New test.
18246         * tests/test-mknod.c: Likewise.
18247
18248         mkfifo: new module
18249         * modules/mkfifo: New file.
18250         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18251         * lib/mkfifo.c (mkfifo): Likewise.
18252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
18253         defaults.
18254         * modules/sys_stat (Makefile.am): Substitute them.
18255         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18256         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18257         Document it.
18258         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18259         * modules/mkfifo-tests: New test.
18260         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18261         from test-mkfifoat.c.
18262         * tests/test-mkfifo.c: New file.
18263
18264         readlink: detect FreeBSD bug
18265         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18266         slash on symlink.
18267         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18268         * tests/test-readlink.h (test_readlink): Enhance test.
18269
18270         symlink: detect FreeBSD bug
18271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18272         slash on symlink.
18273         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18274         * tests/test-symlink.h (test_symlink): Enhance test.
18275
18276 2009-11-10  Eric Blake  <ebb9@byu.net>
18277
18278         link: detect FreeBSD bug
18279         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18280         symlink.
18281         * doc/posix-functions/link.texi (link): Document the bug.
18282         * tests/test-link.h (test_link): Enhance test.
18283         * tests/test-linkat.c (main): Update caller.
18284
18285         unlink, remove: detect FreeBSD bug
18286         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18287         slash on symlink.
18288         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18289         * doc/posix-functions/remove.texi (remove): Likewise.
18290         * tests/test-unlink.h (test_unlink): Enhance test.
18291         * tests/test-remove.c (main): Likewise.
18292
18293 2009-11-09  Eric Blake  <ebb9@byu.net>
18294
18295         rename: detect FreeBSD bug
18296         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18297         slash on symlink.
18298         * modules/renameat-tests (Depends-on): Add filenamecat.
18299         * tests/test-rename.h (test_rename): Allow one more errno.
18300         * tests/test-renameat.c (main): Likewise.
18301         * doc/posix-functions/rename.texi (rename): Document the bug.
18302
18303         open: detect FreeBSD bug
18304         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18305         symlink.
18306         * doc/posix-functions/open.texi (open): Document the bug.
18307         * doc/posix-functions/utimes.texi (utimes): Likewise.
18308         * tests/test-open.h (test_open): Add parameters, and test symlink
18309         handling.
18310         * tests/test-open.c (main): Adjust caller.
18311         * tests/test-fcntl-safer.c (main): Likewise.
18312         * modules/open-tests (Depends-on): Add stdbool, symlink.
18313         * modules/fcntl-safer-tests (Depends-on): Likewise.
18314         * tests/test-openat.c (main): Add test-open tests.
18315
18316         stat: detect FreeBSD bug
18317         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18318         symlink.
18319         * doc/posix-functions/stat.texi (stat): Document the bug.
18320         * tests/test-stat.h (test_stat_func): Add argument.
18321         * tests/test-stat.c (main): Adjust caller.
18322         * tests/test-fstatat.c (main): Likewise.
18323         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18324         Reported by Jim Meyering.
18325
18326 2009-11-09  James Youngman  <jay@gnu.org>
18327
18328         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18329         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18330
18331 2009-11-08  Jim Meyering  <meyering@redhat.com>
18332
18333         utimens: remove invalid futimesat call
18334         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18335         It used the file descriptor of the target file as the DIR_FD
18336         parameter and NULL as the file name.  That caused failure with
18337         errno == EFAULT on FreeBSD-8.0-rc2
18338
18339 2009-11-07  Eric Blake  <ebb9@byu.net>
18340
18341         fflush, freadseek: use fseeko, not fseek
18342         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18343         (clear_ungetc_buffer): Avoid potential problems on large files.
18344         * lib/freadseek.c (freadseek): Likewise.
18345         * modules/freadseek (Depends-on): Add fseeko.
18346         * modules/fseek (configure.ac): Set a witness.
18347         * tests/test-fflush.c (main): Use fseeko.
18348         * tests/test-fpurge.c (fseek): Disable link warning.
18349         * tests/test-freadable.c (fseek): Likewise.
18350         * tests/test-freading.c (fseek): Likewise.
18351         * tests/test-fseeko.c (fseek): Likewise.
18352         * tests/test-ftell.c (fseek): Likewise.
18353         * tests/test-ftello.c (fseek): Likewise.
18354         * tests/test-fwritable.c (fseek): Likewise.
18355         * tests/test-fwriting.c (fseek): Likewise.
18356
18357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18358
18359         * modules/memchr (Depends-on): Drop getpagesize dependency.
18360
18361 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18362
18363         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18364         Reported by Ludovic Courtès.
18365         * build-aux/pmccabe2html: Improve example usage.
18366         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18367
18368 2009-11-06  Jim Meyering  <meyering@redhat.com>
18369
18370         do-release-commit-and-tag: New module.
18371         Automate the release-commit and tag process.
18372         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18373         * modules/do-release-commit-and-tag: New file.
18374         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18375
18376 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18377
18378         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18379         because test-select.c uses inet_pton.
18380
18381 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18382
18383         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18384         GETADDRINFO_LIB.  Bump serial number.
18385         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18386         Suggested by Eric Blake <ebb9@byu.net>.
18387
18388 2009-11-05  Eric Blake  <ebb9@byu.net>
18389
18390         strtod: detect darwin bug
18391         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18392         Reported by Leo Davis.
18393
18394         freopen-safer: new module
18395         * modules/freopen-safer: New module.
18396         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18397         * lib/freopen-safer.c (freopen_safer): New file.
18398         * lib/stdio-safer.h (freopen_safer): New declaration.
18399         * lib/stdio--.h (freopen): New override.
18400         * MODULES.html.sh (File stream based Input/Output): Mention it.
18401         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18402         freopen-safer module.
18403         * doc/posix-functions/stderr.texi (stderr): Likewise.
18404         * doc/posix-functions/stdin.texi (stdin): Likewise.
18405         * doc/posix-functions/stdout.texi (stdout): Likewise.
18406         * modules/freopen-safer-tests: New test.
18407         * tests/test-reopen-safer.c: New file.
18408
18409 2009-11-05  Jim Meyering  <meyering@redhat.com>
18410
18411         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18412         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18413
18414 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18415
18416         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18417
18418 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18419
18420         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18421
18422 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18423
18424         Fix link error.
18425         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18426         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18427
18428 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18429
18430         * tests/test-func.c: Also test value of __func__.
18431
18432 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18433
18434         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18435         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18436
18437 2009-11-05  Bruno Haible  <bruno@clisp.org>
18438
18439         Fix link error.
18440         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18441         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18442         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18443
18444 2009-11-05  Bruno Haible  <bruno@clisp.org>
18445
18446         Tests for module 'inet_pton'.
18447         * modules/inet_pton-tests: New file.
18448         * tests/test-inet_pton.c: New file.
18449
18450 2009-11-05  Bruno Haible  <bruno@clisp.org>
18451
18452         Tests for module 'inet_ntop'.
18453         * modules/inet_ntop-tests: New file.
18454         * tests/test-inet_ntop.c: New file.
18455
18456 2009-11-04  Eric Blake  <ebb9@byu.net>
18457
18458         stdlib-safer: wrap all mkstemp variants
18459         * modules/mkostemp (configure.ac): Set witness.
18460         * modules/mkostemps (configure.ac): Likewise.
18461         * modules/mkstemps (configure.ac): Likewise.
18462         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18463         (mkstemps_safer): Wrap more functions.
18464         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18465         wrapping.
18466         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18467         (mkstemps_safer): Implement the wrappers.
18468
18469         mkstemps, mkostemps: new modules
18470         * modules/mkostemps: New module.
18471         * modules/mkstemps: Likewise.
18472         * lib/mkostemps.c (mkostemps): New file.
18473         * lib/mkstemps.c (mkstemps): Likewise.
18474         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18475         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18477         * modules/stdlib (Makefile.am): Substitute them.
18478         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18479         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18480         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18481         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18482         * MODULES.html.sh (File system functions): Mention them.
18483
18484         tempname: resync from glibc
18485         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18486         same values for __GT_FILE as glibc.  Abort even when assertions
18487         are disabled.
18488         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18489         match its value otherwise.  Allow idempotent inclusion.
18490         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18491         * lib/mkostemp.c (mkostemp): Likewise.
18492         * lib/mkstemp.c (mkstemp): Likewise.
18493         * lib/tmpfile.c (tmpfile): Likewise.
18494         * NEWS: Document this.
18495
18496         utimens: fix use of futimens on older Linux
18497         * lib/utimens.c (fdutimens): Use updated, rather than original,
18498         timespec to avoid bug in older Linux kernel.
18499         Reported by Simon Josefsson.
18500
18501 2009-11-04  Bruno Haible  <bruno@clisp.org>
18502
18503         Make num_processors more flexible and consistent.
18504         * lib/nproc.h (enum nproc_query): New type.
18505         (num_processors): Add a 'query' argument.
18506         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18507         (num_processors): Add a 'query' argument. Test the value of the
18508         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18509         mingw, count the number of CPUs available for the current process.
18510         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18511         Check for sched_getaffinity and sched_getaffinity_np.
18512         * modules/nproc (Depends-on): Add c-ctype, extensions.
18513         * NEWS: Mention the change.
18514
18515 2009-11-03  Bruno Haible  <bruno@clisp.org>
18516
18517         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18518
18519 2009-11-03  Jim Meyering  <meyering@redhat.com>
18520
18521         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18522         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18523         if it is defined.
18524
18525 2009-11-02  Eric Blake  <ebb9@byu.net>
18526
18527         mktime, timegm: share common declaration
18528         * lib/mktime-internal.h: New file.
18529         * lib/mktime.c: Use it rather than open-coding a declaration.
18530         * lib/timegm.c: Likewise.
18531         * modules/mktime (Files): Ship it.
18532         * modules/timegm (Files): Likewise.
18533         Suggested by Bruno Haible.
18534
18535         test-update-copyright: update test to match script changes
18536         * tests/test-update-copyright.sh: Avoid hard-coding perl
18537         location.  Don't update *.bak created by earlier runs.
18538
18539 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18540             Simon Josefsson  <simon@josefsson.org>
18541             Bruno Haible  <bruno@clisp.org>
18542
18543         Fix link error on Solaris 8.
18544         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18545         also in libnsl. Define also INET_PTON_LIB.
18546         * modules/inet_pton (Link): New section.
18547
18548 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18549             Bruno Haible  <bruno@clisp.org>
18550
18551         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18552         * modules/inet_ntop (Link): New section.
18553         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18554
18555 2009-11-02  Eric Blake  <ebb9@byu.net>
18556
18557         maint: avoid compiler warnings in m4 macros
18558         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18559         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18560
18561 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18562
18563         * m4/pmccabe2html.m4: Remove file.
18564         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18565         function.  Change maintainer.
18566         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18567         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18568         Courtès).
18569
18570 2009-10-31  Eric Blake  <ebb9@byu.net>
18571
18572         fseeko: fix m4 regression
18573         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18574         regression from 2009-10-27.
18575         Reported by Ralf Wildenhues.
18576
18577 2009-10-31  Jim Meyering  <meyering@redhat.com>
18578
18579         inttostr: aesthetics and improved (compile-time) safety
18580         Define inttype_is_signed rather than inttype_is_unsigned,
18581         since the sole use is via "#if inttype_is_signed".
18582         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18583         inttype_is_unsigned.
18584         * lib/offtostr.c (inttype_is_signed): Likewise.
18585         * lib/uinttostr.c (inttype_is_signed): Likewise.
18586         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18587         * lib/inttostr.c (inttostr): Use verify to cross-check the
18588         inttype_is_signed value and the signedness of the actual type.
18589         * modules/inttostr (Depends-on): Add verify.
18590
18591 2009-10-30  Eric Blake  <ebb9@byu.net>
18592
18593         build: avoid compiler warnings
18594         * lib/fchmodat.c (lchmod): Mark unused variables.
18595         * lib/getopt.c (_getopt_initialize): Likewise.
18596         * lib/mktime.c (__mktime_internal): Provide prototype.
18597         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18598         older gcc that do not understand #pragma GCC diagnostic.
18599         * lib/uinttostr.c (inttype_is_unsigned): Define.
18600         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18601
18602 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18603
18604         stat: fix compilation on AIX
18605         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18606         only see struct stat64.
18607
18608 2009-10-30  Eric Blake  <ebb9@byu.net>
18609
18610         exclude: make more robust
18611         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18612         rather than masking a coding bug.
18613         Suggested by Bruno Haible.
18614
18615 2009-10-30  Jim Meyering  <meyering@redhat.com>
18616
18617         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18618         Rather than putting #!/usr/bin/perl on the first line,
18619         start with a variant of what's recommended by "man perlrun" that
18620         invokes the first "perl" program from your shell's search path.
18621         * build-aux/gitlog-to-changelog: Replace #!... as above.
18622         Add a "Local Variables" perl mode setting.
18623         Prompted by a patch from Ludovic Courtès.
18624         Improved by Eric Blake.
18625         * build-aux/useless-if-before-free: Likewise.
18626         * build-aux/announce-gen: Likewise.
18627         * build-aux/update-copyright: Likewise.
18628
18629 2009-10-29  Eric Blake  <ebb9@byu.net>
18630
18631         filenamecat-lgpl: adjust clients
18632         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18633         filenamecat.
18634         * modules/renameat (Depends-on): Likewise.
18635
18636         filenamecat: split into filenamecat-lgpl
18637         * modules/filenamecat-lgpl: New module.
18638         * modules/filenamecat (Files): Move library-safe files into
18639         filenamecat-lgpl.
18640         (Depends-on): Add filenamecat-lgpl.
18641         (configure.ac): Declare witness.
18642         * lib/filenamecat.h (file_name_concat): Only declare when using
18643         GPL module.
18644         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18645         Move...
18646         * lib/filenamecat-lgpl.c: ...into new file.
18647         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18648         (gl_FILE_NAME_CONCAT): Use it.
18649         * MODULES.html.sh (File system functions): Mention new module.
18650
18651         argp: avoid memory leak
18652         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18653         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18654         base_name, since the latter malloc()s and can call exit().
18655         Leak introduced 2006-07-03.
18656
18657         dirname-lgpl: adjust clients that don't need full dirname
18658         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18659         * modules/filenamecat (Depends-on): Likewise.
18660         * modules/linkat (Depends-on): Likewise.
18661         * modules/mkancesdirs (Depends-on): Likewise.
18662         * modules/mkdir (Depends-on): Likewise.
18663         * modules/openat (Depends-on): Likewise.
18664         * modules/savewd (Depends-on): Likewise.
18665         * modules/rename (Depends-on): Likewise.
18666         (License): Relax license.
18667         * modules/mkdir-tests (Depends-on): Drop progname.
18668         (Makefile.am): Delete unneeded LDADD.
18669         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18670
18671         dirname: split into dirname-lgpl
18672         * modules/dirname-lgpl: New module.
18673         * modules/dirname (Files): Move library-safe files into
18674         dirname-lgpl.
18675         (Depends-on): Add dirname-lgpl.
18676         (configure.ac): Declare witness.
18677         * modules/double-slash-root (License): Relax license.
18678         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18679         module.
18680         * lib/dirname.c (dir_len, mdir_name): Move...
18681         * lib/dirname-lgpl.c: ...into new file.
18682         * lib/basename.c (last_component, base_len): Move...
18683         * lib/basename-lgpl.c: ...into new file.
18684         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18685         (gl_DIRNAME): Use it.
18686         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18687         Mention new module.
18688         * modules/dirname-tests (Depends-on): Add progname.
18689         * tests/test-dirname.c (program_name): Delete.
18690
18691         mkdir: make safe for libraries
18692         * modules/mkdir (Depends-on): Drop xalloc.
18693         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18694         exit.
18695
18696         tests: avoid some compiler warnings
18697         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18698         literals.
18699         * tests/test-memchr.c (main): Avoid type mismatch.
18700         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18701         * tests/test-base64.c (main): Likewise.
18702         * tests/test-getdelim.c (main): Likewise.
18703         * tests/test-gethostname.c (main): Likewise.
18704         * tests/test-getline.c (main): Likewise.
18705         * tests/test-netinet_in.c (main): Likewise.
18706         * tests/test-select.c (open_server_socket, main): Likewise.
18707         * tests/test-select-stdin.c (main): Likewise.
18708         * tests/test-sockets.c (main): Likewise.
18709         * tests/test-strsignal.c (main): Likewise.
18710         * tests/test-sys_select.c (main): Likewise.
18711         * tests/test-sys_socket.c (main): Likewise.
18712         * tests/test-u64.c (main): Likewise.
18713         * tests/test-xfprintf-posix.c (main): Likewise.
18714         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18715
18716         sockets: avoid compiler warning
18717         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18718
18719         maint: detect usage(1) and other suspicious exits
18720         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18721
18722 2009-10-29  Jim Meyering  <meyering@redhat.com>
18723
18724         timespec: long-to-int truncation could make timespec_cmp malfunction
18725         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18726         a multiple of 2^32 nanoseconds as no difference.
18727
18728 2009-10-28  Jim Meyering  <meyering@redhat.com>
18729
18730         fprintftime: wrap macro code argument in "do {...} while(0)"
18731         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18732         cpy macro must be a statement that can be followed by a semicolon.
18733         Now that the else clause contains a comment and is hence longer
18734         than one line, I require curly braces.  That in turn requires
18735         that we wrap this code block in the standard do...while(0).
18736
18737         fprintftime: remove stray semicolon from previous change
18738         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18739
18740         fprintftime: avoid a warning about ignored fwrite return value
18741         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18742         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18743         that is unsafe.
18744         * modules/fprintftime (Depends-on): Add ignore-value.
18745
18746         exclude: avoid an unwarranted warning
18747         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18748
18749 2009-10-27  Eric Blake  <ebb9@byu.net>
18750
18751         fseek: avoid compilation failure when fflush is replaced
18752         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18753         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18754         module is in use.
18755         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18756         module is not in use; since REPLACE_FSEEK worked otherwise.
18757         (GNULIB_FTELLO): Likewise for ftell.
18758         Reported by Ian Beckwith and others.
18759
18760 2009-10-27  Bruno Haible  <bruno@clisp.org>
18761
18762         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18763         Reported by Jim Meyering.
18764
18765 2009-10-27  Jim Meyering  <jim@meyering.net>
18766             Bruno Haible  <bruno@clisp.org>
18767
18768         Avoid warning despite dropping the return value of fwrite.
18769         * lib/unicodeio.c: Include ignore-value.h.
18770         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18771         * modules/unicodeio (Depends-on): Add ignore-value.
18772
18773 2009-10-26  Eric Blake  <ebb9@byu.net>
18774
18775         areadlinkat: fix fallback path
18776         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18777         pointer and zero.
18778
18779 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18780
18781         Use a better IO block size for modern systems
18782         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18783         * lib/md2.c: Likewise.
18784         * lib/md4.c: Likewise.
18785         * lib/md5.c: Likewise.
18786         * lib/sha1.c: Likewise.
18787         * lib/sha256.c: Likewise.
18788         * lib/sha512.c: Likewise.
18789
18790 2009-10-22  Eric Blake  <ebb9@byu.net>
18791
18792         tests: avoid several compiler warnings
18793         * tests/test-getcwd.c (main): Avoid buffer underflow.
18794         * tests/test-getdate.c (main): String literals are not safe with
18795         putenv, so use setenv.  Declare unused argument.
18796         * modules/getdate-tests (Depends-on): Add setenv.
18797         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18798         problems with string literals in char *.
18799         * tests/test-hash.c (main): Avoid shadowing declaration.
18800         (insert_new): Treat string literals as char const *.
18801         * tests/test-getopt.h (test_getopt): Likewise.
18802         (getopt_loop): Alter types to minimize casting elsewhere.
18803         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18804         (test_getopt_long_posix): Likewise.
18805         (do_getopt_long): Add wrapper to minimize casting.
18806         * tests/test-atexit.c (clear_temp_file): Use void.
18807         * tests/test-areadlink-with-size.c (main): Declare unused
18808         arguments.
18809         * tests/test-areadlink.c (main): Likewise.
18810         * tests/test-areadlinkat-with-size.c (main): Likewise.
18811         * tests/test-areadlinkat.c (main): Likewise.
18812         * tests/test-canonicalize-lgpl.c (main): Likewise.
18813         * tests/test-canonicalize.c (main): Likewise.
18814         * tests/test-dirent-safer.c (main): Likewise.
18815         * tests/test-dirname.c (main): Likewise.
18816         * tests/test-dup2.c (main): Likewise.
18817         * tests/test-fchdir.c (main): Likewise.
18818         * tests/test-fcntl-h.c (main): Likewise.
18819         * tests/test-fcntl-safer.c (main): Likewise.
18820         * tests/test-fdopendir.c (main): Likewise.
18821         * tests/test-fdutimensat.c (main): Likewise.
18822         * tests/test-fflush.c (main): Likewise.
18823         * tests/test-filenamecat.c (main): Likewise.
18824         * tests/test-filevercmp.c (main): Likewise.
18825         * tests/test-fopen-safer.c (main): Likewise.
18826         * tests/test-fopen.c (main): Likewise.
18827         * tests/test-fpending.c (main): Likewise.
18828         * tests/test-fpurge.c (main): Likewise.
18829         * tests/test-freading.c (main): Likewise.
18830         * tests/test-fstatat.c (main): Likewise.
18831         * tests/test-fsync.c (main): Likewise.
18832         * tests/test-futimens.c (main): Likewise.
18833         * tests/test-getndelim2.c (main): Likewise.
18834         * tests/test-gettimeofday.c (main): Likewise.
18835         * tests/test-getopt.c (main): Likewise.
18836         * tests/test-i-ring.c (main): Likewise.
18837         * tests/test-inttypes.c (main): Likewise.
18838         * tests/test-link.c (main): Likewise.
18839         * tests/test-lstat.c (main): Likewise.
18840         * tests/test-math.c (main): Likewise.
18841         * tests/test-md5.c (main): Likewise.
18842         * tests/test-memchr2.c (main): Likewise.
18843         * tests/test-memrchr.c (main): Likewise.
18844         * tests/test-mkdir.c (main): Likewise.
18845         * tests/test-mkdirat.c (main): Likewise.
18846         * tests/test-mkfifoat.c (main): Likewise.
18847         * tests/test-open.c (main): Likewise.
18848         * tests/test-openat-safer.c (main): Likewise.
18849         * tests/test-openat.c (main): Likewise.
18850         * tests/test-quotearg.c (main): Likewise.
18851         * tests/test-rawmemchr.c (main): Likewise.
18852         * tests/test-readlink.c (main): Likewise.
18853         * tests/test-remove.c (main): Likewise.
18854         * tests/test-rename.c (main): Likewise.
18855         * tests/test-renameat.c (main): Likewise.
18856         * tests/test-rmdir.c (main): Likewise.
18857         * tests/test-sha1.c (main): Likewise.
18858         * tests/test-signal.c (main): Likewise.
18859         * tests/test-sigaction.c (main): Likewise.
18860         * tests/test-stat.c (main): Likewise.
18861         * tests/test-stat-time.c (main): Likewise.
18862         * tests/test-stddef.c (main): Likewise.
18863         * tests/test-stdint.c (main): Likewise.
18864         * tests/test-stdio.c (main): Likewise.
18865         * tests/test-stdlib.c (main): Likewise.
18866         * tests/test-strchrnul.c (main): Likewise.
18867         * tests/test-strerror.c (main): Likewise.
18868         * tests/test-string.c (main): Likewise.
18869         * tests/test-strtod.c (main): Likewise.
18870         * tests/test-strverscmp.c (main): Likewise.
18871         * tests/test-symlink.c (main): Likewise.
18872         * tests/test-symlinkat.c (main): Likewise.
18873         * tests/test-sys_stat.c (main): Likewise.
18874         * tests/test-sys_time.c (main): Likewise.
18875         * tests/test-time.c (main): Likewise.
18876         * tests/test-unistd.c (main): Likewise.
18877         * tests/test-unlink.c (main): Likewise.
18878         * tests/test-unlinkat.c (main): Likewise.
18879         * tests/test-utimens.c (main): Likewise.
18880         * tests/test-utimensat.c (main): Likewise.
18881         * tests/test-version-etc.c (main): Likewise.
18882         * tests/test-wchar.c (main): Likewise.
18883         * tests/test-wctype.c (main): Likewise.
18884         * tests/test-xprintf-posix.c (main): Likewise.
18885         * tests/test-posixtm.c (main): Likewise.
18886         (STREQ): Delete unused macro.
18887         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18888         shadowed variables.
18889         * tests/test-memchr.c (main): Likewise.
18890
18891 2009-10-21  Eric Blake  <ebb9@byu.net>
18892
18893         areadlinkat: avoid failure on older glibc
18894         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18895         rather than mis-comparing 0 against FUNC_RESULT of char*.
18896
18897 2009-10-21  Bruno Haible  <bruno@clisp.org>
18898
18899         * modules/stpncpy (License): Relicense under LGPLv2+.
18900         Reported by David Lutterkort <lutter@redhat.com>.
18901
18902 2009-10-20  Eric Blake  <ebb9@byu.net>
18903
18904         utimensat: work around Solaris 9 bug
18905         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18906         has trailing slash bugs.
18907         * tests/test-lutimens.h (test_lutimens): Enhance test.
18908         * tests/test-utimens.h (test_utimens): Likewise.
18909         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18910         * doc/posix-functions/utimes.texi (utimes): Likewise.
18911         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18912         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18913         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18914         * doc/posix-functions/futimens.texi (futimens): Likewise.
18915
18916         fdutimensat: new module
18917         * modules/fdutimensat: New file.
18918         * lib/fdutimensat.c (fdutimensat): Likewise.
18919         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18920         * MODULES.html.sh (File system functions): Mention module.
18921         * modules/fdutimensat-tests: New test.
18922         * tests/test-fdutimensat.c: Likewise.
18923
18924         doc: regenerate INSTALL
18925         * doc/INSTALL: Reflect recent autoconf update.
18926         * doc/INSTALL.ISO: Likewise.
18927         * doc/INSTALL.UTF-8: Likewise.
18928
18929 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18930
18931         acl: warn if ACL support is not detected
18932         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18933
18934 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18935
18936         * lib/nproc.h: Add extern "C" block for C++.
18937
18938 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18939             Bruno Haible  <bruno@clisp.org>
18940
18941         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18942         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18943         * doc/posix-functions/isalpha.texi: Likewise.
18944         * doc/posix-functions/isblank.texi: Likewise.
18945         * doc/posix-functions/iscntrl.texi: Likewise.
18946         * doc/posix-functions/isdigit.texi: Likewise.
18947         * doc/posix-functions/isgraph.texi: Likewise.
18948         * doc/posix-functions/islower.texi: Likewise.
18949         * doc/posix-functions/isprint.texi: Likewise.
18950         * doc/posix-functions/ispunct.texi: Likewise.
18951         * doc/posix-functions/isspace.texi: Likewise.
18952         * doc/posix-functions/isupper.texi: Likewise.
18953         * doc/posix-functions/isxdigit.texi: Likewise.
18954
18955 2009-10-18  Bruno Haible  <bruno@clisp.org>
18956
18957         Tests for module 'isblank'.
18958         * modules/isblank-tests: New file.
18959         * tests/test-isblank.c: New file.
18960
18961         New module 'isblank'.
18962         * lib/isblank.c: New file.
18963         * m4/isblank.m4: New file.
18964         * modules/isblank: New file.
18965         * doc/posix-functions/isblank.texi: Mention the new module.
18966
18967 2009-10-18  Bruno Haible  <bruno@clisp.org>
18968
18969         New module 'ctype'.
18970         * lib/ctype.in.h: New file.
18971         * m4/ctype.m4: New file.
18972         * modules/ctype: New file.
18973         * doc/posix-headers/ctype.texi: Mention the new module.
18974
18975 2009-10-18  Jim Meyering  <meyering@redhat.com>
18976
18977         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18978         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18979         right after its initialization, rather than farther down.
18980         Keeping these in close proximity makes it easier to ensure
18981         that each such variable is initialized.  E.g.,
18982
18983             LIB_CLOCK_GETTIME=
18984             AC_SUBST([LIB_CLOCK_GETTIME])
18985
18986         This change also increments these serial numbers.
18987         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18988         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18990
18991 2009-10-18  Bruno Haible  <bruno@clisp.org>
18992
18993         Don't let environment variables perturb build.
18994         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18995         (gl_PREREQ_GETHRXTIME): ... not here.
18996
18997 2009-10-18  Bruno Haible  <bruno@clisp.org>
18998
18999         Avoid symlink attack in localcharset module.
19000         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
19001         (O_NOFOLLOW): Define fallback.
19002         (get_charset_aliases): Don't open the file if it is a symbolic link.
19003         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
19004         gl_FCNTL_H.
19005         (gl_FCNTL_H): Require it.
19006         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
19007         * modules/localcharset (Files): Add m4/fcntl_h.m4.
19008         Reported by Fergal Glynn <fglynn@veracode.com>.
19009
19010 2009-10-18  Bruno Haible  <bruno@clisp.org>
19011
19012         Implement nproc for mingw.
19013         * lib/nproc.c: Include <windows.h>
19014         (num_processors): On native Windows platforms, try GetSystemInfo.
19015
19016 2009-10-18  Bruno Haible  <bruno@clisp.org>
19017
19018         Implement nproc for IRIX.
19019         * lib/nproc.c: Include <sys/sysmp.h>.
19020         (num_processors): On IRIX systems, try sysmp.
19021         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
19022
19023 2009-10-18  Bruno Haible  <bruno@clisp.org>
19024
19025         Implement nproc for HP-UX.
19026         * lib/nproc.c: Include <sys/pstat.h>
19027         (num_processors): On HP-UX systems, try pstat_getdynamic.
19028         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
19029         pstat_getdynamic.
19030
19031 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
19032             Bruno Haible  <bruno@clisp.org>
19033
19034         Implement nproc for NetBSD, OpenBSD.
19035         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
19036         (ARRAY_SIZE): New macro.
19037         (num_processors): On BSD systems, try sysctl of HW_NCPU.
19038         * m4/nproc.m4: New file.
19039         * modules/nproc (Files): Add m4/nproc.m4.
19040         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
19041         (Makefile.am): Instead, augment lib_SOURCES.
19042
19043 2009-10-18  Bruno Haible  <bruno@clisp.org>
19044
19045         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
19046         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
19047         sys/param.h.
19048
19049 2009-10-16  Eric Blake  <ebb9@byu.net>
19050
19051         utimensat: new module
19052         * modules/utimensat: New file.
19053         * lib/utimensat.c (utimensat): Likewise.
19054         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19055         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
19056         so we can work around Linux bugs.
19057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19058         * modules/sys_stat (Makefile.am): Substitute them.
19059         * lib/sys_stat.in.h (utimensat): Declare it.
19060         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19061         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19062         * modules/utimensat-tests: New test.
19063         * tests/test-utimensat.c: Likewise.
19064
19065         utimens: let lutimens work on non-symlinks
19066         * lib/utimens.c (lutimens): Fall back to utimens rather than
19067         failing with ENOSYS, when file is not a symlink.
19068         (utimens): Reduce redirection.
19069         * tests/test-lutimens.h (test_lutimens): Update test to cover
19070         non-symlinks.
19071         * tests/test-utimens.h (test_utimens): Update test to cover
19072         symlinks.
19073         * tests/test-utimens.c (main): Update caller.
19074
19075         utimens: cache whether utimensat syscall works
19076         * lib/utimens.c (utimensat_works_really): New cache variable.
19077         (fdutimens, lutimens): Use it to avoid failing syscall.
19078
19079         test-stat-time, test-utimens: improve portability
19080         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19081         ext4 on alpha, and for cygwin.
19082         * tests/test-utimens-common.h: New file.
19083         (nap): Factor delays into single function.
19084         * tests/test-lutimens.h (test_lutimens): Use new header.
19085         * tests/test-futimens.h (test_futimens): Likewise.
19086         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19087         timestamps to occur from same machine, as was done previously for
19088         test_utimens.
19089         * modules/utimens-tests (Files): Ship new file.
19090         * modules/futimens-tests (Files): Likewise.
19091         Reported in part by Jim Meyering.
19092
19093         sys_stat: sort replacement declarations
19094         * lib/sys_stat.in.h: Sort declarations.
19095         * lib/futimens.c (futimens): Fix typo.
19096
19097 2009-10-15  Jim Meyering  <meyering@redhat.com>
19098
19099         don't let environment settings perturb build
19100         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19101         could cause a configure-time and/or build-time malfunction.
19102         Typically, a configure-time function-in-library test is performed
19103         via code like this:
19104
19105           LIB_VAR=
19106           AC_SUBST([LIB_VAR])
19107           prefix_saved_LIBS=$LIBS
19108             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19109                        [test "$ac_cv_search_FUNC" = "none required" ||
19110                         LIB_VAR=$ac_cv_search_FUNC])
19111           LIBS=$prefix_saved_LIBS
19112
19113         However, in each of the files affected by this change, the LIB_VAR=
19114         initialization was omitted.  Thus, when set in the environment, its
19115         value would propagate into generated Makefiles when FUNC is not found
19116         in LIB_NAME.
19117         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19118         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19120
19121 2009-10-14  Eric Blake  <ebb9@byu.net>
19122
19123         fchdir: avoid infinite recursion in mingw
19124         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19125         recursing.
19126
19127         test-stat-time: port to mingw
19128         * tests/test-stat-time.c (force_unlink): Return a value.
19129         (test_ctime) [W32]: Fix compilation error.
19130         (nap): Don't call usleep with too large an argument.  Use
19131         force_unlink.
19132         * doc/pastposix-functions/usleep.texi (usleep): Document the
19133         portability issue.
19134
19135 2009-10-13  Jim Meyering  <meyering@redhat.com>
19136
19137         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
19138         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19139         * modules/pipe-filter-ii: Likewise.
19140         * modules/sys_socket-tests: Likewise.
19141         * modules/tsearch-tests: Likewise.
19142         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
19143         (check): Depend on it.
19144
19145 2009-10-12  Eric Blake  <ebb9@byu.net>
19146
19147         utimens-tests: port to NFS file systems
19148         * tests/test-utimens.h (test_utimens): Refactor utimecmp
19149         comparisons to avoid spurious failures from timestamp drift
19150         between NFS machines.
19151
19152 2009-10-12  Eric Blake  <ebb9@byu.net>
19153
19154         stat-time-tests: minor cleanups
19155         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
19156         * tests/test-stat-time.c (nap): Separate assignment from call.
19157         Suggested by Paolo Bonzini and Bruno Haible.
19158
19159         sys_stat: guarantee struct timespec
19160         * lib/sys_stat.in.h (includes): Always include <time.h>
19161         * modules/sys_stat (Depends-on): Add time.
19162         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
19163         mode_t permission values.
19164         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
19165         get at subsecond timestamps.
19166
19167 2009-10-10  Eric Blake  <ebb9@byu.net>
19168
19169         futimens: new module
19170         * modules/futimens: New file.
19171         * lib/futimens.c (futimens): Likewise.
19172         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
19173         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
19174         we can work around Linux bugs.
19175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19176         * modules/sys_stat (Makefile.am): Substitute them.
19177         * lib/sys_stat.in.h (futimens): Declare it.
19178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19179         * doc/posix-functions/futimens.texi (futimens): Likewise.
19180         * modules/futimens-tests: New test.
19181         * tests/test-futimens.c: Likewise.
19182
19183         utimens: introduce fdutimens
19184         * lib/utimens.h (fdutimens): New prototype.
19185         * lib/utimens.c (gl_futimens): Move guts...
19186         (fdutimens): ...to new interface.
19187         * tests/test-utimens.c (do_fdutimens): Use it.
19188
19189         utimens: add UTIME_NOW and UTIME_OMIT support
19190         * lib/utimens.c (validate_timespec, update_timespec): New helper
19191         functions.
19192         (gl_futimens, lutimens): Use them.
19193         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
19194         stdbool, sys_stat.
19195         (Link): Mention resulting library dependency.
19196         * modules/utimecmp (Link): Likewise.
19197         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
19198         (Makefile.am): Pick up library dependency.
19199         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
19200         definition.
19201         * tests/test-sys_stat.c: Test the definitions.
19202         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
19203         * NEWS: Document library dependency.
19204
19205         utimecmp: support symlink timestamps
19206         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
19207         hashing when possible.  Use pathconf when available.
19208         (SYSCALL_RESOLUTION): Recognize tighter resolution.
19209         * modules/utimecmp (Depends-on): Add lstat.
19210
19211         utimens: add lutimens interface
19212         * lib/utimens.c (lutimens): New function.
19213         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
19214         * lib/utimens.h (lutimens): Declare new interface.
19215         * tests/test-utimens.c (main): Enhance test.
19216         * tests/test-lutimens.h (test_lutimens): New file.
19217         * modules/utimens-tests (Files): Distribute it.
19218         (Depends-on): Add symlink.
19219         (configure.ac): Check for usleep.
19220
19221         utimens: validate futimens usage
19222         * lib/utimens.c (gl_futimens): Require valid fd up front, using
19223         fewer syscalls on failure later on.  Avoid compiler warning on
19224         mingw.
19225         * modules/utimens (Depends-on): Add dup2.
19226
19227         utimens: add test
19228         * modules/utimens-tests: New test.
19229         * tests/test-utimens.h: New file.
19230         * tests/test-futimens.h: Likewise.
19231         * tests/test-utimens.c: Likewise.
19232
19233         doc: mention timestamp portability issues
19234         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
19235         instead.
19236         * doc/posix-functions/utime.texi (utime): Likewise.
19237         * doc/posix-functions/utimes.texi (utimes): Likewise.
19238         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
19239         instead.
19240         * doc/posix-functions/futimens.texi (futimens): Mention utimens
19241         module.
19242         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19243         Mention weakness with symlink timestamps.
19244         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
19245         to utimensat/futimens instead.
19246         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
19247
19248         test-dup2: enhance test
19249         * tests/test-dup2.c (main): Also check AT_FDCWD.
19250
19251         test-stat-time: avoid more spurious failures
19252         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
19253         xfs; and avoid race if the two timestamps cross quantization edge.
19254
19255         relocatable: prefer 'file system' over 'filesystem'
19256         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19257         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19258         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19259         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19260         * lib/relocatable.c (compute_curr_prefix): Likewise.
19261
19262 2009-10-10  Jim Meyering  <meyering@redhat.com>
19263
19264         stat-time-tests: check for the usleep function
19265         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19266
19267 2009-10-10  Bruno Haible  <bruno@clisp.org>
19268
19269         * modules/xnanosleep: Put the Link section after the Include section.
19270
19271 2009-10-09  Eric Blake  <ebb9@byu.net>
19272
19273         dup2: work around FreeBSD 6.1 bug
19274         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19275         * doc/posix-functions/dup2.texi (dup2): Document it.
19276         Reported by Nelson H. F. Beebe and Jim Meyering.
19277
19278         test-stat-time: port to buggy NFS clients
19279         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19280         (test_ctime): Also skip test if mtime and ctime are skewed.
19281
19282         maint: prefer 'file system' over 'filesystem'
19283         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19284         * doc/posix-functions/lstat.texi (lstat): Likewise.
19285         * lib/file-has-acl.c (file_has_acl): Likewise.
19286         * lib/fwriteerror.c [TEST]: Likewise.
19287         * tests/test-areadlink.h (test_areadlink): Likewise.
19288         * tests/test-areadlinkat-with-size.c (main): Likewise.
19289         * tests/test-areadlinkat.c (main): Likewise.
19290         * tests/test-canonicalize-lgpl.c (main): Likewise.
19291         * tests/test-canonicalize.c (main): Likewise.
19292         * tests/test-fstatat.c (main): Likewise.
19293         * tests/test-linkat.c (main): Likewise.
19294         * tests/test-lstat.h (test_lstat_func): Likewise.
19295         * tests/test-mkdir.h (test_mkdir): Likewise.
19296         * tests/test-readlink.h (test_readlink): Likewise.
19297         * tests/test-remove.c (main): Likewise.
19298         * tests/test-rename.h (test_rename): Likewise.
19299         * tests/test-renameat.c (main): Likewise.
19300         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19301         * tests/test-symlink.h (test_symlink): Likewise.
19302         * tests/test-symlinkat.c (main): Likewise.
19303         * tests/test-unlink.h (test_unlink_func): Likewise.
19304         * tests/test-unlinkat.c (main): Likewise.
19305
19306         maint: make realtime library usage explicit
19307         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19308         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19309         * modules/settime (Link): Likewise.
19310         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19311
19312         test-stat-time: speed up execution
19313         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19314         warning on mingw.
19315         (nap): New helper function.
19316         (prepare_test): Use it to reduce sleep time.
19317         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19318         execution.
19319         * modules/stat-time-tests (configure.ac): Check for usleep.
19320
19321 2009-10-09  Jim Meyering  <meyering@redhat.com>
19322
19323         selinux-h: always use getfilecon wrappers
19324         * lib/getfilecon.c: New file.
19325         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19326         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19327         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19328         (fgetfilecon): Provide a stub.
19329         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19330         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19331         file unconditionally.
19332         When <selinux/selinux.h> is found, arrange to use wrappers.
19333         * modules/selinux-h (Files): Add getfilecon.c.
19334         (Makefile.am): Substitute include-next-related bits
19335         into the now-always-generated selinux/selinux.h file.
19336         * doc/glibc-functions/lgetfilecon.texi: New file.
19337         * doc/glibc-functions/fgetfilecon.texi: New file.
19338         * doc/glibc-functions/getfilecon.texi: New file.
19339         * doc/glibc-functions/getfilecon-desc.texi: New file.
19340         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19341         which to pull in the new files.
19342         * MODULES.html.sh (Misc): Add selinux-h.
19343
19344 2009-10-08  Jim Meyering  <meyering@redhat.com>
19345
19346         unistd: fix comment typo
19347         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19348
19349 2009-10-08  Eric Blake  <ebb9@byu.net>
19350
19351         areadlink: use SIZE_MAX consistently
19352         * modules/areadlink (Depends-on): Add stdint.
19353         * modules/areadlink-with-size (Depends-on): Likewise.
19354         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19355         gives NULL; drop sys/types, since unistd gives size_t; and add
19356         stdint for SIZE_MAX.
19357         (SIZE_MAX): Rely on headers.
19358         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19359         and add stdint.
19360         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19361         (SIZE_MAX): Likewise.
19362         (INITIAL_BUF_SIZE): Turn into enum.
19363         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19364
19365 2009-10-08  Jim Meyering  <meyering@redhat.com>
19366
19367         areadlinkat: avoid compilation failure
19368         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19369         Fix typo in comment.
19370
19371 2009-10-07  Eric Blake  <ebb9@byu.net>
19372
19373         areadlinkat-with-size: new module
19374         * modules/areadlinkat-with-size: New module.
19375         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19376         * lib/areadlink.h (areadlinkat): Declare it.
19377         * MODULES.html.sh (File system functions): Mention it.
19378         * modules/areadlinkat-with-size-tests: New test.
19379         * tests/test-areadlinkat-with-size.c: New file.
19380
19381         xreadlinkat: new module
19382         * modules/xreadlinkat: New module.
19383         * lib/xreadlinkat.c (xreadlinkat): New file.
19384         * lib/xreadlink.h (xreadlinkat): Declare it.
19385         * MODULES.html.sh (File system functions): Mention it.
19386
19387         areadlinkat: new module
19388         * lib/at-func.c (FUNC_FAIL): New define.
19389         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19390         * modules/areadlinkat: New module.
19391         * lib/linkat.c (areadlinkat): Move...
19392         * lib/areadlinkat.c (areadlinkat): ...to new file.
19393         * lib/areadlink.h (areadlinkat): Declare it.
19394         * modules/linkat (Depends-on): Add areadlinkat.
19395         * MODULES.html.sh (File system functions): Mention it.
19396         * modules/areadlinkat-tests: New test.
19397         * tests/test-areadlinkat.c: New file.
19398
19399         areadlink, areadlink-with-size: add tests
19400         * modules/areadlink-tests: New test.
19401         * modules/areadlink-with-size-tests: Likewise.
19402         * tests/test-areadlink.h: New file.
19403         * tests/test-areadlink.c: Likewise.
19404         * tests/test-areadlink-with-size.c: Likewise.
19405
19406         maint: minor cleanups
19407         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19408         _UNUSED_PARAMETER_ instead.
19409         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19410         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19411         * modules/linkat-tests (Files): Distribute test-link.h.
19412
19413         openat, utimens: whitespace cleanup
19414         * lib/openat.c: Prefer space throughout, rather than mix of 8
19415         spaces vs. tabs.
19416         * lib/at-func.c: Likewise.
19417         * lib/utimens.c: Likewise.
19418
19419         openat: avoid using wrong fd
19420         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19421         working directory chooses same fd.
19422         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19423
19424         mkdir, mkdirat: fix cygwin 1.5.x bug
19425         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19426         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19427         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19428         bug.
19429         (gl_PREREQ_MKDIR): Delete unused macro.
19430         * modules/mkdir (Files): Track file rename.
19431         (configure.ac): Update macro name.
19432         * modules/openat (Depends-on): Add mkdir.
19433         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19434
19435         mkdir, mkdirat: add tests
19436         * modules/mkdir-tests: New test.
19437         * tests/test-mkdir.h: New file.
19438         * tests/test-mkdir.c: Likewise.
19439         * tests/test-mkdirat.c: Likewise.
19440         * modules/openat-tests (Files): Add new files.
19441         (Makefile.am): Run new test.
19442
19443 2009-10-06  Eric Blake  <ebb9@byu.net>
19444
19445         doc: tweak *at function documentation
19446         * doc/posix-functions/faccessat.texi (faccessat): Mention
19447         known issue with replacement.
19448         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19449         * doc/posix-functions/linkat.texi (linkat): Likewise.
19450         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19451         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19452         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19453         * doc/posix-functions/renameat.texi (renameat): Likewise.
19454         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19455
19456         openat: fix GNU/Hurd bug in unlinkat
19457         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19458         broken.
19459         * doc/posix-functions/unlink.texi (unlink): Document this.
19460         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19461
19462         fdopendir: fix GNU/Hurd bug
19463         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19464         allowing non-directory fds.
19465         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19466         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19467         * modules/dirent (Makefile.am): Substitute it.
19468         * lib/dirent.in.h (fdopendir): Declare replacement.
19469         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19470         * tests/test-fdopendir.c (main): Test something other than
19471         /dev/null, since on Hurd that behaves like a directory.
19472
19473         test-symlink: port to GNU/Hurd
19474         * tests/test-symlink.h (test_symlink): Relax expected errno.
19475
19476         doc: tweak more cygwin information
19477         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19478         now compatible with glibc.
19479         * doc/posix-functions/getopt.texi (getopt): Likewise.
19480
19481         getopt-gnu: add another test
19482         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19483         guarantee behavior relied on by m4.
19484         * tests/test-getopt.c (main): Use it.
19485         * modules/getopt-posix-tests (Depends-on): Add setenv.
19486         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19487
19488         getopt: fix compilation on darwin
19489         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19490         include.
19491         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19492         Reported by Ludovic Courtès.
19493
19494 2009-10-06  Bruno Haible  <bruno@clisp.org>
19495
19496         * modules/size_max (Description): Discourage its use.
19497         Reported by Simon Josefsson.
19498
19499 2009-10-06  Jim Meyering  <meyering@redhat.com>
19500
19501         linkat: avoid compilation failure
19502         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19503
19504 2009-10-05  Eric Blake  <ebb9@byu.net>
19505
19506         linkat: support Linux 2.6.17
19507         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19508         linkat on Linux, but allow cache variable override.
19509         * lib/linkat.c (rpl_linkat): Define override.
19510         * modules/linkat (Depends-on): Add symlinkat.
19511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19512         * modules/unistd (Makefile.am): Substitute it.
19513         * lib/unistd.in.h (linkat): Declare replacement.
19514         Reported by Pádraig Brady.
19515
19516         quotearg: port test to systems with C.UTF-8 locale
19517         * tests/test-quotearg.c (struct result_strings): Add another
19518         member, differentiating between C.ASCII and C.UTF-8 handling.
19519         (compare_strings): Add parameter.
19520         (main): Adjust all callers.
19521
19522         getopt: avoid clash with FreeBSD _getopt_internal
19523         * lib/getopt.in.h (_getopt_internal): Override the name.
19524         * lib/getopt_int.h (includes): Pick up any overrides.
19525         Reported by Reuben Thomas.
19526
19527         hash: allow C89 compilation
19528         * lib/hash.c (check_tuning): Move declaration before statement.
19529         Reported by Reuben Thomas.
19530
19531 2009-10-05  Karl Berry  <karl@gnu.org>
19532
19533         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19534
19535 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19536             Bruno Haible  <bruno@clisp.org>
19537
19538         * lib/uname.c (uname): Use a table-driven algorithm to compute
19539         Windows NT versions.
19540
19541 2009-10-04  Bruno Haible  <bruno@clisp.org>
19542
19543         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19544         program_invocation_short_name.
19545         * modules/progname (configure.ac): Test for presence of
19546         program_invocation_short_name.
19547         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19548
19549 2009-10-04  Bruno Haible  <bruno@clisp.org>
19550
19551         * lib/progname.c (set_program_name): Fix comment.
19552         Reported by Jim Meyering.
19553
19554 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19555             Bruno Haible  <bruno@clisp.org>
19556
19557         * lib/uname.c: Include <string.h>.
19558         (uname): Do only one call to GetVersionEx in the common case.
19559
19560 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19561             Bruno Haible  <bruno@clisp.org>
19562
19563         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19564         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19565         (uname): Add support for Windows CE and various non-x86 CPU types.
19566
19567 2009-10-03  Bruno Haible  <bruno@clisp.org>
19568
19569         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19570         invocation to tests/configure.ac.
19571         Reported by Ian Beckwith <ianb@erislabs.net>.
19572
19573 2009-10-02  Eric Blake  <ebb9@byu.net>
19574
19575         fchdir: avoid compiler warning
19576         * lib/fchdir.c (canonicalize_file_name)
19577         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19578
19579         test-open: support mingw errno values
19580         * tests/test-open.h (test_open): Relax test.
19581         * tests/test-fopen.h (test_fopen): Likewise.
19582         * tests/test-openat-safer.c (main): Likewise.
19583
19584         open: fix opening directory on mingw
19585         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19586
19587         test-open: on GNU/Hurd, /dev/null is a directory
19588         * tests/test-fopen.h (main): Rename...
19589         (test_fopen): ...to this.  Use a guaranteed non-directory when
19590         confirming open behavior on trailing slash.
19591         * tests/test-openat-safer.c (main): Likewise.
19592         * tests/test-open.h (main): Likewise....
19593         (test_open): ...to this.
19594         * tests/test-fopen.c (main): Adjust caller.
19595         * tests/test-fopen-safer.c (main): Likewise.
19596         * tests/test-open.c (main): Likewise.
19597         * tests/test-fcntl-safer.c (main): Likewise.
19598         Reported by Samuel Thibault.
19599
19600         rename, fchdir: don't ignore chdir failure
19601         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19602         * lib/rename.c (rpl_rename) [W32]: Likewise.
19603         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19604         an empty destination directory if source cannot be renamed,
19605         although there is still possibility for failure.
19606         * doc/posix-functions/rename.texi (rename): Document the race.
19607         Reported by Jim Meyering.
19608
19609         maint: cleanup whitespace in recent commits
19610         * lib/rename.c (rpl_rename): Remove tabs.
19611         * tests/test-link.h (test_link): Likewise.
19612         * lib/fchdir.c (get_name): Likewise.
19613         Reported by Jim Meyering.
19614
19615 2009-10-02  Ben Pfaff  <blp@gnu.org>
19616
19617         relocatable-prog-wrapper: Add missing dependency on
19618         double-slash-root.
19619         * modules/relocatable-prog-wrapper: Add dependency.
19620         Reported by Ian Beckwith <ianb@erislabs.net>.
19621
19622 2009-10-02  Eric Blake  <ebb9@byu.net>
19623
19624         renameat: fix Solaris bugs
19625         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19626         needed fixing.
19627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19628         * modules/stdio (Makefile.am): Substitute it.
19629         * lib/stdio.in.h (renameat): Declare replacement.
19630         * lib/renameat.c (rpl_renameat): Implement fix.
19631
19632         renameat: new module
19633         * modules/renameat: New file.
19634         * lib/renameat.c (renameat): Likewise.
19635         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19637         * modules/stdio (Makefile.am): Substitute them.
19638         * lib/stdio.in.h (renameat): Declare it.
19639         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19640         * doc/posix-functions/renameat.texi (renameat): Likewise.
19641         * modules/renameat-tests: New test.
19642         * tests/test-renameat.c: Likewise.
19643
19644         rename: fix mingw bugs
19645         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19646         directory overwrite bugs.
19647
19648         rename: fix another cygwin 1.5 bug
19649         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19650         checks.
19651         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19652         unnecessary cygwin workarounds.  Also work around bug with moving
19653         full directory onto an empty one.
19654         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19655
19656         rename-dest-slash: merge into rename module
19657         * modules/rename-dest-slash (Status): Mark obsolete.
19658         (Depends-on): Add rename.
19659         (Files): Let rename do it all.
19660         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19661         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19662         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19663         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19664         * lib/rename.c (rpl_rename): Update comments.
19665
19666         rename: fix cygwin 1.5.x bugs
19667         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19668         * lib/rename.c (rpl_rename): Work around them.
19669         * modules/rename (Depends-on): Add same-inode.
19670
19671         rename: fix Solaris 10 bug
19672         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19673         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19674         was the only bug.
19675
19676         rename: fix Solaris 9 bug
19677         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19678         on non-directory.  Avoid calling exit.
19679         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19680         strdup.
19681         * modules/rename-tests (Depends-on): Drop lstat.
19682         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19683         (gl_PREREQ_RENAME): Delete unused macro.
19684
19685         rename-dest-slash: fix NetBSD bug
19686         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19687         links.
19688         * modules/rename-dest-slash (Depends-on): Add same-inode.
19689
19690         rename-tests: new test, exposes several platform bugs
19691         * modules/rename-tests: New file.
19692         * tests/test-rename.h: Likewise.
19693         * tests/test-rename.c: Likewise.
19694         * doc/posix-functions/rename.texi (rename): Improve documentation,
19695         including bugs that will eventually be fixed in gnulib.
19696
19697 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19698
19699         * lib/uname.c: Include <stdlib.h>
19700         (uname): Assume version info is available.
19701
19702 2009-10-02  Jim Meyering  <meyering@redhat.com>
19703
19704         gnu-web-doc-update: correct --help output
19705         * build-aux/gnu-web-doc-update: Make --help output relevant.
19706
19707         gnu-web-doc-update: add standard options
19708         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19709
19710         gnu-web-doc-update: New module.
19711         Use this script to automatically update the on-line web documentation
19712         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19713         * modules/gnu-web-doc-update: New file, from coreutils.
19714         * build-aux/gnu-web-doc-update: New script.
19715
19716 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19717
19718         link: LoadLibrary is not needed.
19719         * lib/link.c: Use GetModuleHandle.
19720
19721 2009-10-01  Eric Blake  <ebb9@byu.net>
19722
19723         getopt: bump serial number
19724         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19725         change.
19726
19727         tests: tighten link, rmdir, and remove tests
19728         * tests/test-link.h (includes): No need to use <config.h> here.
19729         Clean up if directory hard link was created, otherwise test for
19730         trailing '.'.
19731         * tests/test-linkat.c (main): Simplify.
19732         * tests/test-remove.c (main): Enhance test for trailing '.'.
19733         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19734
19735 2009-10-01  Jim Meyering  <meyering@redhat.com>
19736
19737         maint.mk: requiring "make major" was annoying, for a "minor" release.
19738         What is intended is "stable", to contrast with alpha and beta,
19739         so require "make stable", not "make major".
19740         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19741         (get_tool_versions): Likewise.
19742         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19743
19744 2009-09-30  Ben Pfaff  <blp@gnu.org>
19745
19746         Fix broken build of replacement for Windows tmpfile().
19747         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19748         flags argument added along with the 'mkostemp' module.
19749
19750 2009-09-28  Bruno Haible  <bruno@clisp.org>
19751
19752         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19753         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19754         to 'remove_elt'.
19755         (gl_list_remove): Update.
19756         * lib/gl_list.c (gl_list_remove): Update.
19757         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19758         to 'remove_elt'.
19759         (gl_oset_remove): Update.
19760         * lib/gl_list.c (gl_oset_remove): Update.
19761         Reported by Eric Blake.
19762
19763 2009-09-28  Eric Blake  <ebb9@byu.net>
19764
19765         doc: mention yet more cygwin 1.7 status
19766         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19767         cygwin.
19768         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19769         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19770
19771         argp: fix test failure
19772         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19773         that are not upper-case.  Pass correct range to tolower.
19774
19775 2009-09-27  Jim Meyering  <meyering@redhat.com>
19776
19777         test-yesno: work around sparc-dash here-document infelicity
19778         Without this change, the literal \177 byte in a here document
19779         would make dash 0.5.5.1-3 access uninitialized memory.
19780         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19781         Instead, use a marker, "@", and filter through tr to create the desired
19782         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19783
19784 2009-09-27  Bruno Haible  <bruno@clisp.org>
19785
19786         Disable untested support for new flavours of ACLs on AIX.
19787         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19788         progress.
19789         * lib/set-mode-acl.c (qset_acl): Likewise.
19790
19791 2008-12-07  Bruno Haible  <bruno@clisp.org>
19792
19793         Add support for new flavours of ACLs on AIX. (Untested.)
19794         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19795         (file_has_acl): Add support for newer AIX.
19796         * lib/set-mode-acl.c (qset_acl): Likewise.
19797         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19798         Rainer Tammer <tammer@tammer.net>.
19799
19800 2009-09-26  Eric Blake  <ebb9@byu.net>
19801
19802         argp: fix compilation of getopt
19803         * lib/getopt.in.h (includes): Use different guard than glibc.
19804         Reported by Sergey Poznyakoff.
19805
19806         doc: mention more cygwin 1.7 status
19807         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19808         bug.
19809         * doc/posix-functions/execl.texi (execl): Likewise.
19810         * doc/posix-functions/execle.texi (execle): Likewise.
19811         * doc/posix-functions/execlp.texi (execlp): Likewise.
19812         * doc/posix-functions/execv.texi (execv): Likewise.
19813         * doc/posix-functions/execve.texi (execve): Likewise.
19814         * doc/posix-functions/execvp.texi (execvp): Likewise.
19815         * doc/glibc-functions/canonicalize_file_name.texi
19816         (canonicalize_file_name): Cygwin 1.7 now provides this.
19817         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19818         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19819         on AT_SYMLINK_NOFOLLOW.
19820
19821 2009-09-24  Eric Blake  <ebb9@byu.net>
19822
19823         test-linkat: make test more robust
19824         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19825
19826         getopt: fix inclusion guards for cygwin
19827         * modules/getopt-posix (Depends-on): Add include-next.
19828         (Makefile.am): Substitute more items in replacement header.
19829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19830         <getopt.h>.
19831         * lib/getopt.in.h (includes): Use split inclusion guard, and
19832         prefer <getopt.h> over include <unistd.h> when one is present.
19833         (option): Also override name of 'struct option'.
19834
19835         same-inode: revert prior change; it is not yet ready
19836         * NEWS: Undo mention of this change.
19837         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19838         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19839         * lib/cycle-check.c (cycle_check): Likewise.
19840         * lib/same.c (same_name): Likewise.
19841         * lib/at-func2.c (at_func2): Likewise.
19842
19843 2009-09-23  Eric Blake  <ebb9@byu.net>
19844
19845         linkat: new module
19846         * modules/linkat: New file.
19847         * lib/at-func2.c (at_func2): Likewise.
19848         * lib/linkat.c (linkat): Likewise.
19849         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19850         * lib/openat-priv.h (at_func2): Add declaration.
19851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19852         * modules/unistd (Makefile.am): Substitute them.
19853         * lib/unistd.in.h (linkat): Declare it.
19854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19855         * doc/posix-functions/linkat.texi (linkat): Likewise.
19856         * doc/posix-functions/link.texi (link): Tweak wording.
19857         * tests/test-link.c (main): Move guts...
19858         * tests/test-link.h (test_link): ...into new file.
19859         * modules/linkat-tests: New test.
19860         * tests/test-linkat.c: Likewise.
19861         * modules/link-tests (Files): Ship new file.
19862         (Depends-on): Add stdbool.
19863
19864         dirname: add library-safe mdir_name
19865         * lib/dirname.h (mdir_name): New prototype.
19866         * lib/dirname.c (dir_name): Move guts...
19867         (mdir_name): ...to new function that avoids xalloc_die.
19868
19869         fchdir: another mingw fix
19870         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19871         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19872         on mingw (where it has not yet been ported), and make it optional
19873         elsewhere.
19874         (_gl_register_fd): Use it.
19875
19876         same-inode: make SAME_INODE tri-state, to port to mingw
19877         * NEWS: Mention this change.
19878         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19879         st_ino always being 0.
19880         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19881         * lib/cycle-check.c (cycle_check): Likewise.
19882         * lib/same.c (same_name): Likewise.
19883
19884         lstat: avoid mingw compilation error
19885         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19886         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19887         lstat ourselves.
19888         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19889         was adequate.
19890         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19891         the checks for lstat.
19892         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19893
19894         link: fix test failure on Solaris 9
19895         * lib/link.c (rpl_link): Don't assume link will catch bogus
19896         trailing slash on source.
19897
19898         test-symlinkat: enhance test
19899         * tests/test-readlink.c (main): Move guts...
19900         * tests/test-readlink.h (test_readlink): ...into new file.
19901         * tests/test-symlink.c (main): Move guts...
19902         * tests/test-symlink.h (test_symlink): ...into new file.
19903         * tests/test-symlinkat.c (main): Use new files for further
19904         coverage.
19905         (do_symlink, do_readlink): New helper functions.
19906         * modules/symlink-tests (Files): Ship new file.
19907         (Depends-on): Add stdbool.
19908         * modules/readlink-tests (Files): Ship new file.
19909         (Depends-on): Add stdbool.
19910         * modules/symlinkat-tests (Files): Use new files.
19911
19912 2009-09-23  Eric Blake  <ebb9@byu.net>
19913
19914         readlink: document portability issue with symlink length
19915         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19916         systems have bogus st_size on symlinks, and mention the
19917         areadlink-with-size module.
19918         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19919         * doc/posix-functions/readlink.texi (readlink): Mention the
19920         areadlink module, and ERANGE failure.
19921         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19922         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19923
19924         readlink: fix Solaris 9 bug with trailing slash
19925         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19926         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19927         * doc/posix-functions/readlink.texi (readlink): Document this.
19928         * modules/readlink-tests: New test.
19929         * tests/test-readlink.c: Likewise.
19930
19931         readlink: fix cygwin 1.5.x bug with return type
19932         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19933         * lib/unistd.in.h (readlink): Use ssize_t.
19934         * lib/readlink.c (readlink): Likewise.
19935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19936         * modules/unistd (Makefile.am): Substitute it.
19937         * lib/unistd.in.h (readlink): Declare replacement.
19938         * doc/posix-functions/readlink.texi (readlink): Document this.
19939
19940         symlink: use throughout gnulib
19941         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19942         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19943         symlink is not used.
19944         * modules/symlinkat (Depends-on): Add symlink.
19945         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19946         * modules/canonicalize-tests (Depends-on): Likewise.
19947         * modules/lstat-tests (Depends-on): Likewise.
19948         * modules/openat-tests (Depends-on): Likewise.
19949         * modules/remove-tests (Depends-on): Likewise.
19950         * modules/rmdir-tests (Depends-on): Likewise.
19951         * modules/unlink-tests (Depends-on): Likewise.
19952         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19953         * tests/test-canonicalize.c (symlink): Likewise.
19954         * tests/test-fstatat.c (symlink): Likewise.
19955         * tests/test-lstat.c (symlink): Likewise.
19956         * tests/test-remove.c (symlink): Likewise.
19957         * tests/test-rmdir.c (symlink): Likewise.
19958         * tests/test-unlink.c (symlink): Likewise.
19959         * tests/test-unlinkat.c (symlink): Likewise.
19960
19961         symlink: new module, for Solaris 9 bug
19962         * modules/symlink: New file.
19963         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19964         * lib/symlink.c: Likewise.
19965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19966         * modules/unistd (Makefile.am): Substitute them.
19967         * lib/unistd.in.h (symlink): Declare replacement.
19968         * MODULES.html.sh (File system functions): Mention it.
19969         * doc/posix-functions/symlink.texi (symlink): Likewise.
19970         * modules/symlink-tests: New test.
19971         * tests/test-symlink.c: Likewise.
19972
19973 2009-09-23  Bruno Haible  <bruno@clisp.org>
19974
19975         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19976         when needed.
19977         Test case: gnulib-tool --import --with-tests atexit inttypes.
19978         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19979
19980 2009-09-23  Bruno Haible  <bruno@clisp.org>
19981
19982         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19983         subcommand, not in a subshell.
19984
19985 2009-09-22  Eric Blake  <ebb9@byu.net>
19986
19987         unistd: sort replacement declarations
19988         * lib/unistd.in.h: Sort declarations.
19989
19990         open, openat: minor optimization
19991         * lib/open.c (open): If open succeeded, len is non-zero.
19992         * lib/openat.c (rpl_openat): Likewise.
19993
19994         link-follow: ensure correct result
19995         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19996         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19997         distinguish between possible failures.
19998
19999 2009-09-21  Eric Blake  <ebb9@byu.net>
20000
20001         fts: avoid compiler warning
20002         * lib/fts.c (dirent_inode_sort_may_be_useful)
20003         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
20004
20005 2009-09-19  Bruno Haible  <bruno@clisp.org>
20006
20007         * lib/progreloc.c (canonicalize_file_name): New declaration.
20008
20009 2009-09-19  Eric Blake  <ebb9@byu.net>
20010
20011         link: fix quoting
20012         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
20013
20014         openat: fix openat bugs on Solaris 9
20015         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
20016         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
20017         * modules/openat (Depends-on): Add open.
20018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
20019         * modules/fcntl-h (Makefile.am): Substitute it.
20020         * lib/fcntl.in.h (openat): Declare replacement.
20021         * doc/posix-functions/openat.texi (openat): Document this.
20022
20023         openat: move fstatat and unlinkat into correct files
20024         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20025         compiled.
20026         * lib/openat.c (fstatat, unlinkat): Move...
20027         * lib/fstatat.c (fstatat): ...into correct files.
20028         * lib/unlinkat.c (unlinkat): Likewise.
20029
20030         openat: fix unlinkat bugs on Solaris 9
20031         * lib/unlinkat.c (unlinkat): New file.
20032         * modules/openat (Depends-on): Add unlink.
20033         (Files): Distribute it.
20034         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
20035         trailing slash behavior is broken.
20036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20037         * modules/unistd (Makefile.am): Substitute it.
20038         * lib/unistd.in.h (unlinkat): Declare replacement.
20039         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
20040
20041         openat: fix fstatat bugs on Solaris 9
20042         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
20043         stat.
20044         * doc/posix-functions/fstatat.texi (fstatat): Document this.
20045
20046         test-unlinkat: enhance test, to expose Solaris 9 bug
20047         * tests/test-unlink.c (main): Factor guts...
20048         * tests/test-unlink.h (test_rmdir_func): ...into new file.
20049         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
20050         * tests/test-rmdir.c (main): Adjust caller.
20051         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
20052         (unlinker): New helper function.
20053         (rmdirat): Enhance check.
20054         * modules/rmdir-tests (Depends-on): Add stdbool.
20055         * modules/unlink-tests (Depends-on): Likewise.
20056         (Files): Add test-unlink.h.
20057         * modules/openat-tests (Files): Likewise.
20058         (Depends-on): Add unlinkdir.
20059
20060         test-fstatat: new test, to expose Solaris 9 bugs
20061         * tests/test-stat.c (main): Factor guts...
20062         * tests/test-stat.h (test_stat_func): ...into new file.
20063         * tests/test-lstat.c (main): Factor guts...
20064         * tests/test-lstat.h (test_lstat_func): ...into new file.
20065         * tests/test-fstatat.c: New file.
20066         * modules/stat-tests (Files): Add test-stat.h.
20067         * modules/lstat-tests (Files): Add test-lstat.h.
20068         (Depends-on): Add stdbool.
20069         * modules/openat-tests (Depends-on): Add pathmax.
20070         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
20071         (Makefile.am): Run new test.
20072
20073         remove: new module, for mingw and Solaris 9 bugs
20074         * modules/remove: New file.
20075         * lib/remove.c: Likewise.
20076         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20078         * modules/stdio (Makefile.am): Use them.
20079         * lib/stdio.in.h (remove): Declare replacement.
20080         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20081         * doc/posix-functions/remove.texi (remove): Likewise.
20082         * modules/remove-tests: New test.
20083         * tests/test-remove.c: Likewise.
20084
20085         unlink: new module, for Solaris 9 bug
20086         * modules/unlink: New file.
20087         * lib/unlink.c: Likewise.
20088         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20090         * modules/unistd (Makefile.am): Use them.
20091         * lib/unistd.in.h (stat): Declare replacement.
20092         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20093         * doc/posix-functions/unlink.texi (unlink): Likewise.
20094         * modules/unlink-tests: New test.
20095         * tests/test-unlink.c: Likewise.
20096
20097         lstat: fix Solaris 9 bug
20098         * lib/lstat.c (lstat): Also check for trailing slash on
20099         non-symlink, non-directories.  Use stat module to simplify logic.
20100         * doc/posix-functions/lstat.texi (lstat): Document it.
20101         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20102         (configure.ac): Check for symlink.
20103         * tests/test-lstat.c (main): Add more tests.
20104
20105         stat: add as dependency to other modules
20106         * modules/chown (Depends-on): Add stat.
20107         * modules/euidaccess (Depends-on): Likewise.
20108         * modules/fchdir (Depends-on): Likewise.
20109         * modules/isdir (Depends-on): Likewise.
20110         * modules/link (Depends-on): Likewise.
20111         * modules/lstat (Depends-on): Likewise.
20112         * modules/mkdir-p (Depends-on): Likewise.
20113         * modules/modechange (Depends-on): Likewise.
20114         * modules/open (Depends-on): Likewise.
20115         * modules/readlink (Depends-on): Likewise.
20116         * modules/same (Depends-on): Likewise.
20117
20118         stat: fix Solaris 9 bug
20119         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20120         slash.
20121         * lib/stat.c (rpl_stat): Work around it.
20122         * doc/posix-functions/stat.texi (stat): Update documentation.
20123
20124         stat: new module, for mingw bug
20125         * modules/stat: New file.
20126         * lib/stat.c: Likewise.
20127         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20128         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20129         * modules/sys_stat (Makefile.am): Use them.
20130         * lib/sys_stat.in.h (stat): Declare replacement.
20131         * lib/openat.c (fstatat): Deal with lstat and stat being function
20132         macros.
20133         * modules/openat (Depends-on): Add inline.
20134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20135         * doc/posix-functions/stat.texi (stat): Likewise.
20136         * modules/stat-tests: New test.
20137         * tests/test-stat.c: Likewise.
20138
20139 2009-09-19  Jim Meyering  <meyering@redhat.com>
20140
20141         syntax-check: detect unnecessary inclusion of canonicalize.h
20142         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
20143
20144 2009-09-19  Eric Blake  <ebb9@byu.net>
20145
20146         canonicalize-lgpl: adjust clients to use correct header
20147         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20148         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
20149         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
20150         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
20151         * lib/progreloc.c (includes): Likewise.
20152
20153 2009-09-19  Jim Meyering  <meyering@redhat.com>
20154
20155         test-posixtm.c: correct a comment
20156         * tests/test-posixtm.c: Correct first-line comment.
20157         Spotted by Eric Blake.
20158
20159 2009-09-16  Jim Meyering  <meyering@redhat.com>
20160
20161         posixtm-tests: make T const-correct; add a test case
20162         * tests/test-posixtm.c (T): Declare const.
20163         Add a test for -(2^31+1).
20164         Remove useless can-succeed-only-in-2002 test.
20165
20166         posixtm-tests: adjust the sole failing test
20167         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
20168         expected output matches what mktime now produces.  Cross-checked via
20169         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
20170
20171         posixtm: move #ifdef'd tests into a new module
20172         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
20173         * tests/test-posixtm.c: ... this new file.
20174         * modules/posixtm-tests: New module.
20175
20176 2009-09-19  Eric Blake  <ebb9@byu.net>
20177
20178         openat: simplify use of at-func.c
20179         * lib/at-func.c (includes): Include prerequisites here, to
20180         simplify requirements on client files.
20181         * lib/openat-priv.h: Add double-inclusion guard.
20182         * lib/faccessat.c (includes): Simplify.
20183         * lib/fchmodat.c (includes): Likewise.
20184         * lib/fchownat.c (includes): Likewise.
20185         * lib/mkdirat.c (includes): Likewise.
20186         * lib/mkfifoat.c (includes): Likewise.
20187         * lib/symlinkat.c (includes): Likewise.
20188
20189         openat: allow return of fd 0
20190         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
20191         * modules/save-cwd (Depends-on): Replace fcntl-safer with
20192         unistd-safer.
20193         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
20194         <fcntl.h>; this module does not leak fds.
20195         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
20196         must be allowed to return 0, leaving openat_safer to add the
20197         safety.
20198         (openat_permissive): Avoid writing to just-opened fd 2 if
20199         restoring the current directory fails.
20200         * lib/openat-die.c (openat_restore_fail): Add comment.
20201         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
20202         (save_cwd): Guarantee safe fd, but without use of open_safer.
20203         * tests/test-openat.c: New test.
20204         * modules/openat-tests (Files, Makefile.am): Distribute and build
20205         new file.
20206
20207         relocatable-prog-wrapper: fix build
20208         * modules/relocatable-prog-wrapper (Files): Update name of
20209         canonicalize m4 file, broken on 2009-09-17.
20210         Reported by emad hajjar <aleppos@hotmail.com>.
20211
20212 2009-09-19  Bruno Haible  <bruno@clisp.org>
20213
20214         * lib/safe-alloc.h: Use the standard header with GPL copyright.
20215         * lib/safe-alloc.c: Likewise.
20216         Reported by Ian Beckwith <ianb@erislabs.net>.
20217
20218 2009-09-18  Bruno Haible  <bruno@clisp.org>
20219
20220         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
20221         Reported by <erobles@sensacd.com.mx>.
20222
20223 2009-09-17  Eric Blake  <ebb9@byu.net>
20224
20225         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
20226         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
20227         slashes when checking if last component is missing.
20228         * tests/test-canonicalize.c (main): Test this.
20229
20230         canonicalize, canonicalize-lgpl: honor // if distinct from /
20231         * modules/canonicalize (Files): Add double-slash-root.m4.
20232         * modules/canonicalize-lgpl (Files): Likewise.
20233         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20234         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
20235         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
20236         fallback definition.
20237         (canonicalize_filename_mode): Use it to protect //.
20238         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
20239         (__realpath): Likewise.
20240         * tests/test-canonicalize.c (main): Test this.
20241         * tests/test-canonicalize-lgpl.c (main): Likewise.
20242         * modules/canonicalize-tests (Depends-on): Add same-inode.
20243         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20244
20245         canonicalize-lgpl: fix glibc bug with trailing slash
20246         * m4/canonicalize-lgpl.m4: Move contents...
20247         * m4/canonicalize.m4: ...here.
20248         (gl_CANONICALIZE_LGPL): Factor realpath check...
20249         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
20250         glibc 2.3.5 bug, fixed 2005-04-27.
20251         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
20252         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
20253         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20254         * modules/canonicalize-lgpl (Files): Manage file rename.
20255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20256         * modules/stdlib (Makefile.am): Substitute witness.
20257         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20258         is needed.
20259         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20260         replacement is required.
20261         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20262         * doc/glibc-functions/canonicalize_file_name.texi
20263         (canonicalize_file_name): Document this.
20264         * doc/posix-functions/realpath.texi (realpath): Likewise.
20265
20266         canonicalize-lgpl: reject non-directory with trailing slash
20267         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20268         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20269         catches failures in glibc 2.3.5.
20270         * tests/test-canonicalize.c (main): Likewise.
20271
20272         canonicalize-lgpl: use native realpath if it works
20273         * lib/canonicalize-lgpl.c (realpath): Guard with
20274         FUNC_REALPATH_WORKS.
20275         * lib/stdlib.in.h (realpath): Make declaration optional based on
20276         HAVE_REALPATH.
20277         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20278         native realpath works.
20279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20280         * modules/stdlib (Makefile.am): Substitute witness.
20281
20282         canonicalize, canonicalize-lgpl: use <stdlib.h>
20283         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20284         (Include): Mention <stdlib.h>.
20285         (configure.ac): Mention functions we provide.
20286         * modules/canonicalize (configure.ac): Likewise.
20287         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20288         realpath if canonicalize_file_name is missing.
20289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20290         * modules/stdlib (Makefile.am): Substitute witnesses.
20291         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20292         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20293         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20294         * NEWS: Document this.
20295         * doc/glibc-functions/canonicalize_file_name.texi
20296         (canonicalize_file_name): Likewise.
20297         * doc/posix-functions/realpath.texi (realpath): Likewise.
20298         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20299
20300         test-canonicalize: consolidate into single C program
20301         * tests/test-canonicalize.sh: Delete; move setup into...
20302         * tests/test-canonicalize.c (main): ...the program, making it
20303         easier to run in debugger.  Add some tests.
20304         * modules/canonicalize-tests (Files): Remove unused file.
20305         (Depends-on): Add progname.
20306         (configure.ac, Makefile.am): Simplify.
20307
20308         test-canonicalize-lgpl: consolidate into single C program
20309         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20310         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20311         easier to run in debugger.  Add some tests.
20312         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20313         (configure.ac, Makefile.am): Simplify.
20314
20315         canonicalize: avoid resolvepath
20316         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20317         unnecessary checks.
20318         * lib/canonicalize.c (includes): Simplify.
20319         (canonicalize_file_name): Drop resolvepath implementation.
20320         * modules/canonicalize (Depends-on): Drop filenamecat.
20321
20322         canonicalize: don't lose errno
20323         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20324         over calls to free.
20325
20326         canonicalize: simplify errno handling
20327         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20328         assignment.
20329
20330         canonicalize, canonicalize-lgpl: update module dependencies
20331         * modules/canonicalize (Depends-on): Add extensions, lstat,
20332         pathmax, stdlib.
20333         (Files): Drop pathmax.h.
20334         (configure.ac): Adjust macro name.
20335         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20336         lstat, stdlib, sys_stat.
20337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20338         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20339         extensions.
20340         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20341         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20342         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20343         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20344         declaration, if available.
20345         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20346         we can rely on the readlink module.
20347         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20348         (includes): Use <unistd.h> unconditionally.
20349
20350 2009-09-17  Eric Blake  <ebb9@byu.net>
20351
20352         maint: make Include sections of modules consistent
20353         * modules/alloca: Use only header name; no need to list #include.
20354         * modules/alloca-opt: Likewise.
20355         * modules/arpa_inet: Likewise.
20356         * modules/canon-host: Likewise.
20357         * modules/configmake: Likewise.
20358         * modules/dirent: Likewise.
20359         * modules/eealloc: Likewise.
20360         * modules/environ: Likewise.
20361         * modules/fchdir: Likewise.
20362         * modules/fcntl: Likewise.
20363         * modules/fcntl-h: Likewise.
20364         * modules/gethrxtime: Likewise.
20365         * modules/gettime: Likewise.
20366         * modules/ignore-value: Likewise.
20367         * modules/inet_ntop: Likewise.
20368         * modules/inet_pton: Likewise.
20369         * modules/inttypes: Likewise.
20370         * modules/isnand-nolibm: Likewise.
20371         * modules/isnanf-nolibm: Likewise.
20372         * modules/mbchar: Likewise.
20373         * modules/mbfile: Likewise.
20374         * modules/mbiter: Likewise.
20375         * modules/mbuiter: Likewise.
20376         * modules/netdb: Likewise.
20377         * modules/netinet_in: Likewise.
20378         * modules/nproc: Likewise.
20379         * modules/pagealign_alloc: Likewise.
20380         * modules/poll: Likewise.
20381         * modules/printf-frexp: Likewise.
20382         * modules/pthread: Likewise.
20383         * modules/putenv: Likewise.
20384         * modules/random_r: Likewise.
20385         * modules/relocatable-prog: Likewise.
20386         * modules/search: Likewise.
20387         * modules/select: Likewise.
20388         * modules/selinux-h: Likewise.
20389         * modules/settime: Likewise.
20390         * modules/signal: Likewise.
20391         * modules/size_max: Likewise.
20392         * modules/socklen: Likewise.
20393         * modules/ssize_t: Likewise.
20394         * modules/stdarg: Likewise.
20395         * modules/stdbool: Likewise.
20396         * modules/stddef: Likewise.
20397         * modules/stdint: Likewise.
20398         * modules/stdio: Likewise.
20399         * modules/stdlib: Likewise.
20400         * modules/string: Likewise.
20401         * modules/strings: Likewise.
20402         * modules/sys_file: Likewise.
20403         * modules/sys_ioctl: Likewise.
20404         * modules/sys_select: Likewise.
20405         * modules/sys_socket: Likewise.
20406         * modules/sys_stat: Likewise.
20407         * modules/sys_time: Likewise.
20408         * modules/sys_times: Likewise.
20409         * modules/sys_utsname: Likewise.
20410         * modules/sys_wait: Likewise.
20411         * modules/sysexits: Likewise.
20412         * modules/time: Likewise.
20413         * modules/times: Likewise.
20414         * modules/tmpfile: Likewise.
20415         * modules/trim: Likewise.
20416         * modules/unistd: Likewise.
20417         * modules/wchar: Likewise.
20418         * modules/wctype: Likewise.
20419
20420 2009-09-17  Bruno Haible  <bruno@clisp.org>
20421
20422         Make getdate.y compile on QNX and NetBSD 5 / i386.
20423         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20424         TIME_T_FITS_IN_LONG_INT.
20425         * lib/getdate.y (long_time_t): New type.
20426         (relative_time): Change type of 'seconds' field to long_time_t.
20427         (get_date): Update types of local variables. Check against overflow
20428         during conversion from long_time_t to time_t.
20429         Reported by Matt Kraai <kraai@ftbfs.org>
20430         and Hasso Tepper <hasso@netbsd.org>.
20431
20432 2009-09-17  Bruno Haible  <bruno@clisp.org>
20433
20434         * modules/COPYING: Update copyright years.
20435         * modules/README: Likeiwse.
20436         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20437         Reported by Ian Beckwith <ianb@erislabs.net>.
20438
20439 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20440
20441         * users.txt: Update references for gnuit package.
20442
20443 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20444
20445         * m4/getdelim.m4: Fix typo in copyright line.
20446
20447 2009-09-17  Bruno Haible  <bruno@clisp.org>
20448
20449         * lib/atoll.c: Use the standard header with GPL copyright.
20450         * lib/argz.in.h: Likewise.
20451         * lib/glob.c: Likewise.
20452         * lib/glob-libc.h: Likewise.
20453         * lib/random_r.c: Likewise.
20454         * lib/siglist.h: Likewise.
20455         * lib/strsignal.c: Likewise.
20456         Reported by Ian Beckwith <ianb@erislabs.net>.
20457
20458 2009-09-17  Eric Blake  <ebb9@byu.net>
20459
20460         rmdir: ensure correct dependency order
20461         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20462
20463 2009-09-17  Bruno Haible  <bruno@clisp.org>
20464
20465         Disable assertion that fails on NetBSD 5 / i386.
20466         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20467         Reported by Sam Steingold <sds@gnu.org>
20468         and Hasso Tepper <hasso@netbsd.org>.
20469
20470 2009-09-16  Eric Blake  <ebb9@byu.net>
20471
20472         unlinkdir: port to mingw
20473         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20474         on which no one can unlink a directory.
20475
20476         stdlib: sort witness names
20477         * modules/stdlib (Makefile.am): Sort replacements.
20478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20479         * lib/stdlib.in.h: Likewise.
20480
20481         parse-duration-tests: avoid link failure
20482         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20483         LIBINTL.
20484         Reported by Tom G. Christensen.
20485
20486         openat-tests: ensure unlinkat behaves like rmdir
20487         * tests/test-rmdir.c (main): Factor guts...
20488         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20489         * modules/rmdir-tests (Files): Ship new file.
20490         * modules/openat-tests: New test.
20491         * tests/test-unlinkat.c: Likewise.
20492
20493         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20494         * modules/rmdir-errno (Status, Notice): Now obsolete.
20495
20496         rmdir: work around cygwin 1.5.x and mingw bugs
20497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20498         * lib/rmdir.c (rmdir): Work around it.
20499         * modules/rmdir (Status, Notice): No longer obsolete.
20500         (Files): Add dos.m4.
20501         (Depends-on): Add unistd.
20502         (configure.ac): Set witnesses.
20503         (License): Relax to LGPLv2+.
20504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20505         * modules/unistd (Makefile.am): Substitute witnesses.
20506         * lib/unistd.in.h (rmdir): Declare replacement.
20507         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20508         * modules/rmdir-tests: New tests.
20509         * tests/test-rmdir.c: Likewise.
20510
20511 2009-09-15  Eric Blake  <ebb9@byu.net>
20512
20513         fchdir: improve use of replacement functions
20514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20517         REPLACE_CLOSEDIR.
20518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20519         * modules/sys_stat (Makefile.am): Substitute correct witness.
20520         * modules/dirent (Makefile.am): Likewise.
20521         * modules/unistd (Makefile.am): Likewise.
20522         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20523         * lib/unistd.in.h (dup): Likewise.
20524         * lib/sys_stat.in.h (fstat): Likewise.
20525
20526         maint: ignore gnulib-tool temp files
20527         * .gitignore: Ignore files created during gnulib-tool --test.
20528
20529 2009-09-13  Jim Meyering  <meyering@redhat.com>
20530
20531         posixtm: don't reject a time that specify "60" as the number of seconds
20532         * lib/posixtm.c (posixtime): The code to reject invalid dates
20533         would also reject a time specified with the .60 suffix.
20534         But POSIX allows that, in order to accommodate leap seconds.
20535         So don't reject it.
20536         (main): Adjust tests accordingly.
20537         * modules/posixtm (Depends-on): Add stpcpy.
20538
20539 2009-09-11  Jim Meyering  <meyering@redhat.com>
20540
20541         announce-gen: include [$release_type] in emitted Subject:
20542         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20543         e.g., [stable] in the emitted Subject: line.
20544
20545 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20546
20547         Remove obsolete macros from several modules.
20548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20549         obsolete Autoconf macros with their modern counterparts.
20550         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20551         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20553         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20554         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20557         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20558         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20559         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20560         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20562         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20563         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20564         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20565         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20566         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20567         * m4/time_r.m4 (gl_TIME_R): Likewise.
20568         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20569         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20570         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20571
20572         Fix copyright header in build-aux scripts.
20573         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20574         recommendation.
20575         * build-aux/ncftpput-ftp: Likewise.
20576         * build-aux/update-copyright: Likewise.
20577
20578 2009-09-09  Eric Blake  <ebb9@byu.net>
20579
20580         test-link: allow Linux choice of errno
20581         * tests/test-link.c (main): Relax test for alternate error.
20582
20583         strndup: fix improper m4 caching
20584         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20585         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20586         (gl_PREREQ_STRNDUP): Delete.
20587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20588         * modules/string (Makefile.am): Substitute it.
20589         * lib/string.in.h (strndup): Modernize prototype.
20590
20591         getcwd: port to mingw
20592         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20593         different from the POSIX assumptions made throughout the getcwd
20594         module; fortunately, the mingw getcwd does not need replacement.
20595         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20596         * modules/getcwd-tests: New test.
20597         * tests/test-getcwd.c: Likewise.
20598
20599         link: fix platform bugs
20600         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20601         * lib/link.c (link): Work around them.  Fix related mingw bug.
20602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20603         * modules/unistd (Makefile.am): Substitute it.
20604         * lib/unistd.in.h (link): Declare replacement.
20605         * doc/posix-functions/link.texi (link): Document this.
20606         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20607
20608         test-link: consolidate into single C program, test more cases
20609         * tests/test-link.sh: Delete.
20610         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20611         at least Cygwin and Solaris.
20612         * modules/link-tests (Files): Remove unused file.
20613         (Depends-on): Add errno, sys_stat.
20614         (Makefile.am): Simplify.
20615
20616 2009-09-08  Bruno Haible  <bruno@clisp.org>
20617
20618         Work around towlower, towupper bug on mingw.
20619         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20620         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20621         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20622         * doc/posix-functions/towupper.texi: Likewise.
20623         Reported by Eric Blake.
20624
20625 2009-09-08  Jim Meyering  <meyering@redhat.com>
20626
20627         build: don't try to run autoheader if we don't use it
20628         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20629         is not used in configure.ac.
20630
20631 2009-09-08  Eric Blake  <ebb9@byu.net>
20632
20633         euidaccess: fix compilation error
20634         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20635
20636         rawmemchr: relax license
20637         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20638         okay.
20639         Reported by Jim Meyering.
20640
20641         mkfifoat: new module
20642         * modules/mkfifoat: New file.
20643         * lib/mkfifoat.c: Likewise.
20644         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20646         * modules/sys_stat (Makefile.am): Use them.
20647         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20648         * MODULES.html.sh (File system functions): Mention module.
20649         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20650         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20651         * modules/mkfifoat-tests: New test.
20652         * tests/test-mkfifoat.c: Likewise.
20653
20654         strchrnul: relax license
20655         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20656         okay.
20657         Reported by Jim Meyering.
20658
20659 2009-09-08  Eric Blake  <ebb9@byu.net>
20660
20661         fstatat: fix compilation on Solaris
20662         * lib/fstatat.c (includes): Add fcntl.h.
20663         Reported by Pádraig Brady.
20664
20665 2009-09-07  Eric Blake  <ebb9@byu.net>
20666
20667         rename: modernize replacement
20668         * modules/rename (Depends-on): Add stdio.
20669         (configure.ac): Declare witness.
20670         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20671         stdio take care of replacement.
20672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20673         * modules/stdio (Makefile.am): Substitute them.
20674         * lib/stdio.in.h (rename): Declare replacement.
20675         * lib/rename.c (includes): Allow cross-compilation to non-windows
20676         machines.
20677         * doc/posix-functions/rename.texi (rename): Improve
20678         documentation.
20679
20680         stdio: sort witness names
20681         * modules/stdio (Makefile.am): Sort replacements.
20682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20683         * lib/stdio.in.h: Likewise.
20684
20685         getcwd: minor cleanups
20686         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20687         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20688
20689         openat: provide more convenience names
20690         * modules/faccessat (configure.ac): Add C witness.
20691         * lib/unistd.in.h (readlinkat): Fix typo.
20692         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20693         convenience wrappers.
20694         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20695         wrappers in syntax checks.
20696
20697 2009-09-06  Eric Blake  <ebb9@byu.net>
20698
20699         doc: fix comments in recent patches
20700         * lib/faccessat.c: Mention correct function.
20701         * lib/fchmodat.c: Likewise.
20702         * lib/fchownat.c: Likewise.
20703         * lib/symlinkat.c: Likewise.
20704         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20705         constants.
20706
20707         faccessat, symlinkat: continue cleanup of previous patch
20708         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20709         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20710         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20712         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20713         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20714         set.
20715
20716 2009-09-06  Bruno Haible  <bruno@clisp.org>
20717
20718         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20719         (fstatat): Declare if GNULIB_FSTATAT is set.
20720         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20721         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20722         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20723         * modules/fcntl-h (Files): Remove m4/openat.m4.
20724         * modules/sys_stat (Files): Remove m4/openat.m4.
20725         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20726         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20727         * modules/unistd (Files): Remove m4/openat.m4.
20728         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20729         GNULIB_OPENAT.
20730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20731         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20733         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20734         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20735         gl_OPENAT_DEFAULTS.
20736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20737         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20738         Don't require gl_OPENAT_DEFAULTS.
20739         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20740         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20741         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20742         (gl_OPENAT_DEFAULTS): Remove macro.
20743
20744 2009-09-06  Bruno Haible  <bruno@clisp.org>
20745
20746         * modules/openat (configure.ac): Remove unneeded witness.
20747
20748 2009-09-06  Bruno Haible  <bruno@clisp.org>
20749
20750         Set errno to ENOSYS when a function is entirely unsupported.
20751         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20752         EOPNOTSUPP.
20753         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20754         * modules/chown (Depends-on): Remove errno.
20755
20756 2009-09-06  Bruno Haible  <bruno@clisp.org>
20757
20758         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20759
20760 2009-09-06  Bruno Haible  <bruno@clisp.org>
20761
20762         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20763
20764 2009-09-06  Ben Pfaff  <blp@gnu.org>
20765             Bruno Haible  <bruno@clisp.org>
20766
20767         Work around a glibc bug in strtok_r.
20768         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20769         Undefine if UNDEFINE_STRTOK_R is set.
20770         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20772         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20773         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20774         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20775         UNDEFINE_STRTOK_R.
20776         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20777
20778 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20779
20780         exclude: minor fix
20781         * lib/exclude.c: Include wctype.h
20782
20783 2009-09-06  Akim Demaille  <demaille@gostai.com>
20784
20785         bootstrap: improve error message
20786         * build-aux/bootstrap (find_tool): Upon failure, report the list
20787         of candidates.
20788         Honor the initial value of the envvar.
20789
20790 2009-09-05  Eric Blake  <ebb9@byu.net>
20791
20792         symlinkat: new module
20793         * modules/symlinkat: New file.
20794         * lib/symlinkat.c: Likewise.
20795         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20797         * modules/unistd (Makefile.am): Use them.
20798         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20799         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20800         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20801         * MODULES.html.sh (File system functions): Mention module.
20802         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20803         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20804         * modules/symlinkat-tests: New test.
20805         * tests/test-symlinkat.c: Likewise.
20806
20807         test-openat-safer: add more checks
20808         * tests/test-openat-safer.c (main): Check more code paths.
20809
20810 2009-09-05  Jim Meyering  <meyering@redhat.com>
20811
20812         syntax-check: detect unnecessary inclusion of openat.h
20813         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20814
20815 2009-09-05  Bruno Haible  <bruno@clisp.org>
20816
20817         Support towlower, towupper.
20818         * doc/posix-functions/towlower.texi: Mention module wctype.
20819         * doc/posix-functions/towupper.texi: Likewise.
20820         * lib/wctype.in.h (towlower, towupper): New functions.
20821         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20822         (ASSERT): New macro.
20823         (e): New variable.
20824         (main): Test also towlower, towupper. Test WEOF argument.
20825         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20826
20827 2009-09-05  Bruno Haible  <bruno@clisp.org>
20828
20829         Fix conversion behaviour when the input is invalid.
20830         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20831         mark occurring in first pass of indirect conversion.
20832         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20833         input.
20834         Found by clang's static analyzer.
20835
20836 2009-09-05  Bruno Haible  <bruno@clisp.org>
20837
20838         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20839         where direct conversion is possible.
20840
20841 2009-09-04  Eric Blake  <ebb9@byu.net>
20842
20843         openat: fail with ENOENT on empty name
20844         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20845         buffer.
20846
20847         link-follow: fix logic bug in prior patch
20848         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20849         reversed sense of yes and no in prior patch.  Avoid confusing
20850         compilation failure with desired semantics.
20851
20852         link-follow: accomodate mingw and cross-compilation
20853         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20854         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20855         cross-compilation results to -1, to make linkat easier to
20856         implement when cross-compiling.  Trivially support mingw.
20857         * modules/link-follow (configure.ac): Call new name.
20858         * NEWS: Mention this.
20859
20860 2009-09-03  Eric Blake  <ebb9@byu.net>
20861
20862         faccessat: compile replacement
20863         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20864         needed.
20865
20866         fts: fix compilation error
20867         * lib/fts.c (includes): Re-add "openat.h", for
20868         openat_needs_fchdir.
20869
20870         faccessat: new module
20871         * modules/faccessat: New file.
20872         * lib/faccessat.c: Likewise.
20873         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20875         * modules/unistd (Makefile.am): Use it.
20876         * lib/unistd.in.h (faccessat): Declare it.
20877         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20878         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20879         * MODULES.html.sh (File system functions): Mention it.
20880         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20881         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20882
20883         euidaccess: prefer POSIX over non-standard implementation
20884         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20885         * lib/euidaccess.c (euidaccess): Use it if available.
20886
20887         openat: make template easier to use
20888         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20889         AT_FUNC_F2 to be undefined.
20890         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20891         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20892         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20893         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20894         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20895         Likewise.
20896         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20897         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20898         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20899         Likewise.
20900
20901         openat: declare in POSIX headers
20902         * NEWS: Mention this.
20903         * modules/openat (configure.ac): Declare witnesses.
20904         (Depends-on): Add fcntl-h, sys_stat, unistd.
20905         (Include): Mention correct headers.
20906         * modules/fcntl-h (Depends-on): Add link-warning.
20907         (Files): Add openat.m4.
20908         (Makefile.am): Substitute witnesses.
20909         * modules/sys_stat (Files, Makefile.am): Likewise.
20910         * modules/unistd (Files, Makefile.am): Likewise.
20911         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20912         (gl_OPENAT_DEFAULTS): New macro.
20913         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20915         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20916         (SYS_STAT_H): Remove unused variable.
20917         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20918         * lib/fcntl--.h (includes): Remove unneeded header.
20919         * lib/openat-safer.c (includes): Likewise.
20920         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20921         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20922         appropriate headers.
20923         (__OPENAT_PREFIX): Delete.
20924         * lib/fcntl.in.h (openat): Provide declaration.
20925         (AT_FDCWD): Fix Solaris bug.
20926         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20927         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20928         * lib/fchmodat.c (includes):  Adjust to find declaration.
20929         * lib/fchownat.c (includes): Likewise.
20930         * lib/mkdirat.c (includes): Likewise.
20931         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20932         still visible.
20933
20934 2009-09-02  Eric Blake  <ebb9@byu.net>
20935
20936         errno: use consistently
20937         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20938         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20939         * lib/canonicalize.c (ELOOP): Likewise.
20940         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20941         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20942         * lib/lchown.c (EOPNOTSUPP): Likewise.
20943         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20944         * lib/savewd.c (ESTALE): Likewise.
20945         * lib/settime.c (ENOSYS): Likewise.
20946         * lib/utimens.c (ENOSYS): Likewise.
20947         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20948         * lib/chdir-safer.c (ELOOP): Likewise.
20949         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20950         * modules/c-stack (Depends-on): Add errno.
20951         * modules/canonicalize (Depends-on): Likewise.
20952         * modules/chdir-safer (Depends-on): Likewise.
20953         * modules/fdopendir (Depends-on): Likewise.
20954         * modules/inet_ntop (Depends-on): Likewise.
20955         * modules/inet_pton (Depends-on): Likewise.
20956         * modules/lchown (Depends-on): Likewise.
20957         * modules/openat (Depends-on): Likewise.
20958         * modules/savewd (Depends-on): Likewise.
20959         * modules/settime (Depends-on): Likewise.
20960         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20961
20962         fts: avoid leaking fds
20963         * modules/fts (Depends-on): Add cloexec.
20964         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20965         flag.
20966
20967         fts: make directory fds more robust
20968         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20969         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20970
20971         backupfile, chdir-long, fts, savedir: make safer
20972         * lib/backupfile.c (includes): Use "dirent--.h", since
20973         numbered_backup can write to stderr during readdir.
20974         * lib/savedir.c (includes): Likewise.
20975         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20976         emulation can write to stderr on failure.
20977         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20978         * lib/getcwd.c: Document why opendir_safer is unused.
20979         * lib/glob.c: Likewise.
20980         * lib/scandir.c: Likewise.
20981         * lib/openat-proc.c: Likewise, for open_safer.
20982         * modules/backupfile (Depends-on): Add dirent-safer.
20983         * modules/savedir (Depends-on): Likewise.
20984         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20985         * modules/chdir-long (Depends-on): Add openat-safer.
20986
20987         openat-safer: new module
20988         * modules/openat-safer: New file.
20989         * lib/openat-safer.c: Likewise.
20990         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20991         * lib/fcntl-safer.h (openat_safer): Declare.
20992         * lib/fcntl--.h (openat): Override.
20993         * MODULES.html.sh (File descriptor based I/O): Mention it.
20994         * lib/openat.h: Add double-inclusion guards.
20995         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20996         "fcntl--.h", so we can implement openat.
20997         * modules/openat-safer-tests: New test.
20998         * tests/test-openat-safer.c: New file.
20999
21000         dirent-safer: new module
21001         * modules/dirent-safer: New file.
21002         * lib/dirent--.h: Likewise.
21003         * lib/dirent-safer.h: Likewise.
21004         * lib/opendir-safer.c: Likewise.
21005         * m4/dirent-safer.m4: Likewise.
21006         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
21007         * modules/dirent-safer-tests: New test.
21008         * tests/test-dirent-safer.c: New file.
21009         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
21010
21011         fdopendir: optimize on mingw
21012         * lib/unistd.in.h (_gl_directory_name): New prototype.
21013         * lib/fchdir.c (_gl_directory_name): Implement it.
21014         (fchdir): Use it to simplify implementation.
21015         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
21016         fchdir, when available, to avoid calling [f]chdir().
21017
21018         fdopendir: split into its own module
21019         * lib/openat.c (fdopendir): Move...
21020         * lib/fdopendir.c: ...into new file.
21021         * modules/fdopendir: New module.
21022         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
21023         * modules/openat (Depends-on): Add fdopendir.
21024         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21025         fdopendir here.
21026         * modules/savedir (Depends-on): Only need fdopendir, not full
21027         openat.
21028         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
21029         * lib/openat.h (fdopendir): Drop prototype.
21030         * lib/dirent.in.h (fdopendir): Provide prototype.
21031         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
21032         * modules/dirent (Makefile.am): Substitute them.
21033         * MODULES.html.sh (File system functions): Mention it.
21034         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
21035         * modules/fdopendir-tests: New file.
21036         * tests/test-fdopendir.c: Likewise.
21037
21038         fchdir: use more consistent macro convention
21039         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
21040         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
21041         REPLACE_FCHDIR, rather than relying on config.h macros.
21042         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
21043         inside a single make-time REPLACE_FCHDIR block, rather than using
21044         the config.h FCHDIR_REPLACEMENT.
21045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
21046         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
21047         Manage fstat replacement.
21048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
21049         REPLACE_FCHDIR.
21050         * modules/sys_stat (Files): Add m4/unistd_h.m4.
21051         (Makefile.am): Substitute REPLACE_FCHDIR.
21052         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
21053         FCHDIR_REPLACEMENT.
21054         * lib/dup-safer.c (dup_safer): Likewise.
21055         * lib/dup2.c (rpl_dup2): Likewise.
21056         * lib/dup3.c (rpl_dup3): Likewise.
21057         * lib/open.c (rpl_open): Likewise.
21058
21059         fchdir: simplify error handling, and support dup3
21060         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
21061         stdbool, malloc-posix, realloc-posix.
21062         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
21063         (ensure_dirs_slot): Return false on allocation failure.
21064         (rpl_dup2): Delete.
21065         (_gl_register_dup): New function.
21066         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
21067         (_gl_register_fd): Close fd on allocation failure.
21068         * lib/fcntl.in.h (_gl_register_fd): Update signature.
21069         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
21070         prototype.
21071         (rpl_dup2_fchdir): Delete prototype.
21072         * lib/open.c (open): Update caller.
21073         * lib/dup2.c (dup2): Track fchdir metadata.
21074         * lib/dup3.c (dup3): Likewise.
21075         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21077
21078 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21079
21080         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21081         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21082         don't pass arguments to AC_OUTPUT.
21083
21084 2009-09-02  Bruno Haible  <bruno@clisp.org>
21085
21086         * modules/mkdtemp (License): Relicense under LGPLv2+.
21087         Reported by Paolo Bonzini.
21088
21089 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21090
21091         Replace uses of obsolete autoconf macros in Jim's modules.
21092         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21093         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21094         can evoke a warning from autoconf when run with -Wobsolete
21095         enabled.  They were declared obsolete for good reasons (see
21096         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21097         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21098         should not continue using the deprecated macros.
21099         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21100         obsolete Autoconf macros with modern counterparts.
21101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21102         * m4/dos.m4 (gl_AC_DOS): Likewise.
21103         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21105         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21106         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21107         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21108         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21109         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21110         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21111         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21112         Likewise.
21113         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21114         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21115         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21116         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21117         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21118         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21119
21120 2009-09-01  Eric Blake  <ebb9@byu.net>
21121
21122         fchdir: fix off-by-one bug in previous patch
21123         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21124         (_gl_unregister_fd): Delete useless if.
21125
21126 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21127
21128         maint.mk: sort the list of syntax-check rules
21129         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
21130         easier to get a sense of progress when the rules are run sequentially
21131         and take a long time.
21132
21133 2009-09-01  Simon Josefsson  <simon@josefsson.org>
21134
21135         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
21136         * modules/netinet_in: Likewise.
21137         * modules/sys_file: Likewise.
21138         * modules/sys_ioctl: Likewise.
21139         * modules/sys_select: Likewise.
21140         * modules/sys_socket: Likewise.
21141         * modules/sys_stat: Likewise.
21142         * modules/sys_time: Likewise.
21143         * modules/sys_times: Likewise.
21144         * modules/sys_utsname: Likewise.
21145         * modules/sys_wait: Likewise.
21146
21147 2009-09-01  Jim Meyering  <meyering@redhat.com>
21148
21149         fts: help ensure that return values are not ignored
21150         * lib/fts_.h (__GNUC_PREREQ): Define.
21151         (__attribute_warn_unused_result__): Define.
21152         (fts_children, fts_close, fts_open, fts_read): Declare with
21153         __attribute_warn_unused_result__.
21154
21155         fts: fts_close now fails also when closing a dir file descriptor fails
21156         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
21157         and propagate to caller, along with errno.
21158
21159         announce-gen: correct formatting in --help output
21160         * build-aux/announce-gen (usage): Move the one-line description in
21161         --help output "up", to where it belongs, just after Usage:.
21162
21163 2009-08-31  Eric Blake  <ebb9@byu.net>
21164
21165         fchdir: port to mingw
21166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
21167         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
21168         opened, then use a substitute.
21169         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
21170         replacement.
21171         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
21172         (_gl_register_fd): No need to check stat if open already filters
21173         all directories.
21174         (fchdir): Fix error condition to match POSIX.
21175         * modules/fchdir (Depends-on): Add sys_stat.
21176         * doc/posix-functions/open.texi (open): Document the limitation.
21177         * modules/fchdir-tests: New file.
21178         * tests/test-fchdir.c: Likewise.
21179
21180         canonicalize: allow cross-testing from cygwin to mingw
21181         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
21182         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
21183         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
21184         Likewise.
21185         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
21186         target does not support symlinks.
21187         * tests/test-canonicalize-lgpl.sh: Likewise.
21188
21189         chown: avoid compilation warning on mingw
21190         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
21191         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
21192         mingw.
21193         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21194         * modules/chown (Depends-on): Add errno.
21195
21196 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21197
21198         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
21199         command.
21200
21201 2009-08-31  Jim Meyering  <meyering@redhat.com>
21202
21203         canonicalize: remove useless initialization
21204         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
21205         initialization of local, "end".
21206
21207 2009-08-30  Bruno Haible  <bruno@clisp.org>
21208
21209         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
21210         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
21211         ENOSYS.
21212
21213 2009-08-30  Bruno Haible  <bruno@clisp.org>
21214
21215         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
21216         /usr/xpg4/bin/tr when it exists.
21217         * tests/test-pipe-filter-gi1.sh: Likewise.
21218
21219 2009-08-30  Bruno Haible  <bruno@clisp.org>
21220
21221         Work around deficient /usr/bin/id program on Solaris.
21222         * tests/test-file-has-acl.sh (ID): New variable.
21223         * tests/test-set-mode-acl.sh (ID): Likewise.
21224         * tests/test-copy-acl.sh (ID): Likewise.
21225         * tests/test-copy-file.sh (ID): Likewise.
21226
21227 2009-08-30  Bruno Haible  <bruno@clisp.org>
21228
21229         New module 'xstriconveh'.
21230         * lib/xstriconveh.h: New file.
21231         * lib/xstriconveh.c: New file.
21232         * modules/xstriconveh: New file.
21233
21234 2009-08-30  Bruno Haible  <bruno@clisp.org>
21235
21236         Make it easier to use mem_cd_iconveh.
21237         * lib/striconveh.h (iconveh_t): New type.
21238         (iconveh_open, iconveh_close): New declarations.
21239         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21240         with a single 'const iconveh_t *' argument.
21241         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
21242         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
21243         with a single 'const iconveh_t *' argument.
21244         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
21245         * tests/test-striconveh.c (main): Update.
21246         * NEWS: Mention the change.
21247
21248 2009-08-30  Bruno Haible  <bruno@clisp.org>
21249
21250         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
21251         problem.
21252
21253 2009-08-30  Bruno Haible  <bruno@clisp.org>
21254
21255         Work around iconv_open problem on Solaris.
21256         * lib/iconv_open-solaris.gperf: New file.
21257         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21258         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21259         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21260         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21261         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21262         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21263
21264 2009-08-29  Jim Meyering  <meyering@redhat.com>
21265
21266         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21267         * top/maint.mk (cvs-check): Remove target; it was just an alias
21268         to the better-named vc-diff-check.
21269         (maintainer-distcheck): Remove rule.  It was used only from
21270         the (alpha/beta/major) target, and all of its commands but one
21271         were coreutils-specific.
21272         (vc-dist): Remove rule.
21273         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21274         Run vc-diff-check, not vc-dist.
21275         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21276
21277 2009-08-27  Bruno Haible  <bruno@clisp.org>
21278
21279         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21280         of 0.
21281
21282 2009-08-27  Bruno Haible  <bruno@clisp.org>
21283
21284         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21285         compilers.
21286         * doc/func.texi: Document the SunPRO C bug.
21287
21288 2009-08-27  Bruno Haible  <bruno@clisp.org>
21289
21290         Fix link error on Solaris.
21291         * tests/test-parse-duration.c (xstrdup): Remove function.
21292
21293 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21294
21295         ignore-value: handle pointer types, too
21296         * lib/ignore-value.h (__attribute__): Remove definition.
21297         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21298         of a more concise and more-often effective "(void) i" statement.
21299         (ignore_ptr): New function to suppress warnings from functions that
21300         return pointers, and to make it explicit that one function doesn't
21301         handle all cases.
21302
21303 2009-08-25  Bruno Haible  <bruno@clisp.org>
21304
21305         dup2: work around a Linux bug.
21306         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21307         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21308         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21309         Reported by Simon Josefsson.
21310
21311 2009-08-25  Jim Meyering  <meyering@redhat.com>
21312
21313         libguestfs uses gnulib
21314         * users.txt: Add libguestfs.
21315
21316 2009-08-24  Eric Blake  <ebb9@byu.net>
21317
21318         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21319         * lib/pipe2.c (includes): Add binary-io.h.
21320         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21321
21322 2009-08-24  Bruno Haible  <bruno@clisp.org>
21323
21324         Tolerate declared but missing accept4 syscall.
21325         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21326         available.
21327         * lib/sys_socket.in.h (accept4): If the function is already present,
21328         override it.
21329         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21330         * modules/accept4 (Makefile.am): Compile accept4.c always.
21331         Reported by Paolo Bonzini and Eric Blake.
21332
21333 2009-08-23  Bruno Haible  <bruno@clisp.org>
21334
21335         New module 'accept4'.
21336         * lib/sys_socket.in.h (accept4): New declaration.
21337         * lib/accept4.c: New file.
21338         * m4/accept4.m4: New file.
21339         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21340         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21341         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21342         HAVE_ACCEPT4.
21343         * modules/accept4: New file.
21344         * doc/glibc-functions/accept4.texi: Mention the new module.
21345
21346 2009-08-24  Jim Meyering  <meyering@redhat.com>
21347
21348         progname: also set global program_invocation_name, when possible
21349         Before this change, a libtool-enabled program that calls glibc's
21350         error function would report the program name as
21351         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21352         * modules/progname (configure.ac): Check for a declaration of
21353         program_invocation_name.
21354         * lib/progname.c:  Include <errno.h>.
21355         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21356         Set program_invocation_name.
21357
21358 2009-08-23  Bruno Haible  <bruno@clisp.org>
21359
21360         * lib/dup3.c: Include <string.h>.
21361
21362 2009-08-23  Bruno Haible  <bruno@clisp.org>
21363
21364         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21365         * lib/pipe2.c (pipe2): Likewise.
21366         Suggested by Eric Blake.
21367
21368 2009-08-23  Bruno Haible  <bruno@clisp.org>
21369
21370         Tolerate declared but missing dup3 syscall.
21371         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21372         * lib/unistd.in.h (dup3): If the function is already present,
21373         override it.
21374         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21375         * modules/dup3 (Makefile.am): Compile dup3.c always.
21376         Reported by Paolo Bonzini.
21377
21378 2009-08-23  Bruno Haible  <bruno@clisp.org>
21379
21380         Tolerate declared but missing pipe2 syscall.
21381         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21382         available.
21383         * lib/unistd.in.h (pipe2): If the function is already present,
21384         override it.
21385         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21386         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21387         Reported by Paolo Bonzini.
21388
21389 2009-08-23  Bruno Haible  <bruno@clisp.org>
21390
21391         * lib/pipe2.c (pipe2): Move #ifs inside function.
21392
21393 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21394
21395         quotearg: document limitations of quote_these_too
21396         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21397         those limitations are created.
21398         * lib/quotearg.h (set_char_quoting): Document that digits and
21399         letters that are special after backslash are not permitted.
21400         (quotearg_char): Cross-reference set_char_quoting documentation.
21401
21402 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21403
21404         quotearg: implement custom_quoting_style
21405         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21406         right_quote fields.
21407         (set_custom_quoting): New public function.
21408         (quotearg_buffer_restyled): Add left_quote and right_quote
21409         arguments, handle them very much like locale quoting, and update
21410         all uses.
21411         (quotearg_n_custom): New public function.
21412         (quotearg_n_custom_mem): New public function.
21413         (quotearg_custom): New public function.
21414         (quotearg_custom_mem): New public function.
21415         * lib/quotearg.h: Prototype and document new public functions.
21416         (enum quoting_style): For escape_quoting_style and
21417         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21418         ignored even though they're otherwise like c_quoting_style.
21419         Add custom_quoting_style member and document with comparison to
21420         clocale_quoting_style.
21421         * tests/test-quotearg.c (custom_quotes): New array.
21422         (custom_results): New array.
21423         (main): Extend to test custom quoting.
21424
21425 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21426
21427         quotearg: fix right quote escaping when it's in quote_these_too
21428         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21429         quote, be sure to prepend only one backslash.
21430         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21431         (main): Test it.
21432
21433 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21434
21435         quotearg-tests: test escaping of embedded locale quotes
21436         * tests/test-quotearg.c (struct result_strings): Add member for
21437         new input.
21438         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21439         (inputs): Add new input.
21440         (results_g): Add expected results.
21441         (flag_results): Likewise.
21442         (locale_results): Likewise.
21443         (compare_strings): Check those.
21444
21445 2009-08-23  Bruno Haible  <bruno@clisp.org>
21446
21447         Tests for module 'dup3'.
21448         * modules/dup3-tests: New file.
21449         * tests/test-dup3.c: New file.
21450
21451         New module 'dup3'.
21452         * lib/unistd.in.h (dup3): New declaration.
21453         * lib/dup3.c: New file.
21454         * m4/dup3.m4: New file.
21455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21456         HAVE_DUP3.
21457         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21458         * modules/dup3: New file.
21459         * doc/glibc-functions/dup3.texi: Mention the new module.
21460
21461 2009-08-23  Bruno Haible  <bruno@clisp.org>
21462
21463         Tweak the dup2 test.
21464         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21465         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21466         the test file is still empty. Fix argument order of lseek.
21467
21468 2009-08-23  Bruno Haible  <bruno@clisp.org>
21469
21470         Avoid test link errors when the modules getopt-gnu, gettext are used.
21471         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21473
21474 2009-08-23  Bruno Haible  <bruno@clisp.org>
21475
21476         Fix getdtablesize() on mingw.
21477         * lib/getdtablesize.c (getdtablesize): Implement differently.
21478         * lib/unistd.in.h (getdtablesize): Improve comment.
21479
21480 2009-08-23  Bruno Haible  <bruno@clisp.org>
21481
21482         New module 'mkostemp'.
21483         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21484         * lib/stdlib.in.h (mksotemp): New declaration.
21485         * lib/mkostemp.c: New file, from glibc with modifications.
21486         * lib/tempname.h (GT_FILE): Remove outdated comment.
21487         (gen_tempname): Add flags argument.
21488         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21489         (__GT_FILE): Map to 1.
21490         (small_open, large_open): Remove macros.
21491         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21492         * lib/mkstemp.c (mkstemp): Update.
21493         * lib/mkdtemp.c (mkdtemp): Likewise.
21494         * m4/mkostemp.m4: New file.
21495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21496         HAVE_MKOSTEMP.
21497         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21498         HAVE_MKOSTEMP.
21499         * modules/mkostemp: New file, based on modules/mkstemp.
21500         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21501         * NEWS: Mention the change.
21502
21503 2009-08-23  Bruno Haible  <bruno@clisp.org>
21504
21505         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21506         Reported by Eric Blake.
21507
21508 2009-08-23  Bruno Haible  <bruno@clisp.org>
21509
21510         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21511         Reported by Eric Blake.
21512
21513 2009-08-23  Bruno Haible  <bruno@clisp.org>
21514
21515         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21516         * modules/pipe2 (Depends-on): Likewise.
21517
21518 2009-08-23  Eric Blake  <ebb9@byu.net>
21519
21520         fcntl-h: add O_TTY_INIT support
21521         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21522         * tests/test-fcntl-h.c (o): Test it.
21523         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21524
21525         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21526         * modules/fcntl: Move <fcntl.h> header replacement...
21527         * modules/fcntl-h: ...to new name, so as not to collide with
21528         like-named function.
21529         * tests/test-fcntl.c: Rename...
21530         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21531         * modules/fcntl-tests: Rename...
21532         * modules/fcntl-h-tests: ...to this.  Update test file name.
21533         * modules/chdir-long (Depends-on): Update clients.
21534         * modules/chdir-safer (Depends-on): Likewise.
21535         * modules/fcntl-safer (Depends-on): Likewise.
21536         * modules/fts (Depends-on): Likewise.
21537         * modules/mkancesdirs (Depends-on): Likewise.
21538         * modules/mkdir-p (Depends-on): Likewise.
21539         * modules/open (Depends-on): Likewise.
21540         * modules/savewd (Depends-on): Likewise.
21541         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21542         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21543
21544 2009-08-22  Bruno Haible  <bruno@clisp.org>
21545
21546         * modules/binary-io (License): Relicense under LGPL.
21547         * modules/pipe2 (License): Likewise.
21548
21549 2009-08-22  Bruno Haible  <bruno@clisp.org>
21550
21551         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21552         return value.
21553         * lib/pipe-filter-gi.c (filter_init): Likewise.
21554         Reported by Eric Blake.
21555
21556 2009-08-22  Bruno Haible  <bruno@clisp.org>
21557
21558         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21559         * modules/pipe (Depends-on): Add pipe2.
21560
21561 2009-08-22  Bruno Haible  <bruno@clisp.org>
21562
21563         Tests for module 'pipe2'.
21564         * modules/pipe2-tests: New file.
21565         * tests/test-pipe2.c: New file.
21566
21567         New module 'pipe2'.
21568         * lib/unistd.in.h (pipe2): New declaration.
21569         * lib/pipe2.c: New file.
21570         * m4/pipe2.m4: New file.
21571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21572         HAVE_PIPE2.
21573         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21574         * modules/pipe2: New file.
21575         * doc/glibc-functions/pipe2.texi: Mention the new module.
21576
21577 2009-08-22  Bruno Haible  <bruno@clisp.org>
21578
21579         Reference some new glibc functions.
21580         * doc/glibc-functions/accept4.texi: New file.
21581         * doc/glibc-functions/dup3.texi: New file.
21582         * doc/glibc-functions/mkostemp.texi: New file.
21583         * doc/glibc-functions/pipe2.texi: New file.
21584         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21585         (Glibc sys/socket.h): Refer to accept4.
21586         (Glibc unistd.h): Refer to dup3, pipe2.
21587         Reported by Eric Blake.
21588
21589 2009-08-22  Jim Meyering  <meyering@redhat.com>
21590             Bruno Haible  <bruno@clisp.org>
21591
21592         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21593         This makes it so packages using automake-1.11's silent-rules option
21594         can print e.g., a single "GEN    configmake.h" line, rather than
21595         the 30+ statements that perform the job.  If you want to see the
21596         actual commands, you can still run "make V=1".
21597         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21598         so that make output is abbreviated when those variables are defined
21599         appropriately.
21600         * modules/argz: Likewise.
21601         * modules/arpa_inet: Likewise.
21602         * modules/byteswap: Likewise.
21603         * modules/configmake: Likewise.
21604         * modules/dirent: Likewise.
21605         * modules/errno: Likewise.
21606         * modules/fcntl: Likewise.
21607         * modules/float: Likewise.
21608         * modules/fnmatch: Likewise.
21609         * modules/getopt-posix: Likewise.
21610         * modules/glob: Likewise.
21611         * modules/iconv_open: Likewise.
21612         * modules/inttypes: Likewise.
21613         * modules/localcharset: Likewise.
21614         * modules/locale: Likewise.
21615         * modules/math: Likewise.
21616         * modules/netdb: Likewise.
21617         * modules/netinet_in: Likewise.
21618         * modules/poll: Likewise.
21619         * modules/posix_spawnp-tests: Likewise.
21620         * modules/sched: Likewise.
21621         * modules/search: Likewise.
21622         * modules/selinux-h: Likewise.
21623         * modules/signal: Likewise.
21624         * modules/spawn: Likewise.
21625         * modules/stdarg: Likewise.
21626         * modules/stdbool: Likewise.
21627         * modules/stddef: Likewise.
21628         * modules/stdint: Likewise.
21629         * modules/stdio: Likewise.
21630         * modules/stdlib: Likewise.
21631         * modules/string: Likewise.
21632         * modules/strings: Likewise.
21633         * modules/sys_file: Likewise.
21634         * modules/sys_ioctl: Likewise.
21635         * modules/sys_select: Likewise.
21636         * modules/sys_socket: Likewise.
21637         * modules/sys_stat: Likewise.
21638         * modules/sys_time: Likewise.
21639         * modules/sys_times: Likewise.
21640         * modules/sys_utsname: Likewise.
21641         * modules/sys_wait: Likewise.
21642         * modules/sysexits: Likewise.
21643         * modules/time: Likewise.
21644         * modules/unistd: Likewise.
21645         * modules/wchar: Likewise.
21646         * modules/wctype: Likewise.
21647
21648 2009-08-22  Jim Meyering  <meyering@redhat.com>
21649
21650         announce-gen: detect write failure
21651         * build-aux/announce-gen: Add Coda at end.
21652         Remove equivalent-but-more-verbose block at top.
21653
21654 2009-08-19  Akim Demaille  <demaille@gostai.com>
21655
21656         bootstrap: --help to stdout.
21657         * bootstrap (usage): Don't send --help to stderr.
21658         Use a here doc instead of a long string.
21659
21660 2009-08-21  Eric Blake  <ebb9@byu.net>
21661
21662         test-popen-safer: split from test-popen
21663         * tests/test-popen.c (main): Move...
21664         * tests/test-popen.h: ...into new file.
21665         * tests/test-popen-safer2.c: New file.
21666         * modules/popen-tests (Files): Add test-popen.h.
21667         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21668         Suggested by Bruno Haible.
21669
21670         test-fcntl-safer: split from test-open
21671         * tests/test-open.c (main): Move...
21672         * tests/test-open.h: ...into new file.
21673         * tests/test-fcntl-safer.c: New file.
21674         * modules/open-tests (Files): Add test-open.h.
21675         * modules/fcntl-safer-tests: New file.
21676         Suggested by Bruno Haible.
21677
21678         test-fopen-safer: split from test-fopen
21679         * tests/test-fopen.c (main): Move...
21680         * tests/test-fopen.h: ...into new file.
21681         * tests/test-fopen-safer.c: New file.
21682         * modules/fopen-tests (Files): Add test-fopen.h.
21683         * modules/fopen-safer-tests: New file.
21684         Suggested by Bruno Haible.
21685
21686 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21687
21688         popen-safer: test O_CLOEXEC at run-time.
21689         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21690
21691 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21692
21693         fcntl: move more flags to the header
21694         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21695         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21696         * lib/fcntl.in.h: Do both things here.
21697
21698 2009-08-21  Jim Meyering  <meyering@redhat.com>
21699
21700         consistently remove $@-t before redirecting to it
21701         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21702         * modules/alloca-opt: Likewise.
21703         * modules/byteswap: Likewise.
21704         * modules/fnmatch: Likewise.
21705         * modules/getopt-posix: Likewise.
21706         * modules/glob: Likewise.
21707         * modules/poll: Likewise.
21708         * modules/posix_spawnp-tests: Likewise.
21709         * modules/sys_socket: Likewise.
21710         * modules/sysexits: Likewise.
21711
21712 2009-08-21  Eric Blake  <ebb9@byu.net>
21713
21714         popen: simplify access to original popen
21715         * lib/popen.c (rpl_popen): No need to worry about popen being a
21716         macro.
21717         Reported by Bruno Haible.
21718
21719 2009-08-20  Eric Blake  <ebb9@byu.net>
21720
21721         build: avoid some compiler warnings
21722         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21723         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21724         type.
21725         (new_exclude_segment, excluded_file_pattern_p)
21726         (excluded_file_name_p): Reduce scope.
21727         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21728         old-style declaration.
21729
21730 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21731
21732         * tests/test-exclude1.sh: Handle Windows EOL.
21733         * tests/test-exclude2.sh: Likewise.
21734         * tests/test-exclude3.sh: Likewise.
21735         * tests/test-exclude4.sh: Likewise.
21736         * tests/test-exclude5.sh: Likewise.
21737         * tests/test-exclude6.sh: Likewise.
21738         * tests/test-exclude7.sh: Likewise.
21739
21740 2009-08-19  Akim Demaille  <demaille@gostai.com>
21741
21742         bootstrap: find sha1sum when named gsha1sum.
21743         * bootstrap (find_tool): New.
21744         ($SHA1SUM): New.
21745         Use it.
21746
21747 2009-08-20  Jim Meyering  <meyering@redhat.com>
21748
21749         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21750         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21751         expression that converts "." in a file name to "\." in the resulting
21752         regexp.  Start with a dummy statement, so that prior shell variable
21753         definitions are expanded portably.  Reported by Simon Josefsson.
21754
21755 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21756
21757         Fix polling for writeability of a screen buffer.
21758         * lib/poll.c: Distinguish input and screen buffers for the
21759         Win32 implementation.
21760         * lib/select.c: Likewise.
21761
21762 2009-08-19  Eric Blake  <ebb9@byu.net>
21763
21764         popen-safer: prevent popen from clobbering std descriptors
21765         * modules/popen-safer: New file.
21766         * lib/popen-safer.c: Likewise.
21767         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21768         * lib/stdio--.h (popen): Provide override.
21769         * lib/stdio-safer.h (popen_safer): Provide declaration.
21770         * tests/test-popen.c (includes): Partially test this.
21771         * modules/popen-safer-tests: New file, for more tests.
21772         * tests/test-popen-safer.c: Likewise.
21773         * MODULES.html.sh (file stream based Input/Output): Mention it.
21774
21775         tests: test some of the *-safer modules
21776         * modules/fopen-safer (Depends-on): Add fopen.
21777         * modules/fcntl-safer (Depends-on): Add fcntl.
21778         * modules/stdlib-safer (Depends-on): Add stdlib.
21779         (configure.ac): Set indicator.
21780         * modules/unistd-safer (configure.ac): Likewise.
21781         * modules/tmpfile-safer (configure.ac): Likewise.
21782         (Depends-on): Add tmpfile.
21783         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21784         active.
21785         * tests/test-fopen.c (includes): Test safer versions when they are
21786         in use.
21787         * tests/test-open.c (includes): Likewise.
21788
21789         popen: fix cygwin 1.5 bug when stdin closed
21790         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21791         * modules/popen: New file.
21792         * modules/popen-tests: Likewise.
21793         * tests/test-popen.c: Likewise.
21794         * m4/popen.m4: Likewise.
21795         * lib/popen.c: Likewise.
21796         * lib/stdio.in.h (popen): New declaration.
21797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21798         * modules/stdio (Makefile.am): Likewise.
21799         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21800
21801 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21802
21803         maint.mk: give full control over update-copyright exclusions
21804         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21805         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21806         (update-copyright): Don't force inclusion of top-level
21807         ChangeLog.  Don't force exclusion of all COPYING files, but make
21808         them the default exclusion instead.
21809
21810 2009-08-16  Bruno Haible  <bruno@clisp.org>
21811
21812         Fix test failures on Solaris 10.
21813         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21814         tests when Solaris iconv() is used.
21815         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21816         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21817         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21818         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21819         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21820
21821 2009-08-16  Bruno Haible  <bruno@clisp.org>
21822
21823         Fix test failures on Solaris 10.
21824         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21825         'tr' program and pass it as first argument.
21826         * tests/test-pipe-filter-gi1.sh: Likewise.
21827         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21828         program as first argument.
21829         * tests/test-pipe-filter-gi1.c (main): Likewise.
21830
21831 2009-08-16  Eric Blake  <ebb9@byu.net>
21832
21833         fpurge: fix previous commits
21834         * modules/fpurge (Makefile.am): Make replacement conditional,
21835         partially reverting 2007-04-29 change; missed in previous
21836         attempt.
21837         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21838         is missing.
21839
21840 2009-08-16  Bruno Haible  <bruno@clisp.org>
21841
21842         Clarify fpurge's effect on the file position.
21843         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21844         * tests/test-fpurge.c (main): Make a second pass for checking the file
21845         position.
21846
21847 2009-08-16  Bruno Haible  <bruno@clisp.org>
21848
21849         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21850         declaration of fpurge is missing.
21851         * tests/test-fpurge.c (main): Check that the file has not more contents
21852         than expected. Close the file before removing it.
21853
21854 2009-08-15  Eric Blake  <ebb9@byu.net>
21855
21856         fpurge: don't wrap working cygwin implementation
21857         * lib/fpurge.c (fpurge): Fix comment typo.
21858         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21859         1.7 to avoid replacement.
21860         * tests/test-fpurge.c (main): Enhance test.
21861
21862 2009-08-15  Eric Blake  <ebb9@byu.net>
21863         and Jim Meyering  <meyering@redhat.com>
21864
21865         test-update-copyright: skip if perl is insufficient
21866         * tests/test-update-copyright.sh: Failure to run maintainer tool
21867         should not cause testsuite failure on cygwin 1.5.
21868
21869 2009-08-14  Eric Blake  <ebb9@byu.net>
21870
21871         doc: mention more functions added in cygwin 1.7.0
21872         * doc/posix-headers/limits.texi (limits.h): Update for recent
21873         cygwin additions.
21874         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21875         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21876         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21877         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21878         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21879
21880 2009-08-14  Eric Blake  <ebb9@byu.net>
21881
21882         maint.mk: simplify update-copyright rule
21883         * top/maint.mk (update-copyright-local): Delete, and document how
21884         to do it in cfg.mk instead.
21885         (update-copyright-exclude-regexp): Delete, and document how to do
21886         it in .x-update-copyright instead.
21887         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21888         exclude ChangeLog.
21889
21890 2009-08-14  Bruno Haible  <bruno@clisp.org>
21891
21892         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21893
21894 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21895
21896         maint.mk: support update-copyright-env
21897         * top/maint.mk (update-copyright-env): Define place-holder.
21898         (update-copyright): Expand $(update-copyright-env) before
21899         invoking update-copyright.
21900
21901 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21902
21903         update-copyright: implement forced reformatting
21904         * build-aux/update-copyright: Implement and document
21905         UPDATE_COPYRIGHT_FORCE.
21906         * tests/test-update-copyright.sh: Test it.
21907
21908 2009-08-14  Eric Blake  <ebb9@byu.net>
21909         and Bruno Haible  <bruno@clisp.org>
21910
21911         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21912         * tests/test-locale.c: Revert previous patch related to NULL.
21913         * tests/test-stdio.c: Likewise.
21914         * tests/test-stdlib.c: Likewise.
21915         * tests/test-string.c: Likewise.
21916         * tests/test-unistd.c: Likewise.
21917         * modules/time-tests (Depends-on): Add verify.
21918         * modules/wchar-tests (Depends-on): Likewise.
21919         * tests/test-time.c: Test for NULL compliance.
21920         * tests/test-wchar.c: Likewise.
21921         * modules/locale (Depends-on): Add stddef.
21922         * modules/stdio (Depends-on): Likewise.
21923         * modules/stdlib (Depends-on): Likewise.
21924         * modules/string (Depends-on): Likewise.
21925         * modules/time (Depends-on): Likewise.
21926         * modules/unistd (Depends-on): Likewise.
21927         * modules/wchar (Depends-on): Likewise.
21928         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21929         * lib/stdlib.in.h (includes): Likewise.
21930         * lib/string.in.h (includes): Likewise.
21931         * lib/time.in.h (includes): Likewise.
21932         * lib/unistd.in.h (includes): Likewise.
21933         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21934         replaced.
21935         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21936         * m4/stddef_h.m4: New file.
21937         * modules/stddef: Likewise.
21938         * lib/stddef.in.h: Likewise.
21939         * modules/stddef-tests: Likewise.
21940         * tests/test-stddef.c: Likewise.
21941         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21942         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21943         * doc/posix-headers/locale.texi (locale.h): Likewise.
21944         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21945         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21946         * doc/posix-headers/string.texi (string.h): Likewise.
21947         * doc/posix-headers/time.texi (time.h): Likewise.
21948         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21949         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21950
21951 2009-08-14  Eric Blake  <ebb9@byu.net>
21952
21953         doc: improve git diff of texinfo files
21954         * .gitattributes: Add rule for *.texi files, with hint on how to
21955         use it.
21956         Copied from m4, and based on a report by Bruno Haible.
21957
21958 2009-08-14  Bruno Haible  <bruno@clisp.org>
21959
21960         Disable multithread support by default on Cygwin 1.5.x for real.
21961         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21962
21963 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21964
21965         update-copyright: much ado about intervals
21966         * build-aux/update-copyright: Implement and document
21967         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21968         of copyright year intervals.
21969         Also, document UPDATE_COPYRIGHT_YEAR.
21970         * tests/test-update-copyright.sh: Test it.
21971
21972         update-copyright: convert 2-digit to 4-digit years
21973         * build-aux/update-copyright: Implement and document.
21974         * tests/test-update-copyright.sh: Update.
21975
21976 2009-08-14  Jim Meyering  <meyering@redhat.com>
21977
21978         test-exclude: avoid coreutils "make check" failure
21979         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21980         just as in test-argmatch.c.
21981
21982 2009-08-13  Eric Blake  <ebb9@byu.net>
21983
21984         test-dup2: fix bad assumption
21985         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21986         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21987
21988         test-version-etc: fix CRLF portability issue
21989         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21990         recognize \r.
21991         * tests/test-argp-version-etc-1.sh: Likewise.
21992
21993         getopt: update client modules
21994         * modules/argp (Depends-on): Use getopt-gnu.
21995         * modules/git-merge-changelog (Depends-on): Likewise.
21996         * modules/long-options (Depends-on): Likewise.
21997         * modules/xstrtol (Depends-on): Likewise.
21998
21999 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22000
22001         * tests/test-version-etc.sh: Don't fail on different
22002         project/version.  Don't fail on CRLF differences.  Rewrite to use
22003         multiple -e instead of multiple sed forks, suggested by Eric Blake
22004         <ebb9@byu.net>.
22005         * tests/test-argp-version-etc-1.sh: Likewise.
22006
22007 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22008
22009         * tests/test-version-etc.sh: Don't fail on different
22010         project/version.
22011
22012 2009-08-12  Bruno Haible  <bruno@clisp.org>
22013
22014         Tests for modules 'getopt-posix', 'getopt-gnu'.
22015         * modules/getopt-posix-tests: New file.
22016         * tests/test-getopt.c: New file.
22017         * tests/test-getopt.h: New file.
22018         * tests/test-getopt_long.h: New file.
22019
22020         New modules 'getopt-posix', 'getopt-gnu'.
22021         * modules/getopt-gnu: New file, renamed from modules/getopt.
22022         * modules/getopt-posix: New file.
22023         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22024         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22025         (gl_GETOPT): Remove macro.
22026         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
22027         Disable the test against BSD systems that declare optreset. Test
22028         against mingw bug. Test against lack of support of optional arguments
22029         on many platforms.
22030         * doc/glibc-headers/getopt.texi: Update module name and list of
22031         relevant platforms.
22032         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
22033         'getopt-gnu' and more portability problems.
22034         * NEWS: Mention the changes.
22035
22036 2009-08-12  Bruno Haible  <bruno@clisp.org>
22037
22038         Ensure that optarg etc. get declared by <unistd.h>.
22039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
22040         AC_USE_SYSTEM_EXTENSIONS.
22041         * modules/getopt (Depends-on): Add 'extensions'.
22042
22043 2009-08-12  Bruno Haible  <bruno@clisp.org>
22044
22045         Avoid test link errors.
22046         * modules/pipe-filter-ii-tests (Makefile.am): Define
22047         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
22048         * modules/pipe-filter-gi-tests (Makefile.am): Define
22049         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
22050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22051
22052 2009-08-12  Bruno Haible  <bruno@clisp.org>
22053
22054         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
22055         gl_GETOPT_SUBSTITUTE before.
22056         (gl_GETOPT): Use it.
22057         * m4/argp.m4 (gl_ARGP): Update.
22058         Reported by Sergey Poznyakoff.
22059
22060         * m4/getopt.m4: Reorder macros.
22061         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
22062         (gl_GETOPT_SUBSTITUTE): Remove macro.
22063
22064 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22065
22066         Minor improvement in gitlog-to-changelog
22067
22068         * build-aux/gitlog-to-changelog: New option `--format' makes
22069         output format string configurable.
22070
22071 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22072
22073         Optimize exclude: use hash tables for non-wildcard patterns.
22074
22075         * lib/exclude.c: Include hash.h and mbuiter.h
22076         (struct exclude_pattern, exclude_segment): New data types.
22077         (struct exclude): Rewrite.
22078         (fnmatch_pattern_has_wildcards): New function.
22079         (new_exclude_segment, free_exclude_segment): New functions.
22080         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22081         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22082         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22083         * modules/exclude: Depend on hash and mbuiter.
22084
22085         * modules/exclude-tests: New file.
22086         * tests/test-exclude.c: New file.
22087         * tests/test-exclude1.sh: New file.
22088         * tests/test-exclude2.sh: New file.
22089         * tests/test-exclude3.sh: New file.
22090         * tests/test-exclude4.sh: New file.
22091         * tests/test-exclude5.sh: New file.
22092         * tests/test-exclude6.sh: New file.
22093         * tests/test-exclude7.sh: New file.
22094
22095 2009-08-12  Bruno Haible  <bruno@clisp.org>
22096
22097         Ensure that getopt() gets declared by <unistd.h>.
22098         * lib/unistd.in.h: Conditionally include getopt.h.
22099         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22100         Set GNULIB_UNISTD_H_GETOPT.
22101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22102         GNULIB_UNISTD_H_GETOPT.
22103         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22104
22105 2009-08-12  Bruno Haible  <bruno@clisp.org>
22106
22107         Clarify logic.
22108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22109         gl_replace_getopt instead of GETOPT_H.
22110
22111 2009-08-12  Bruno Haible  <bruno@clisp.org>
22112
22113         * m4/getopt.m4: Add comments.
22114
22115 2009-08-12  Bruno Haible  <bruno@clisp.org>
22116
22117         Disable multithread support by default on Cygwin 1.5.x.
22118         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22119         set gl_use_threads=no if not specified otherwise.
22120
22121 2009-08-11  Bruno Haible  <bruno@clisp.org>
22122
22123         Avoid compilation error on NetBSD 5.0.
22124         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22125         * tests/test-stdio.c: Likewise.
22126         * tests/test-stdlib.c: Likewise.
22127         * tests/test-string.c: Likewise.
22128         * tests/test-unistd.c: Likewise.
22129         Reported by Greg Troxel <gdt@ir.bbn.com>
22130         at <https://savannah.gnu.org/support/?106973>.
22131
22132 2009-08-11  Bruno Haible  <bruno@clisp.org>
22133
22134         * modules/dup2-tests (Depends-on): Remove close.
22135
22136         Undo 2009-07-19 commit.
22137         * modules/acl-tests (Depends-on): Remove close.
22138         * modules/binary-io-tests (Depends-on): Likewise.
22139         * modules/closein-tests (Depends-on): Likewise.
22140         * modules/flock-tests (Depends-on): Likewise.
22141         * modules/fsync-tests (Depends-on): Likewise.
22142         * modules/lseek-tests (Depends-on): Likewise.
22143         * modules/pipe-tests (Depends-on): Likewise.
22144         * modules/posix_spawn-tests (Depends-on): Likewise.
22145         * modules/posix_spawnp-tests (Depends-on): Likewise.
22146         * modules/stat-time-tests (Depends-on): Likewise.
22147         * modules/yesno-tests (Depends-on): Likewise.
22148
22149 2009-08-10  Bruno Haible  <bruno@clisp.org>
22150
22151         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
22152
22153 2009-08-10  Bruno Haible  <bruno@clisp.org>
22154
22155         Fix a gcc warning.
22156         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
22157
22158 2009-08-10  Bruno Haible  <bruno@clisp.org>
22159
22160         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
22161         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
22162         not only the first time.
22163         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
22164         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
22165         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
22166         is 1, not only the the first time.
22167
22168 2009-08-10  Bruno Haible  <bruno@clisp.org>
22169
22170         Make it possible to use module 'gethostname' without module 'close'.
22171         * lib/unistd.in.h (close): Evoke a link error only if
22172         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22174         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22175         * modules/unistd (Makefile.am): Substitute
22176         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22177         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
22178         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
22179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22180         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22181         * modules/sys_ioctl (Makefile.am): Substitute
22182         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22183         * modules/socket (configure.ac): On native Windows, set
22184         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
22185         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
22186         Reported by Sam Steingold <sds@gnu.org>.
22187
22188 2009-08-10  Bruno Haible  <bruno@clisp.org>
22189
22190         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
22191         * modules/ioctl (configure.ac): Likewise.
22192
22193 2009-08-10  Bruno Haible  <bruno@clisp.org>
22194
22195         Avoid collision between gnulib wrapper and libintl wrapper.
22196         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
22197         already defined in intl/printf.c.
22198         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
22199         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
22200
22201 2009-08-09  Bruno Haible  <bruno@clisp.org>
22202
22203         Make <sys/select.h> really self-contained, also on Solaris 10.
22204         * lib/sys_select.in.h: Include <string.h>.
22205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
22206         Solaris 10 problem.
22207         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
22208         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
22209         Reported by Jim Meyering.
22210
22211 2009-08-09  Bruno Haible  <bruno@clisp.org>
22212
22213         Avoid warnings from 'aclocal' that are due to a use of macro name
22214         AM_XGETTEXT_OPTION that is not defined in automake.
22215         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
22216         automake.
22217         * modules/error (configure.ac): Likewise.
22218         * modules/propername (configure.ac): Likewise.
22219         * modules/vasprintf (configure.ac): Likewise.
22220         * modules/verror (configure.ac): Likewise.
22221         * modules/xprintf (configure.ac): Likewise.
22222         * modules/xvasprintf (configure.ac): Likewise.
22223
22224 2009-08-08  Bruno Haible  <bruno@clisp.org>
22225
22226         Avoid compilation error in C++ mode.
22227         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
22228         Reported by Sam Steingold <sds@gnu.org>.
22229
22230 2009-08-08  Bruno Haible  <bruno@clisp.org>
22231
22232         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
22233         for the various Unix platforms.
22234         * doc/posix-headers/limits.texi: Update platforms list regarding
22235         HOST_NAME_MAX.
22236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22237
22238 2009-08-07  Jim Meyering  <meyering@redhat.com>
22239
22240         selinux-at: fix typo in a comment
22241         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
22242         Spotted by Paolo Bonzini.
22243
22244         selinux-at: remove redundant m4 code, add documentation
22245         * modules/selinux-at (configure.ac): Remove redundant code.
22246         LIB_SELINUX is already set via the dependent module, selinux-h.
22247         (Include): Add quotes around selinux-at.h.
22248         * lib/selinux-at.h: Add documentation.
22249         Reported by Bruno Haible in
22250         http://marc.info/?l=gnulib-bug&m=124958988300749
22251
22252 2009-08-07  Bruno Haible  <bruno@clisp.org>
22253
22254         Avoid link error on MacOS X 10.3 and 10.4.
22255         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22256         on non-ELF systems.
22257         * lib/argp-pv.c (argp_program_version): Likewise.
22258         Reported by Simon Josefsson.
22259
22260 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22261
22262         * tests/test-version-etc.sh: Use $EXEEXT.
22263
22264 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22265
22266         update-copyright: update documentation to point to maint.mk
22267         * build-aux/update-copyright: Here.
22268
22269 2009-08-06  Jim Meyering  <meyering@redhat.com>
22270
22271         maint.mk: support update-copyright-local
22272         * top/maint.mk (update-copyright-local): Define place-holder.
22273         (update-copyright): Depend on $(update-copyright-local).
22274
22275 2009-08-06  Jim Meyering  <meyering@redhat.com>
22276
22277         selinux-at: new module
22278         Initially written for coreutils, this module will soon be
22279         used by findutils, too.
22280         * MODULES.html.sh [Misc]: Add selinux-at.
22281         * lib/selinux-at.h: New file, from coreutils.
22282         * lib/selinux-at.c: Likewise.
22283         * modules/selinux-at: Likewise.
22284         (License): Change from LGPL to GPL, since it depends
22285         on the GPL'd openat module.
22286
22287         doc: update README
22288         * README: Remove references to cogito.
22289         Remove cvs-repo-updating instructions from 2007.
22290         Don't imply that CVS is better if you have limited disk space.
22291
22292 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22293
22294         update-copyright: support C-style comments
22295         * build-aux/update-copyright: Implement and document.
22296         * tests/test-update-copyright.sh: Test.
22297
22298 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22299
22300         update-copyright: support omitted "(C)"
22301         * build-aux/update-copyright: Implement and document.  Also,
22302         allow variable whitespace before "(C)".
22303         * tests/test-update-copyright.sh: Test.
22304
22305 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22306
22307         update-copyright: don't trip on non-FSF copyright statements
22308         * build-aux/update-copyright: Fix so that the first correctly
22309         formatted FSF copyright statement is recognized no matter what
22310         appears before it.  Update documentation.
22311         * tests/test-update-copyright.sh: Test that.
22312
22313 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22314
22315         update-copyright: clean up code a little
22316         * build-aux/update-copyright: Append "_re" to the name of any
22317         variable holding a regular expression.
22318         Replace "old" and "new" with "stmt" in variable names.
22319         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22320         handled correctly.
22321         Format code more consistently.
22322
22323 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22324
22325         update-copyright-tests: improve portability
22326         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22327         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22328
22329 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22330
22331         update-copyright: support @copyright{} and &copy;
22332         * build-aux/update-copyright: Implement and document.
22333         * tests/test-update-copyright.sh: Test.
22334
22335 2009-08-04  Jim Meyering  <meyering@redhat.com>
22336
22337         update-copyright-tests: correctly test EOL=\r\n handling
22338         * tests/test-update-copyright.sh: Put \r at the end of some lines
22339         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22340
22341         maint.mk: make update-copyright exclusion list more configurable
22342         * top/maint.mk (update-copyright): Default to excluding COPYING,
22343         but allow an override, in case someone does want to update that file.
22344
22345         maint.mk: don't update copyright date in COPYING
22346         * top/maint.mk (update-copyright): Exclude COPYING.
22347
22348         maint.mk: add a copyright-updating rule
22349         * top/maint.mk (update-copyright): New rule.
22350         Derived from coreutils/Makefile.am.
22351
22352         update-copyright: rename some variables
22353         * build-aux/update-copyright: Rename a few variables for clarity.
22354         Tweak syntax.  List Joel E. Denny as coauthor.
22355
22356 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22357
22358         update-copyright: fix bug for 2-digit last year and add tests
22359         * build-aux/update-copyright: Fix bug.
22360         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22361         specified.
22362         * modules/update-copyright-tests: New
22363         * tests/test-update-copyright.sh: New.
22364
22365 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22366
22367         update-copyright: handle leading tabs in line prefix
22368         * build-aux/update-copyright: Count leading tabs as 8 spaces
22369         when computing margin.  This helps with the formatting of
22370         ChangeLogs, for example.
22371         Fix documentation a little.
22372
22373 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22374
22375         update-copyright: support EOL=\r\n
22376         * build-aux/update-copyright: Implement that.
22377
22378 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22379
22380         update-copyright: automatically format copyright statements
22381         * build-aux/update-copyright: Implement that.
22382         Also, be a little more predictable and safer by always failing
22383         when the full copyright format is not perfectly recognized as an
22384         unbroken whole.  Discussed at
22385         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22386         Rewrite documentation.
22387
22388 2009-08-03  Bruno Haible  <bruno@clisp.org>
22389
22390         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22391
22392 2009-08-02  Bruno Haible  <bruno@clisp.org>
22393
22394         Tests for module 'uname'.
22395         * modules/uname-tests: New file.
22396         * tests/test-uname.c: New file.
22397
22398         New module 'uname'.
22399         * lib/uname.c: New file.
22400         * m4/uname.m4: New file.
22401         * modules/uname: New file.
22402         * doc/posix-functions/uname.texi: Mention the new module.
22403
22404 2009-08-02  Bruno Haible  <bruno@clisp.org>
22405
22406         Tests for module 'sys_utsname'.
22407         * modules/sys_utsname-tests: New file.
22408         * tests/test-sys_utsname.c: New file.
22409
22410         New module 'sys_utsname'.
22411         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22412         * m4/sys_utsname_h.m4: New file.
22413         * modules/sys_utsname: New file.
22414         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22415
22416 2009-08-02  Bruno Haible  <bruno@clisp.org>
22417
22418         Implicitly initialize the sockets library.
22419         * lib/gethostname.c: Include sockets.h.
22420         (rpl_gethostname): Invoke gl_sockets_startup.
22421         * lib/socket.c: Include sockets.h.
22422         (rpl_socket): Invoke gl_sockets_startup.
22423         * modules/gethostname (Depends-on): Add sockets.
22424         * modules/socket (Depends-on): Likewise.
22425         * tests/test-poll.c: Don't include sockets.h.
22426         (main): Don't invoke gl_sockets_startup.
22427         * tests/test-select.c: Don't include sockets.h.
22428         (main): Don't invoke gl_sockets_startup.
22429
22430 2009-08-02  Bruno Haible  <bruno@clisp.org>
22431
22432         Allow multiple calls to gl_sockets_startup.
22433         * lib/sockets.c (initialized_sockets_version): New variable.
22434         (gl_sockets_startup): Do nothing if already called for this or a higher
22435         version.
22436         (gl_sockets_cleanup): Reset initialized_sockets_version.
22437
22438 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22439
22440         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22441         different project/version.
22442
22443 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22444             Bruno Haible  <bruno@clisp.org>
22445
22446         Tests for module 'pipe-filter-gi'.
22447         * modules/pipe-filter-gi-tests: New file.
22448         * tests/test-pipe-filter-gi1.sh: New file.
22449         * tests/test-pipe-filter-gi1.c: New file.
22450         * tests/test-pipe-filter-gi2.sh: New file.
22451         * tests/test-pipe-filter-gi2-main.c: New file.
22452         * tests/test-pipe-filter-gi2-child.c: New file.
22453
22454         New module 'pipe-filter-gi'.
22455         * lib/pipe-filter-gi.c: New file.
22456         * modules/pipe-filter-gi: New file.
22457
22458 2009-08-02  Bruno Haible  <bruno@clisp.org>
22459             Paolo Bonzini  <bonzini@gnu.org>
22460
22461         Tests for module 'pipe-filter-ii'.
22462         * modules/pipe-filter-ii-tests: New file.
22463         * tests/test-pipe-filter-ii1.sh: New file.
22464         * tests/test-pipe-filter-ii1.c: New file.
22465         * tests/test-pipe-filter-ii2.sh: New file.
22466         * tests/test-pipe-filter-ii2-main.c: New file.
22467         * tests/test-pipe-filter-ii2-child.c: New file.
22468
22469         New module 'pipe-filter-ii'.
22470         * lib/pipe-filter.h: New file.
22471         * lib/pipe-filter-ii.c: New file.
22472         * lib/pipe-filter-aux.h: New file.
22473         * modules/pipe-filter-ii: New file.
22474
22475 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22476
22477         * lib/gc-libgcrypt.c: Change copyright to FSF.
22478         * lib/gc-gnulib.c: Likewise.
22479
22480 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22481
22482         * lib/gethostname.c: Include limits.h.
22483
22484 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22485             Bruno Haible  <bruno@clisp.org>
22486
22487         Ensure HOST_NAME_MAX as part of the gethostname module.
22488         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22489         define also HOST_NAME_MAX.
22490         * tests/test-gethostname.c: Include <limits.h>.
22491         (main): Check also HOST_NAME_MAX.
22492         * doc/posix-headers/limits.texi: Document the mingw problem.
22493
22494 2009-08-02  Bruno Haible  <bruno@clisp.org>
22495
22496         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22497         Add comments.
22498
22499 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22500
22501         * lib/gethostname.c: Add Windows wrapper.
22502         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22503         * modules/gethostname: Depend on sys_socket & errno, for also
22504         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22505         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22506
22507 2009-07-31  Jim Meyering  <meyering@redhat.com>
22508
22509         getloadavg: fix symbol name in comment
22510         * lib/getloadavg.c: Correct a typo I introduced when adding
22511         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22512         Matt Kraai spotted the problem.
22513
22514 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22515
22516         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22517         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22518         code also if ! defined N_NAME_POINTER.
22519         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22520         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22521         but the n_name member is a 12-byte array.
22522
22523 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22524
22525         update-copyright: generalize comment handling
22526         * build-aux/update-copyright: Handle copyright statements
22527         within more comment styles.
22528         Document usage.
22529         Report any file with an external copyright holder or parse failure.
22530
22531 2009-07-29  Jim Meyering  <meyering@redhat.com>
22532
22533         mktime: correct setting of REPLACE_MKTIME
22534         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22535
22536         update-copyright: new module
22537         * modules/update-copyright: New file.
22538         * build-aux/update-copyright: New file.
22539         * MODULES.html.sh (maint+release support): Add update-copyright.
22540
22541 2009-07-27  Bruno Haible  <bruno@clisp.org>
22542
22543         Fix compilation error when <ctime> is used and mktime is replaced.
22544         * lib/time.in.h (mktime): New declaration.
22545         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22546         REPLACE_MKTIME instead of defining mktime in config.h.
22547         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22548         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22549         Reported by Ross McFarland <rwmcfa1@neces.com>.
22550
22551 2009-07-27  Bruno Haible  <bruno@clisp.org>
22552
22553         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22554         Reported by Matt Kraai <mkraai@beckman.com>.
22555
22556 2009-07-25  Jim Meyering  <meyering@redhat.com>
22557
22558         maint.mk: avoid warnings about missing files
22559         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22560         diagnostic when .prev-version does not exist.
22561         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22562         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22563         nonexistent cfg.mk.
22564         Suggestions from Simon Josefsson.
22565
22566 2009-07-25  Bruno Haible  <bruno@clisp.org>
22567
22568         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22569         defined as macros. Needed on QNX 6.4.1.
22570         Reported by Matt Kraai <mkraai@beckman.com>.
22571
22572 2009-07-23  Jim Meyering  <meyering@redhat.com>
22573
22574         maint.mk: invoke "make dist" with a working value of XZ_OPT
22575         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22576
22577 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22578
22579         Make fseeko.c compile on QNX.
22580         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22581
22582 2009-07-22  Peter Simons  <simons@cryp.to>
22583
22584         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22585         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22586         * lib/md4.h: Likewise.
22587         * lib/md5.h: Likewise.
22588         * lib/sha1.h: Likewise.
22589         * lib/sha256.h: Likewise.
22590         * lib/sha512.h: Likewise.
22591
22592         tests-sha1: don't assign literal string to 'char *' variable
22593         * tests/test-sha1.c (main): Declare locals with "const" to match
22594         attributes of the right hand side.
22595
22596 2009-07-21  Eric Blake  <ebb9@byu.net>
22597
22598         dup2: fix more mingw problems
22599         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22600         fd to itself.
22601         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22602         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22603         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22604         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22605         care of mingw bugs.
22606
22607 2009-07-21  Jim Meyering  <meyering@redhat.com>
22608
22609         vc-list-files: avoid failure when /bin/sh is dash
22610         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22611         On some Debian based systems, /bin/sh is a symlink to dash, and running
22612         this command would omit the "/" following each 'tests' prefix:
22613           dash -x build-aux/vc-list-files -C . tests
22614         That is because bash and dash work differently:
22615           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22616           bash ok
22617           dash odd
22618
22619 2009-07-21  Eric Blake  <ebb9@byu.net>
22620
22621         dup2-tests: test previous patch
22622         * modules/dup2-tests: New file.
22623         * tests/test-dup2.c: Likewise.
22624         * tests/test-open.c (main): Avoid unspecified behavior.
22625         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22626         test.
22627
22628         dup2: work around mingw and cygwin 1.5 bug
22629         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22631         * modules/unistd (Makefile.am): Substitute it.
22632         * lib/unistd.in.h (dup2): Declare the replacement.
22633         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22634         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22635         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22636         * modules/execute (Depends-on): Add dup2.
22637         * modules/fseterr (Depends-on): Likewise.
22638         * modules/pipe (Depends-on): Likewise.
22639         * modules/posix_spawn-internal (Depends-on): Likewise.
22640
22641 2009-07-21  Bruno Haible  <bruno@clisp.org>
22642
22643         * modules/.gitattributes: New file.
22644
22645 2009-07-20  Bruno Haible  <bruno@clisp.org>
22646
22647         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22648         (main): Use it.
22649
22650 2009-07-20  Eric Blake  <ebb9@byu.net>
22651
22652         test-pipe: make a bit more robust.
22653         * tests/test-pipe.c (myerr): Allow error messages regardless of
22654         what we do to stderr.
22655         (test_pipe): Rearrange to avoid deadlock.
22656         (child_main): Try a larger read, to ensure we avoided deadlock.
22657         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22658         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22659         if misused.
22660
22661 2009-07-19  Jim Meyering  <meyering@redhat.com>
22662
22663         fts: avoid false-positive cycle-detection
22664         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22665         for each new command line argument.
22666
22667 2009-07-19  Bruno Haible  <bruno@clisp.org>
22668
22669         Fix build error on mingw with the modules sys_select and unistd.
22670         * modules/acl-tests (Depends-on): Add close.
22671         * modules/binary-io-tests (Depends-on): Likewise.
22672         * modules/closein-tests (Depends-on): Likewise.
22673         * modules/flock-tests (Depends-on): Likewise.
22674         * modules/fsync-tests (Depends-on): Likewise.
22675         * modules/lseek-tests (Depends-on): Likewise.
22676         * modules/pipe-tests (Depends-on): Likewise.
22677         * modules/posix_spawn-tests (Depends-on): Likewise.
22678         * modules/posix_spawnp-tests (Depends-on): Likewise.
22679         * modules/stat-time-tests (Depends-on): Likewise.
22680         * modules/yesno-tests (Depends-on): Likewise.
22681
22682 2009-07-19  Bruno Haible  <bruno@clisp.org>
22683
22684         Unify conditionals.
22685         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22686         macros, not at the compiler macros.
22687         * lib/pipe.c: Likewise.
22688         * lib/execute.c: Likewise.
22689         * lib/spawni.c: Likewise.
22690
22691 2009-07-19  Bruno Haible  <bruno@clisp.org>
22692
22693         Fix handling of closed stdin/stdout/stderr on mingw.
22694         * lib/w32spawn.h: Include unistd.h.
22695         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22696         file descriptor with O_NOINHERIT flag.
22697         (fd_safer_noinherit): New function, based on fd-safer.c.
22698         (dup_safer_noinherit): New function, based on dup-safer.c.
22699         (undup_safer_noinherit): New function.
22700         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22701         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22702         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22703         instead of fd_safer.
22704         * tests/test-pipe.c: Include <windows.h>.
22705         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22706
22707         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22708         from main.
22709         (test_pipe): Pass an extra argument for disambiguation.
22710         (main): Invoke parent_main or child_main.
22711
22712         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22713         consistently.
22714
22715 2009-07-18  Eric Blake  <ebb9@byu.net>
22716
22717         test-pipe: fix mingw build
22718         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22719
22720 2009-07-18  Bruno Haible  <bruno@clisp.org>
22721
22722         * modules/pipe-tests (Makefile.am): Fix typo.
22723
22724 2009-07-18  Eric Blake  <ebb9@byu.net>
22725
22726         error: fix mingw build
22727         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22728         Reported by Bruno Haible.
22729
22730         error: avoid undefined use of stdout
22731         * lib/error.c (error, error_at_line): Check that fd 1 is open
22732         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22733         is handling faults and the close_stdout module wants to report the
22734         detection of closed stdout as an error.
22735
22736 2009-07-17  Eric Blake  <ebb9@byu.net>
22737
22738         pipe: be robust in face of closed fds
22739         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22740         should cause child to misbehave.
22741         * modules/pipe-tests: New module.
22742         * tests/test-pipe.c: New file.
22743         * tests/test-pipe.sh: New file.
22744         Reported by Akim Demaille.
22745
22746 2009-07-14  Bruno Haible  <bruno@clisp.org>
22747
22748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22749         Reported by anonymous kc.
22750
22751 2009-07-07  Jim Meyering  <meyering@redhat.com>
22752
22753         maint.mk: don't look for translatable strings in *.m4 or *.mk
22754         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22755         when searching for translatable strings.
22756
22757 2009-07-05  Jim Meyering  <meyering@redhat.com>
22758
22759         remove superfluous parentheses in STREQ definition
22760         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22761         * lib/getugroups.c (STREQ): Likewise.
22762         * lib/fnmatch.c (STREQ): Likewise.
22763         Spotted by Bruno Haible.
22764
22765 2009-07-04  Jim Meyering  <meyering@redhat.com>
22766
22767         argv-iter: new module
22768         * MODULES.html.sh: Add argv-iter.
22769         * lib/argv-iter.c, lib/argv-iter.h: New files.
22770         * modules/argv-iter: New file.
22771         * modules/argv-iter-tests: New file.
22772         * tests/test-argv-iter.c: Test it.
22773
22774 2009-07-04  Bruno Haible  <bruno@clisp.org>
22775
22776         Fix assertion.
22777         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22778         contains more exact copies of a given entry than file2, leave the extra
22779         copies unpaired rather than aborting.
22780         Reported by Eric Blake.
22781
22782 2009-07-02  Bruno Haible  <bruno@clisp.org>
22783
22784         Speedup git-merge-changelog for git cherry-pick.
22785         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22786         (entries_mapping_get): New function, extracted from compute_mapping.
22787         (entries_mapping_reverse_get): New function.
22788         (compute_mapping): Add a 'full' argument. Return the result in a
22789         'struct entries_mapping'.
22790         (main): Update. Access the mappings through entries_mapping_get.
22791         Reported by Eric Blake.
22792
22793 2009-07-02  Bruno Haible  <bruno@clisp.org>
22794
22795         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22796         best_i.
22797
22798 2009-07-02  Bruno Haible  <bruno@clisp.org>
22799
22800         Speed up approximate search for matching ChangeLog entries.
22801         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22802         argument. Call fstrcmp_bounded instead of fstrcmp.
22803         (compute_mapping, try_split_merged_entry, main): Update callers.
22804
22805 2009-07-02  Bruno Haible  <bruno@clisp.org>
22806
22807         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22808
22809 2009-06-30  Bruno Haible  <bruno@clisp.org>
22810
22811         Reduce the number of uc_is_cased calls.
22812         * lib/unicase.h (casing_suffix_context_t): Add
22813         'first_char_except_ignorable' field.
22814         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22815         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22816         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22817         Update initializer.
22818         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22819         case-ignorable characters.
22820         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22821         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22822         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22823         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22824         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22825
22826 2009-06-30  Bruno Haible  <bruno@clisp.org>
22827
22828         Tests for module 'unicase/ignorable'.
22829         * modules/unicase/ignorable-tests: New file.
22830         * tests/unicase/test-ignorable.c: New file, generated by
22831         gen-uni-tables.
22832
22833         Tests for module 'unicase/cased'.
22834         * modules/unicase/cased-tests: New file.
22835         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22836         * tests/unicase/test-predicate-part1.h: New file, derived from
22837         tests/unictype/test-predicate-part1.h.
22838         * tests/unicase/test-predicate-part2.h: New file, same as
22839         tests/unictype/test-predicate-part2.h.
22840
22841         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22842         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22843         (output_casing_properties): New function.
22844         (main): Call it.
22845         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22846         * lib/unicase/cased.c: Include unictype/bitmap.h.
22847         (uc_is_cased): Define through a bitmap lookup.
22848         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22849         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22850         (uc_is_case_ignorable): Define through a bitmap lookup.
22851         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22852         lib/unictype/bitmap.h.
22853         (Depends-on): Add inline. Clean up.
22854         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22855         lib/unictype/bitmap.h.
22856         (Depends-on): Add inline. Clean up.
22857         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22858         recognition.
22859         * tests/unicase/test-u16-tolower.c (main): Likewise.
22860         * tests/unicase/test-u32-tolower.c (main): Likewise.
22861
22862 2009-06-30  Bruno Haible  <bruno@clisp.org>
22863
22864         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22865         * lib/unicase/u16-casemap.c: Likewise.
22866         * lib/unicase/u32-casemap.c: Likewise.
22867
22868 2009-06-29  Bruno Haible  <bruno@clisp.org>
22869
22870         Define u32_casefold as a wrapper around u32_ct_casefold.
22871         * lib/unicase/u32-casefold.c: Update.
22872         * modules/unicase/u32-casefold (Depends-on): Add
22873         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22874         unicase/empty-suffix-context. Clean up.
22875
22876         Define u16_casefold as a wrapper around u16_ct_casefold.
22877         * lib/unicase/u16-casefold.c: Update.
22878         * modules/unicase/u16-casefold (Depends-on): Add
22879         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22880         unicase/empty-suffix-context. Clean up.
22881
22882         Define u8_casefold as a wrapper around u8_ct_casefold.
22883         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22884         * lib/unicase/u8-casefold.c: Update.
22885         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22886         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22887
22888         Define u32_totitle as a wrapper around u32_ct_totitle.
22889         * lib/unicase/u32-totitle.c: Update.
22890         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22891         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22892
22893         Define u16_totitle as a wrapper around u16_ct_totitle.
22894         * lib/unicase/u16-totitle.c: Update.
22895         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22896         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22897
22898         Define u8_totitle as a wrapper around u8_ct_totitle.
22899         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22900         functions.
22901         (FUNC): Delegate to U_CT_TOTITLE.
22902         * lib/unicase/u8-totitle.c: Update.
22903         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22904         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22905
22906         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22907         invocation.
22908         * modules/unicase/u32-tolower (Depends-on): Add
22909         unicase/empty-prefix-context, unicase/empty-suffix-context.
22910
22911         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22912         invocation.
22913         * modules/unicase/u16-tolower (Depends-on): Add
22914         unicase/empty-prefix-context, unicase/empty-suffix-context.
22915
22916         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22917         * modules/unicase/u8-tolower (Depends-on): Add
22918         unicase/empty-prefix-context, unicase/empty-suffix-context.
22919
22920         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22921         invocation.
22922         * modules/unicase/u32-toupper (Depends-on): Add
22923         unicase/empty-prefix-context, unicase/empty-suffix-context.
22924
22925         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22926         invocation.
22927         * modules/unicase/u16-toupper (Depends-on): Add
22928         unicase/empty-prefix-context, unicase/empty-suffix-context.
22929
22930         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22931         * modules/unicase/u8-toupper (Depends-on): Add
22932         unicase/empty-prefix-context, unicase/empty-suffix-context.
22933
22934         New module 'unicase/u32-ct-casefold'.
22935         * lib/unicase/u32-ct-casefold.c: New file.
22936         * modules/unicase/u32-ct-casefold: New file.
22937
22938         New module 'unicase/u16-ct-casefold'.
22939         * lib/unicase/u16-ct-casefold.c: New file.
22940         * modules/unicase/u16-ct-casefold: New file.
22941
22942         New module 'unicase/u8-ct-casefold'.
22943         * lib/unicase/u8-ct-casefold.c: New file.
22944         * lib/unicase/u-ct-casefold.h: New file, derived from
22945         lib/unicase/u-casefold.h.
22946         * modules/unicase/u8-ct-casefold: New file.
22947
22948         New module 'unicase/u32-ct-totitle'.
22949         * lib/unicase/u32-ct-totitle.c: New file.
22950         * modules/unicase/u32-ct-totitle: New file.
22951
22952         New module 'unicase/u16-ct-totitle'.
22953         * lib/unicase/u16-ct-totitle.c: New file.
22954         * modules/unicase/u16-ct-totitle: New file.
22955
22956         New module 'unicase/u8-ct-totitle'.
22957         * lib/unicase/u8-ct-totitle.c: New file.
22958         * lib/unicase/u-ct-totitle.h: New file, derived from
22959         lib/unicase/u-totitle.h.
22960         * modules/unicase/u8-ct-totitle: New file.
22961
22962         New module 'unicase/u32-ct-tolower'.
22963         * lib/unicase/u32-ct-tolower.c: New file.
22964         * modules/unicase/u32-ct-tolower: New file.
22965
22966         New module 'unicase/u16-ct-tolower'.
22967         * lib/unicase/u16-ct-tolower.c: New file.
22968         * modules/unicase/u16-ct-tolower: New file.
22969
22970         New module 'unicase/u8-ct-tolower'.
22971         * lib/unicase/u8-ct-tolower.c: New file.
22972         * modules/unicase/u8-ct-tolower: New file.
22973
22974         New module 'unicase/u32-ct-toupper'.
22975         * lib/unicase/u32-ct-toupper.c: New file.
22976         * modules/unicase/u32-ct-toupper: New file.
22977
22978         New module 'unicase/u16-ct-toupper'.
22979         * lib/unicase/u16-ct-toupper.c: New file.
22980         * modules/unicase/u16-ct-toupper: New file.
22981
22982         New module 'unicase/u8-ct-toupper'.
22983         * lib/unicase/u8-ct-toupper.c: New file.
22984         * modules/unicase/u8-ct-toupper: New file.
22985
22986         Add context arguments to u*_casemap functions.
22987         * lib/unicase/unicasemap.h: Include unicase.h.
22988         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22989         suffix_context arguments.
22990         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22991         functions.
22992         (FUNC): Add prefix_context and suffix_context arguments. Use
22993         uc_is_cased and uc_is_case_ignorable.
22994         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22995         * lib/unicase/u16-casemap.c: Likewise.
22996         * lib/unicase/u32-casemap.c: Likewise.
22997         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22998         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22999         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
23000         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23001         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
23002         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23003
23004         New module 'unicase/u32-suffix-context'.
23005         * lib/unicase/u32-suffix-context.c: New file.
23006         * modules/unicase/u32-suffix-context: New file.
23007
23008         New module 'unicase/u16-suffix-context'.
23009         * lib/unicase/u16-suffix-context.c: New file.
23010         * modules/unicase/u16-suffix-context: New file.
23011
23012         New module 'unicase/u8-suffix-context'.
23013         * lib/unicase/u8-suffix-context.c: New file.
23014         * lib/unicase/u-suffix-context.h: New file.
23015         * modules/unicase/u8-suffix-context: New file.
23016
23017         New module 'unicase/empty-suffix-context'.
23018         * lib/unicase/empty-suffix-context.c: New file.
23019         * modules/unicase/empty-suffix-context: New file.
23020
23021         New module 'unicase/u32-prefix-context'.
23022         * lib/unicase/u32-prefix-context.c: New file.
23023         * modules/unicase/u32-prefix-context: New file.
23024
23025         New module 'unicase/u16-prefix-context'.
23026         * lib/unicase/u16-prefix-context.c: New file.
23027         * modules/unicase/u16-prefix-context: New file.
23028
23029         New module 'unicase/u8-prefix-context'.
23030         * lib/unicase/u8-prefix-context.c: New file.
23031         * lib/unicase/u-prefix-context.h: New file.
23032         * lib/unicase/context.h: New file.
23033         * modules/unicase/u8-prefix-context: New file.
23034
23035         New module 'unicase/empty-prefix-context'.
23036         * lib/unicase/empty-prefix-context.c: New file.
23037         * modules/unicase/empty-prefix-context: New file.
23038
23039         New module 'unicase/ignorable'.
23040         * lib/unicase/ignorable.c: New file.
23041         * modules/unicase/ignorable: New file.
23042
23043         New module 'unicase/cased'.
23044         * lib/unicase/caseprop.h: New file.
23045         * lib/unicase/cased.c: New file.
23046         * modules/unicase/cased: New file.
23047
23048         New functions for case mapping of substrings.
23049         * lib/unicase.h (casing_prefix_context_t): New type.
23050         (unicase_empty_prefix_context): New variable.
23051         (u8_casing_prefix_context, u16_casing_prefix_context,
23052         u32_casing_prefix_context, u8_casing_prefixes_context,
23053         u16_casing_prefixes_context, u32_casing_prefixes_context): New
23054         declarations.
23055         (casing_suffix_context_t): New type.
23056         (unicase_empty_suffix_context): New variable.
23057         (u8_casing_suffix_context, u16_casing_suffix_context,
23058         u32_casing_suffix_context, u8_casing_suffixes_context,
23059         u16_casing_suffixes_context, u32_casing_suffixes_context,
23060         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
23061         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
23062         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
23063         declarations.
23064
23065 2009-06-28  Jim Meyering  <meyering@redhat.com>
23066
23067         boostrap: indent only with spaces
23068         * build-aux/bootstrap: Indent only with spaces, never TABs.
23069
23070         bootstrap: split long lines
23071         * build-aux/bootstrap: Keep line length < 80.
23072
23073         bootstrap: sync from coreutils
23074         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23075         just as autoreconf does.  Verify a list of prerequisite
23076         package-name,version-number pairs if defined in bootstrap.conf.
23077         Refer to README-prereq, if prerequisites are not satisfied.
23078
23079 2009-06-27  Eric Blake  <ebb9@byu.net>
23080
23081         tests: add test for bogus NULL definition
23082         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23083         * tests/test-stdlib.c: Likewise.
23084         * tests/test-string.c: Likewise.
23085         * tests/test-locale.c: Likewise.
23086         * tests/test-unistd.c: Likewise.
23087         * modules/stdio-tests (Depends-on): Add verify.
23088         * modules/stdlib-tests (Depends-on): Likewise.
23089         * modules/string-tests (Depends-on): Likewise.
23090         * modules/locale-tests (Depends-on): Likewise.
23091         * modules/unistd-tests (Depends-on): Likewise.
23092
23093 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23094
23095         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23096         self-explaining comment.
23097         * m4/selinux-selinux-h: Update serial.
23098         (gl_LIBSELINUX): New macro, adding a warning for missing development
23099         packages to code extracted from...
23100         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23101         Add warning for missing development packages here, too.
23102
23103 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23104
23105         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23106
23107 2009-06-25  Eric Blake  <ebb9@byu.net>
23108
23109         version-etc: fix regression
23110         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23111         gcc.
23112         (version_etc): Use it, to catch bugs with trailing NULL.
23113         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23114         (version_etc_va): Fix logic bug.
23115         * modules/version-etc-tests: Add test.
23116         * tests/test-version-etc.c: New file.
23117         * tests/test-version-etc.sh: Likewise.
23118
23119 2009-06-25  Sam Steingold  <sds@gnu.org>
23120
23121         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23122         mbtowc declaration.
23123
23124 2009-06-25  Eric Blake  <ebb9@byu.net>
23125
23126         fpurge: migrate into <stdio.h>
23127         * lib/fpurge.h: Delete...
23128         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23129         * lib/fpurge.c (fpurge): Change declaring header.
23130         * modules/fpurge (Files): Drop deleted file.
23131         (Depends-on): Add stdio.
23132         (configure.ac): Set witness.
23133         * modules/stdio (Makefile.am): Support fpurge macros.
23134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23135         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
23136         * lib/fflush.c: Update client.
23137         * tests/test-fpurge.c: Likewise.
23138         * NEWS: Mention the change.
23139
23140 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23141
23142         * lib/argp-version-etc.c (program_authors): Add const
23143         qualifier.
23144         * lib/version-etc.c: Fix typos in the comments.
23145         * modules/argp-version-etc: Depends on version-etc.
23146
23147 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23148
23149         argp-version-etc: new module.
23150
23151         * lib/argp-version-etc.c: New file.
23152         * lib/argp-version-etc.h: New file.
23153         * modules/argp-version-etc: New file.
23154         * modules/argp-version-etc-tests: New file.
23155         * tests/test-argp-version-etc.c: New test.
23156         * tests/test-argp-version-etc-1.sh: New test.
23157
23158 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23159
23160         Provide additional interfaces and documentation for version-etc
23161         module.
23162
23163         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
23164         interfaces.
23165         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
23166         prototypes.
23167
23168 2009-06-24  Bruno Haible  <bruno@clisp.org>
23169
23170         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
23171         HAVE_LIB${NAME} macro.
23172         Reported by Sam Steingold <sds@gnu.org>.
23173
23174 2009-06-23  Simon Josefsson  <simon@josefsson.org>
23175
23176         * modules/hash-tests (test_hash_LDADD): Link to libintl when
23177         needed.
23178
23179 2009-06-21  Bruno Haible  <bruno@clisp.org>
23180
23181         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
23182         work.
23183         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
23184         together with LIB${NAME}, LTLIB${NAME}.
23185         Reported by Sam Steingold <sds@gnu.org>.
23186
23187 2009-06-20  Jim Meyering  <meyering@redhat.com>
23188
23189         tests: make sc_require_test_exit_idiom more generic
23190         * top/maint.mk (Exit_witness_file): New overridable variable.
23191         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
23192         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
23193
23194 2009-06-19  Jim Meyering  <meyering@redhat.com>
23195
23196         hash: reverse order of src/dst parameters in an internal interface
23197         * lib/hash.c (transfer_entries): Reverse order of parameters to
23198         put DST before SRC.  Adjust callers.
23199
23200         tests: test-hash: avoid wholesale duplication
23201         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
23202         Instead, use a loop and add a single conditional.
23203
23204         tests: test-hash: allow seed selection via a command line argument
23205         * tests/test-hash.c (get_seed): New function.
23206         (main): Use it.
23207
23208 2009-06-19  Eric Blake  <ebb9@byu.net>
23209
23210         hash: avoid memory leak on allocation failure
23211         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
23212         failure.  Factor repeated algorithm...
23213         (transfer_entries): ...into new helper routine.
23214         (hash_delete): React to hash_rehash return value.
23215
23216         hash: reduce memory pressure in hash_rehash no-op case
23217         * lib/hash.c (next_prime): Avoid overflow.
23218         (hash_initialize): Factor bucket size computation...
23219         (compute_bucket_size): ...into new helper function.
23220         (hash_rehash): Use new function and open coding to reduce memory
23221         pressure, and avoid a memory leak in USE_OBSTACK code.
23222         Reported by Jim Meyering.
23223
23224 2009-06-18  Eric Blake  <ebb9@byu.net>
23225
23226         hash: make rotation more obvious
23227         * modules/hash (Depends-on): Add bitrotate and stdint.
23228         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
23229         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
23230         (SIZE_MAX): Rely on headers for definition.
23231         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
23232         (raw_hasher): Use rotr_sz.
23233         Suggested by Jim Meyering.
23234
23235         hash: fix memory leak in last patch
23236         * lib/hash.c (hash_rehash): Avoid memory leak.
23237
23238         hash: avoid no-op rehashing
23239         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
23240
23241         hash: provide default callback functions
23242         * lib/hash.c (raw_hasher, raw_comparator): New functions.
23243         (hash_initialize): Use them as defaults.
23244         * tests/test-hash.c (main): Test this.
23245
23246         hash: minor optimization
23247         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
23248         when possible.
23249         (hash_initialize): Document this promise.
23250         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
23251         * tests/test-hash.c (hash_compare_strings): Test this.
23252
23253 2009-06-18  Bruno Haible  <bruno@clisp.org>
23254
23255         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23256         going to be replaced anyway.
23257
23258 2009-06-18  Bruno Haible  <bruno@clisp.org>
23259
23260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23261         in one place.
23262         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23263         be replaced anyway.
23264
23265 2009-06-18  Eric Blake  <ebb9@byu.net>
23266
23267         hash: check for resize before insertion
23268         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23269         threshold before insertion, so that a pathological hash_rehash
23270         that fills every bucket can still trigger another rehash.
23271
23272 2009-06-18  Jim Meyering  <meyering@redhat.com>
23273
23274         hash-tests: add a loop around the small tests
23275         * tests/test-hash.c (main): Repeat small tests with selected
23276         small initial table sizes.
23277
23278 2009-06-17  Eric Blake  <ebb9@byu.net>
23279
23280         hash: minor cleanups
23281         * lib/hash.h (hash_entry): Make opaque, by moving...
23282         * lib/hash.c (hash_entry): ...here.
23283         (hash_insert): Clarify restrictions on what can be inserted.
23284         (hash_get_next): Clarify when it is safe to remove an element
23285         during traversal.
23286         (check_tuning): Skip verification when tuning is known safe.
23287         (hash_initialize): Clarify restrictions on tuning.
23288
23289 2009-06-17  Jim Meyering  <jim@meyering.net>
23290         and Eric Blake  <ebb9@byu.net>
23291
23292         hash-tests: new module
23293         * modules/hash-tests: New file.
23294         * tests/test-hash.c: New file.
23295
23296 2009-06-17  Eric Blake  <ebb9@byu.net>
23297
23298         strstr-simple: document new module
23299         * MODULES.html.sh: Document new module.
23300
23301         strstr, strcasestr: replace on platforms with broken memchr
23302         * modules/strstr: Split into...
23303         * modules/strstr-simple: ...new module that does not care about
23304         performance, but does care about glibc bug.
23305         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23306         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23307         if platform memchr is broken, per Debian bug 521737.
23308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23309         memchr.
23310         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23311         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23312         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23313         * modules/mountlist (Depends-on): Add strstr-simple.
23314         * modules/gen-uni-tables (Depends-on): Likewise.
23315         * modules/argz (Depends-on): Add strstr.
23316
23317 2009-06-17  Bruno Haible  <bruno@clisp.org>
23318
23319         * modules/posix_spawn-internal (Depends-on): Add errno.
23320
23321 2009-06-17  Bruno Haible  <bruno@clisp.org>
23322
23323         Define missing ESTALE on Interix 3.5.
23324         * lib/errno.in.h (ESTALE): Assign a value if missing.
23325         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23326         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23327         missing.
23328         * doc/posix-headers/errno.texi: Mention the Interix bug.
23329         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23330
23331 2009-06-15  Eric Blake  <ebb9@byu.net>
23332
23333         memchr, memchr2: add valgrind exception
23334         * lib/memchr.valgrind: New file.
23335         * lib/memchr2.valgrind: New file.
23336         * modules/memchr (Files): Distribute valgrind file.
23337         * modules/memchr2 (Files): Likewise.
23338
23339         docs: memchr is no longer obsolete
23340         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23341         * lib/string.in.h (memchr): Simplify logic.
23342
23343 2009-06-14  Jim Meyering  <meyering@redhat.com>
23344
23345         link-follow: fix the "checking..." message to not mention trailing slash
23346         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23347         never considered trailing slashes.
23348
23349 2009-06-14  Bruno Haible  <bruno@clisp.org>
23350
23351         * m4/memchr.m4: Mention also the bug on IA-64.
23352         * doc/posix-functions/memchr.texi: Likewise.
23353
23354 2009-06-12  Eric Blake  <ebb9@byu.net>
23355
23356         memchr: detect broken x86_64 and alpha implementations
23357         * modules/memchr-tests (Depends-on): Move mmap detection...
23358         * modules/memchr (Depends-on): ...here.
23359         (configure.ac): Set indicator.
23360         * lib/string.in.h (memchr): Declare replacement.
23361         * modules/string (Makefile.am): Trigger replacement.
23362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23363         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23364         bugs.
23365         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23366         * modules/getpagesize (License): Relax license.
23367
23368 2009-06-11  Bruno Haible  <bruno@clisp.org>
23369
23370         * lib/idpriv.h: Add more references.
23371
23372 2009-06-08  Bruno Haible  <bruno@clisp.org>
23373
23374         Tests for module 'idpriv-droptemp'.
23375         * modules/idpriv-droptemp-tests: New file.
23376         * tests/test-idpriv-droptemp.sh: New file.
23377         * tests/test-idpriv-droptemp.su.sh: New file.
23378         * tests/test-idpriv-droptemp.c: New file.
23379
23380         New module 'idpriv-droptemp'.
23381         * lib/idpriv-droptemp.c: New file.
23382         * modules/idpriv-droptemp: New file.
23383
23384 2009-06-08  Bruno Haible  <bruno@clisp.org>
23385
23386         Tests for module 'idpriv-drop'.
23387         * modules/idpriv-drop-tests: New file.
23388         * tests/test-idpriv-drop.sh: New file.
23389         * tests/test-idpriv-drop.su.sh: New file.
23390         * tests/test-idpriv-drop.c: New file.
23391
23392         New module 'idpriv-drop'.
23393         * lib/idpriv.h: New file.
23394         * lib-idpriv-drop.c: New file.
23395         * m4/idpriv.m4: New file.
23396         * modules/idpriv-drop: New file.
23397
23398 2009-06-08  Bruno Haible  <bruno@clisp.org>
23399
23400         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23407
23408 2009-06-08  Eric Blake  <ebb9@byu.net>
23409
23410         test-strstr: use memory fence, when possible
23411         * tests/test-strstr.c (main): Use memory fence, in order to be
23412         more likely to trigger Debian bug 521737.
23413         * modules/strstr-tests (Files): Pull in additional files.
23414
23415         memchr: no longer obsolete, for wider field testing
23416         * modules/memchr (Status, Notice): Delete, this module is no
23417         longer obsolete.
23418         * modules/vasnprintf (Depends-on): Add memchr.
23419
23420 2009-06-07  Jim Meyering  <meyering@redhat.com>
23421
23422         hash: declare some functions with the warn_unused_result attribute
23423         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23424
23425 2009-06-07  Bruno Haible  <bruno@clisp.org>
23426
23427         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23428         Reported by Eric Blake.
23429
23430 2009-06-06  Eric Blake  <ebb9@byu.net>
23431
23432         test-alignof: fix typo with long double
23433         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23434         compiler error.
23435
23436 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23437
23438         Escape non-texinfo { and }s.
23439         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23440         markup error.
23441
23442 2009-06-04  Jim Meyering  <meyering@redhat.com>
23443
23444         gitlog-to-changelog: don't infloop on an empty commit log
23445         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23446         Reported by Boris Petersen <transacid@centerim.org>.
23447
23448 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23449
23450         version-etc: extend for packagers
23451         Add three new configure options, intended for packagers:
23452           --with-packager="packager name"
23453           --with-packager-version="packager-specific version"
23454           --with-packager-bug-reports="packager bug reporting"
23455         An example with coreutils:
23456           $ ./configure \
23457             --with-packager=Gentoo \
23458             --with-packager-bug-report=http://bugs.gentoo.org/ \
23459             --with-packager-version="patchset 1.6"
23460           $ ./src/ls --version | head -n2
23461           ls (GNU coreutils) 7.1-dirty
23462           Packaged by Gentoo (patchset 1.6)
23463         Note that the bug reporting info via --help doesn't show up because
23464         coreutils uses its own custom emit_bug_reporting_address() implementation
23465         in src/system.h.  If it didn't, it'd look like:
23466           $ ./src/ls --help | tail -n4
23467           Report bugs to <bug-coreutils@gnu.org>.
23468           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23469           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23470           General help using GNU software: <http://www.gnu.org/gethelp/>.
23471         * lib/version-etc.c: Print new information, if provided.
23472         * m4/version-etc.m4: New file.
23473         * modules/version-etc (Files): Add m4/version-etc.m4.
23474         (configure.ac): Add gl_VERSION_ETC.
23475
23476 2009-05-31  Bruno Haible  <bruno@clisp.org>
23477
23478         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23479         and 'int64_t'.
23480         * modules/alignof-tests (Dependencies): Add stdint.
23481         Reported by Eric Blake.
23482
23483 2009-05-31  Bruno Haible  <bruno@clisp.org>
23484
23485         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23486         restriction due to compiler bugs.
23487         Reported by Eric Blake.
23488
23489 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23490             Bruno Haible  <bruno@clisp.org>
23491
23492         Fix test-alignof failure.
23493         * lib/alignof.h (alignof_slot): New macro.
23494         (alignof_type): New macro, with the same semantics as the previous
23495         'alignof'.
23496         (alignof): Alias to alignof_slot.
23497         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23498         check that the results are usable as constant expressions.
23499
23500 2009-05-31  Bruno Haible  <bruno@clisp.org>
23501
23502         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23503         * tests/test-memchr.c (main): Check that memchr does not read past the
23504         first occurrence of the byte.
23505         * tests/test-strstr.c (main): Update comment.
23506         Suggested by Eric Blake.
23507
23508 2009-05-30  Bruno Haible  <bruno@clisp.org>
23509
23510         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23511         detail how to use dumpbin.
23512         Reported by David Byron <dbyron@dbyron.com>.
23513
23514 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23515
23516         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23517
23518 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23519
23520         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23521
23522 2009-05-28  Bruno Haible  <bruno@clisp.org>
23523
23524         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23525         build-aux/ files.
23526
23527 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23528
23529         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23530
23531 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23532
23533         * gnulib-tool (sed_transform_main_lib_file)
23534         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23535         regexps.
23536
23537 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23538
23539         * tests/test-strstr.c: Add another self-test.
23540         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23541         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23542
23543 2009-05-23  Bruno Haible  <bruno@clisp.org>
23544
23545         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23546         change.
23547
23548 2009-05-21  Bruno Haible  <bruno@clisp.org>
23549
23550         Simplify use of mode_t varargs.
23551         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23552         uses 'mode_t' or 'int'.
23553         * lib/openat.c (openat): Likewise.
23554         * lib/open-safer.c (open_safer): Likewise.
23555         * m4/mode_t.m4: New file.
23556         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23557         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23558         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23559         * modules/open (Files): Add m4/mode_t.m4.
23560         * modules/openat (Files): Likewise.
23561         * modules/fcntl-safer (Files): Likewise.
23562         Suggested by Eric Blake.
23563
23564 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23565
23566         * doc/glibc-functions/fallocate.texi: New file.
23567         * doc/gnulib.texi: Include it.
23568
23569 2009-05-21  Eric Blake  <ebb9@byu.net>
23570             Bruno Haible  <bruno@clisp.org>
23571
23572         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23573         invocations.
23574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23575
23576 2009-05-21  Eric Blake  <ebb9@byu.net>
23577             Bruno Haible  <bruno@clisp.org>
23578
23579         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23580         include_next. Fix of 2008-11-20 commit.
23581         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23582         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23583         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23584         NEXT_MATH_H.
23585         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23586         instead of NEXT_MATH_H.
23587
23588 2009-05-21  Bruno Haible  <bruno@clisp.org>
23589
23590         Avoid redefinition warnings for SIZE_MAX.
23591         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23592         Reported by Simon Josefsson.
23593
23594 2009-05-21  Bruno Haible  <bruno@clisp.org>
23595
23596         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23597         AC_CACHE_VAL.
23598
23599 2009-05-20  Bruno Haible  <bruno@clisp.org>
23600
23601         Make zeroptr.h work on mingw.
23602         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23603         mprotect.
23604         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23605         * modules/memchr2-tests (configure.ac): Likewise.
23606         * modules/memcmp-tests (configure.ac): Likewise.
23607         * modules/memmem-tests (configure.ac): Likewise.
23608         * modules/memrchr-tests (configure.ac): Likewise.
23609         Reported by Simon Josefsson.
23610
23611 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23612
23613         * tests/test-glob.c: Include string.h for strcmp prototype.
23614
23615 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23616
23617         * modules/getdelim (Depends-on): Add explicit stdint, although it
23618         was implicitly already pulled in via realloc-posix.
23619         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23620
23621 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23622
23623         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23624         G. Christensen" <tgc@jupiterrise.com>.
23625         * m4/sys_socket_h.m4: Check for sa_family_t.
23626         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23627         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23628         * tests/test-sys_socket.c: Check that sa_family_t works.
23629
23630 2009-05-18  Eric Blake  <ebb9@byu.net>
23631
23632         maint.mk: allow gnulib_dir in VPATH build
23633         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23634
23635 2009-05-15  Jim Meyering  <meyering@redhat.com>
23636
23637         maint.mk: Give gnulib_dir a default definition.
23638         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23639         Thus, most packages no longer need to specify this variable in cfg.mk
23640
23641 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23642
23643         rename.m4: fix typos that would make non-mingw cross-configure fail
23644         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23645
23646 2009-05-13  Eric Blake  <ebb9@byu.net>
23647
23648         mmap-anon: avoid out-of-order autoconf expansion
23649         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23650         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23651         * modules/memchr-tests (Depends-on): Add extensions.
23652         * modules/memchr2-tests (Depends-on): Add extensions.
23653         * modules/memcmp-tests (Depends-on): Add extensions.
23654         * modules/memmem-tests (Depends-on): Add extensions.
23655         * modules/memrchr-tests (Depends-on): Add extensions.
23656
23657 2009-05-13  Bruno Haible  <bruno@clisp.org>
23658
23659         Make some tests ISO C 99 compliant.
23660         * tests/zerosize-ptr.h: New file.
23661         * tests/test-memchr.c: Include zerosize-ptr.h.
23662         (main): Use a zero-size object pointer instead of NULL.
23663         * tests/test-memchr2.c: Include zerosize-ptr.h.
23664         (main): Use a zero-size object pointer instead of NULL.
23665         * tests/test-memcmp.c: Include zerosize-ptr.h.
23666         (main): Use a zero-size object pointer instead of NULL.
23667         * tests/test-memmem.c: Include zerosize-ptr.h.
23668         (main): Use a zero-size object pointer instead of NULL.
23669         * tests/test-memrchr.c: Include zerosize-ptr.h.
23670         (main): Use a zero-size object pointer instead of NULL.
23671         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23672         m4/mmap-anon.m4.
23673         (Depends-on): Add getpagesize.
23674         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23675         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23676         m4/mmap-anon.m4.
23677         (Depends-on): Add getpagesize.
23678         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23679         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23680         m4/mmap-anon.m4.
23681         (Depends-on): Add getpagesize.
23682         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23683         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23684         m4/mmap-anon.m4.
23685         (Depends-on): Add getpagesize.
23686         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23687         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23688         m4/mmap-anon.m4.
23689         (Depends-on): Add getpagesize.
23690         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23691
23692 2009-05-12  Bruno Haible  <bruno@clisp.org>
23693
23694         Tests for module 'alignof'.
23695         * modules/alignof-tests: New file.
23696         * tests/test-alignof.c: New file.
23697
23698 2009-05-12  Bruno Haible  <bruno@clisp.org>
23699
23700         Fix alignof macro.
23701         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23702         vendor compilers that are always correct.
23703
23704 2009-05-12  Bruno Haible  <bruno@clisp.org>
23705
23706         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23707         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23708         not whether its fully works.
23709
23710 2009-05-12  Bruno Haible  <bruno@clisp.org>
23711
23712         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23713
23714 2009-05-12  Jim Meyering  <meyering@redhat.com>
23715
23716         * top/maint.mk: Adjust backslash alignment.
23717
23718 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23719
23720         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23721
23722 2009-05-11  Eric Blake  <ebb9@byu.net>
23723
23724         argp: avoid undefined behavior
23725         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23726         macros.
23727
23728 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23729
23730         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23731         user.name to prevent git commit from complaining.
23732
23733 2009-05-10  Bruno Haible  <bruno@clisp.org>
23734
23735         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23736         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23737         it rewrites every file name only once.
23738         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23739
23740 2009-05-08  Bruno Haible  <bruno@clisp.org>
23741
23742         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23743         instead of 'max'.
23744
23745 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23746
23747         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23748         sockaddr_storage test.
23749
23750 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23751
23752         * modules/sys_socket (Makefile.am): Substitute
23753         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23754         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23755         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23756         * tests/test-sys_socket.c: Check sockaddr_storage.
23757
23758 2009-05-08  Bruno Haible  <bruno@clisp.org>
23759
23760         New module 'alignof'.
23761         * lib/alignof.h: New file.
23762         * modules/alignof: New file.
23763
23764 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23765             Bruno Haible  <bruno@clisp.org>
23766
23767         Fix test-file-has-acl on FreeBSD.
23768         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23769         mask is implicitly added.
23770         * tests/test-file-has-acl.c: Include <signal.h>.
23771         (main): Terminate the test after 5 seconds.
23772         * modules/acl-tests (configure.ac): Check for alarm function.
23773
23774 2009-05-04  Bruno Haible  <bruno@clisp.org>
23775
23776         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23778         * modules/errno (configure.ac): Drop AC_REQUIRE.
23779         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23780         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23781
23782 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23783
23784         * modules/glob-tests: New module.
23785         * tests/test-glob.c: Add.
23786
23787 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23788
23789         * modules/fnmatch-tests: New module.
23790         * tests/test-fnmatch.c: Add.
23791
23792 2009-05-04  Eric Blake  <ebb9@byu.net>
23793
23794         maint: make the new no-submodule-changes rule VPATH-safe
23795         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23796
23797 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23798             Bruno Haible  <bruno@clisp.org>
23799
23800         acl: Fix infinite loop on FreeBSD.
23801         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23802         of return value from acl_get_entry.
23803         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23804         Likewise.
23805
23806 2009-05-03  Bruno Haible  <bruno@clisp.org>
23807
23808         * lib/acl-internal.h (acl_entries): Clarify return value.
23809         * lib/acl_entries.c (acl_entries): Likewise.
23810
23811 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23812
23813         Bug fix in acl module.
23814         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23815
23816 2009-05-03  Bruno Haible  <bruno@clisp.org>
23817
23818         Create gperf-generated file in the source dir, not in the build dir.
23819         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23820         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23821         * modules/unicase/locale-language (unicase/locale-languages.h):
23822         Likewise.
23823         * modules/unicase/special-casing (unicase/special-casing-table.h):
23824         Likewise.
23825         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23826         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23827         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23828         Reported by Ralf Wildenhues.
23829
23830 2009-05-03  Bruno Haible  <bruno@clisp.org>
23831
23832         * modules/fnmatch (Description, configure.ac): Taken from
23833         fnmatch-posix.
23834         * modules/fnmatch-posix: Turn into a symbolic reference to the
23835         'fnmatch' module, and deprecate.
23836         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23837
23838 2009-05-03  Bruno Haible  <bruno@clisp.org>
23839
23840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23841         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23842         Reported by Ralf Wildenhues.
23843
23844 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23845
23846         * m4/fnmatch.m4: Fix fnmatch re-define.
23847
23848 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23849
23850         priv-set: new module and tests; adapt write-any-file
23851         * lib/priv-set.c: New file.
23852         * lib/priv-set.h: New file.
23853         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23854         * lib/write-any-file.c: Simplify by using priv-set module.
23855         * m4/priv-set.m4: New file.
23856         * modules/priv-set: New file.
23857         * modules/unlinkdir: Add dependency on priv-set module.
23858         * modules/write-any-file: Likewise.
23859
23860         Tests for module 'priv-set'.
23861         * modules/priv-set-tests: New file.
23862         * tests/test-priv-set.c: New file.
23863
23864 2009-05-03  Jim Meyering  <meyering@redhat.com>
23865             Bruno Haible  <bruno@clisp.org>
23866
23867         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23868         use the converted UTF-8 variant of the name instead.
23869
23870 2009-05-03  Jim Meyering  <meyering@redhat.com>
23871
23872         tests: tighten some getdate tests
23873         * tests/test-getdate.c (main): Tighten tests: require equality,
23874         not just greater than.  Set TZ envvar to UTC0.
23875
23876 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23877
23878         getdate: correctly interpret "next monday" when run on a Monday
23879         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23880         that e.g., "next tues" (when run on a tuesday) results in a date
23881         that is one week in the future, and not today's date.
23882         I.e., add a week when the wday is the same as the current one.
23883         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23884         and earlier by Martin Bernreuther and Jan Minář.
23885         * tests/test-getdate.c (main): Check that "next DAY" is always in
23886         the future and that "last DAY" is always in the past.
23887
23888 2009-05-02  Jim Meyering  <meyering@redhat.com>
23889
23890         build: ensure that a release build fails when a submodule is unclean
23891         * top/maint.mk (no-submodule-changes): New rule.
23892         (alpha beta major): Depend on it.
23893
23894 2009-05-02  Bruno Haible  <bruno@clisp.org>
23895
23896         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23897         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23898         shell variable gl_fnmatch_required to detect which variant is
23899         requested.
23900         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23901         gl_FUNC_FNMATCH_POSIX.
23902         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23903         exclude fnmatch-posix.
23904
23905 2009-05-02  Bruno Haible  <bruno@clisp.org>
23906
23907         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23908         * modules/mbsrtowcs (License): Change to LGPLv2+.
23909         * modules/strnlen1 (License): Likewise.
23910         Reported by Simon Josefsson.
23911
23912 2009-05-02  Bruno Haible  <bruno@clisp.org>
23913
23914         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23915         "cross".
23916         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23917         gnulib-tool was called with option --source-base=lib.
23918
23919 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23920
23921         Use automake *-local hooks without commands, for extensibility.
23922         * modules/localcharset (Makefile.am): Rename install-exec-local
23923         rule to install-exec-localcharset, and make it a prerequisite of
23924         install-exec-local.  Likewise, rename the uninstall-local rule to
23925         uninstall-localcharset, and make it a prerequisite of the former.
23926
23927 2009-05-01  Bruno Haible  <bruno@clisp.org>
23928
23929         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23930         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23931         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23933         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23934         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23935         m4/locale-zh.m4, m4/codeset.m4.
23936
23937         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23938         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23939         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23940         m4/locale-zh.m4.
23941
23942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23943         REPLACE_WCRTOMB if mbstate_t must be replaced.
23944         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23945         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23946
23947 2009-05-01  Bruno Haible  <bruno@clisp.org>
23948
23949         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23950         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23951         dngettext, dcngettext, textdomain, bindtextdomain,
23952         bind_textdomain_codeset): Undefine before redefining.
23953
23954 2009-04-30  Bruno Haible  <bruno@clisp.org>
23955
23956         Fix bug introduced on 2009-04-25.
23957         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23958         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23959         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23960         is defined.
23961         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23962         is defined.
23963         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23964         is defined.
23965         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23966
23967 2009-04-28  Bruno Haible  <bruno@clisp.org>
23968
23969         Comment tweaks.
23970         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23971         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23972         * lib/unicase.h (u*_casexfrm): Likewise.
23973         Reported by Paolo Bonzini.
23974
23975 2009-04-28  Bruno Haible  <bruno@clisp.org>
23976
23977         Fix a compilation error.
23978         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23979         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23980         Reported by Jim Meyering.
23981
23982 2009-04-27  Bruno Haible  <bruno@clisp.org>
23983
23984         New module 'libunistring'.
23985         * modules/libunistring: New file.
23986         * m4/libunistring.m4: New file.
23987         * MODULES.html.sh (Unicode string functions): Add it.
23988
23989 2009-04-27  Eric Blake  <ebb9@byu.net>
23990
23991         maint.mk: allow package-specific header to provide <config.h>
23992         * top/maint.mk (sc_require_config_h): New variable.
23993         (sc_require_config_h, sc_require_config_h_first): Use it.
23994
23995 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23996
23997         * top/maint.mk (sc_avoid_if_before_free): Except
23998         useless-if-before-free script.
23999
24000 2009-04-27  Eric Blake  <ebb9@byu.net>
24001
24002         maintainer-makefile: depend on all required helper scripts
24003         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
24004         useless-if-before-free.
24005         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
24006         version, rather than assuming gnulib checkout is available.
24007         Reported by Simen Josefsson.
24008
24009 2009-04-26  Bruno Haible  <bruno@clisp.org>
24010
24011         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
24012         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
24013         "../" or "..".
24014
24015 2009-04-26  Bruno Haible  <bruno@clisp.org>
24016
24017         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
24018         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
24019         AC_LIB_HAVE_LINKFLAGS.
24020
24021 2009-04-26  Bruno Haible  <bruno@clisp.org>
24022
24023         Simplify calling convention of u*_conv_from_encoding.
24024         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24025         u32_conv_from_encoding): Expect a resultbuf argument and return the
24026         result directly as a pointer.
24027         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
24028         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
24029         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
24030         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
24031         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
24032         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24033         Update.
24034         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
24035         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
24036         * lib/vasnprintf.c (VASNPRINTF): Update.
24037         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
24038         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
24039         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
24040         * NEWS: Mention the change.
24041
24042 2009-04-26  Bruno Haible  <bruno@clisp.org>
24043
24044         Simplify calling convention of u*_conv_to_encoding.
24045         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24046         u32_conv_to_encoding): Expect a resultbuf argument and return the
24047         result directly as a pointer.
24048         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24049         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
24050         freeing scaled_offsets if mem_iconveha failed.
24051         * lib/unicase/u-casexfrm.h (FUNC): Update.
24052         * lib/uninorm/u-normxfrm.h (FUNC): Update.
24053         * lib/vasnprintf.c (VASNPRINTF): Update.
24054         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
24055         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
24056         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
24057         * NEWS: Mention the change.
24058
24059 2009-04-26  Bruno Haible  <bruno@clisp.org>
24060
24061         Avoid test failures on AIX and OSF/1.
24062         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
24063         malloc(0).
24064         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24065         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24066         Likewise.
24067         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
24068         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
24069         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
24070         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
24071         * doc/posix-functions/malloc.texi: Document the portability problem
24072         related to malloc(0).
24073
24074 2009-04-26  Bruno Haible  <bruno@clisp.org>
24075
24076         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24077         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24078         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24079
24080 2009-04-25  Bruno Haible  <bruno@clisp.org>
24081
24082         Avoid link error when creating a namespace clean library.
24083         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24084         as macro with arguments if already defined as an alias.
24085         * lib/signbitf.c (gl_signbitf): Don't undefine.
24086         * lib/signbitd.c (gl_signbitd): Don't undefine.
24087         * lib/signbitl.c (gl_signbitl): Don't undefine.
24088
24089 2009-04-25  Jim Meyering  <meyering@redhat.com>
24090
24091         vc-list-files: fix another quoting bug
24092         * build-aux/vc-list-files: Avoid sed backslash expansion
24093         of pathological directory names.
24094
24095 2009-04-25  Eric Blake  <ebb9@byu.net>
24096
24097         vc-list-files: fix shell quoting error
24098         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24099         timestamp.
24100
24101 2009-04-25  Jim Meyering  <meyering@redhat.com>
24102
24103         vc-list-files: restore lost functionality with subdir argument
24104         * build-aux/vc-list-files: When given a non-"." sub-directory
24105         argument, substitute the $dir/ prefix back onto each resulting name.
24106         Otherwise, coreutils' root_tests check would fail.
24107
24108 2009-04-24  Eric Blake  <ebb9@byu.net>
24109
24110         vc-list-files: ignore git symlinks
24111         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24112         than ls-files, to ignore git symlinks.
24113
24114         maint.mk: import improvements from m4
24115         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24116         (move_if_change): Delete unused macro.
24117         (news-date-check, vc-diff-check): Support VPATH builds.
24118         (announcement): Likewise.  Split --bootstrap-tools list...
24119         (boostrap-tools): ...into separate list, which can be overridden
24120         in cfg.mk.
24121         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24122         requiring dependency on useless-if-before-free module.
24123         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24124         Support VPATH builds.
24125
24126 2009-04-24  Jim Meyering  <meyering@redhat.com>
24127
24128         maint.mk: remove coreutils-specific rules and variables
24129         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
24130         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
24131         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
24132
24133         maint.mk: remove obsolete rule
24134         * top/maint.mk (rel-check): Remove rule.
24135         (WGET, WGETFLAGS): Remove now-unused variables.
24136
24137 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24138
24139         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
24140         consistency.
24141
24142         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
24143         '$(PATH_SEPARATOR)' instead of ':'.
24144
24145 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24146
24147         * lib/getopt1.c (main): Use 'const' for static array.
24148
24149 2009-04-24  Simon Josefsson  <simon@josefsson.org>
24150
24151         * top/maint.mk: Sync with coreutils.
24152         * NEWS: Explain incompatibilities.
24153
24154 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24155             Bruno Haible  <bruno@clisp.org>
24156
24157         Fix cross-compilation results.
24158         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
24159         statement, as third argument of AC_TRY_RUN.
24160         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24161         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24162         Likewise.
24163         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24164         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24165         Likewise.
24166         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24167         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
24168         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
24169
24170 2009-04-20  Bruno Haible  <bruno@clisp.org>
24171
24172         Avoid test failure on mingw.
24173         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
24174
24175 2009-04-20  Bruno Haible  <bruno@clisp.org>
24176
24177         Avoid compilation error on mingw.
24178         * modules/localename-tests (Depends-on): Add locale.
24179
24180 2009-04-19  Bruno Haible  <bruno@clisp.org>
24181
24182         Support for building a shared library on Windows platforms.
24183         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
24184         (main): Test the presence of UNINORM_NFC here.
24185         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
24186         (main): Test the presence of UNINORM_NFD here.
24187         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
24188         (main): Test the presence of UNINORM_NFKC here.
24189         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
24190         (main): Test the presence of UNINORM_NFKD here.
24191
24192 2009-04-19  Bruno Haible  <bruno@clisp.org>
24193
24194         Avoid a compiler warning.
24195         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
24196         Change type of variable 'sequence'.
24197
24198 2009-04-19  Bruno Haible  <bruno@clisp.org>
24199
24200         * modules/configmake (Makefile.am): When the contents of configmake.h
24201         does not change, arrange to preserve its modification time.
24202
24203 2009-04-17  Simon Josefsson  <simon@josefsson.org>
24204
24205         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
24206         gettext domain.
24207
24208 2009-04-16  Jim Meyering  <meyering@redhat.com>
24209
24210         useless-if-before-free: improve conversion code
24211         * build-aux/useless-if-before-free: Adjust code-in-comment to match
24212         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
24213
24214 2009-04-14  Bruno Haible  <bruno@clisp.org>
24215
24216         * modules/fcntl (Depends-on): Add extensions.
24217         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
24218
24219 2009-04-12  Ben Pfaff  <blp@gnu.org>
24220
24221         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
24222         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
24223
24224 2009-03-20  Ben Pfaff  <blp@gnu.org>
24225
24226         Make rename replace existing destinations on Windows.
24227         * m4/rename.m4: Add test for Mingw.
24228         * lib/rename.c: Add rename replacement that uses MoveFileEx with
24229         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
24230         * doc/posix-functions/rename.texi: Document.
24231
24232 2009-04-10  Bruno Haible  <bruno@clisp.org>
24233
24234         New include file "iconveh.h".
24235         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
24236         * lib/striconveh.h: Include it.
24237         (enum iconv_ilseq_handler): Remove definition.
24238         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
24239         striconveh.h.
24240         * lib/striconveha.c: Include striconveh.h.
24241         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
24242         * modules/striconveh (Files): Add lib/iconveh.h.
24243         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
24244         lib/striconveh.h.
24245
24246 2009-04-10  Bruno Haible  <bruno@clisp.org>
24247
24248         * lib/uniconv.h: Update comment.
24249
24250 2009-04-10  Bruno Haible  <bruno@clisp.org>
24251
24252         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
24253         always.
24254         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24255         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24256         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24257         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24258         "unistring-notinline.h", so that the function gets defined always.
24259         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24260         * lib/unistr/u8-uctomb.c: Likewise.
24261         * lib/unistr/u16-mbtouc.c: Likewise.
24262         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24263         * lib/unistr/u16-uctomb.c: Likewise.
24264         * lib/unistr/u32-mbtouc.c: Likewise.
24265         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24266         * lib/unistr/u32-uctomb.c: Likewise.
24267
24268 2009-04-10  Bruno Haible  <bruno@clisp.org>
24269
24270         Mark 'utime' obsolete.
24271         * modules/utime (Status, Notice): New sections.
24272         Suggested by Jim Meyering.
24273
24274         Fix cross-compile guess for utime test.
24275         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24276         autoconf.
24277         * doc/posix-functions/utime.texi: Give more precisions.
24278         Reported by Jan <ipif@ymail.com>.
24279
24280 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24281
24282         filevercmp: correct today's change
24283         * lib/filevercmp.c: Also handle coreutils' test inputs.
24284         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24285
24286         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24287         for reporting it.
24288         * lib/filevercmp.c: Special handle for "", "." and "..".
24289         * tests/test-filevercmp.c: Enlarge the set suite.
24290
24291 2009-04-07  Jim Meyering  <meyering@redhat.com>
24292
24293         useless-if-before-free: show how to remove braced useless free, too
24294         * build-aux/useless-if-before-free: still only in a comment, though.
24295
24296 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24297
24298         maint.mk: import changes to syntax-check macros from coreutils
24299         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24300         Use them in the relevant macros.
24301
24302 2009-04-06  Bruno Haible  <bruno@clisp.org>
24303
24304         Fix unportable use of bit-fields.
24305         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24306         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24307         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24308
24309 2009-04-06  Bruno Haible  <bruno@clisp.org>
24310
24311         Avoid test failures on AIX and OSF/1.
24312         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24313         that malloc(0) = NULL.
24314         * tests/unicase/test-u8-tolower.c (check): Likewise.
24315         * tests/unicase/test-u8-totitle.c (check): Likewise.
24316         * tests/unicase/test-u8-toupper.c (check): Likewise.
24317         * tests/unicase/test-u16-casefold.c (check): Likewise.
24318         * tests/unicase/test-u16-tolower.c (check): Likewise.
24319         * tests/unicase/test-u16-totitle.c (check): Likewise.
24320         * tests/unicase/test-u16-toupper.c (check): Likewise.
24321         * tests/unicase/test-u32-casefold.c (check): Likewise.
24322         * tests/unicase/test-u32-tolower.c (check): Likewise.
24323         * tests/unicase/test-u32-totitle.c (check): Likewise.
24324         * tests/unicase/test-u32-toupper.c (check): Likewise.
24325         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24326         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24327         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24328         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24329         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24330         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24331         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24332         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24333         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24334         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24335         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24336         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24337
24338 2009-04-05  Bruno Haible  <bruno@clisp.org>
24339
24340         Work around an autoconf limitation.
24341         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24342         comment line if it would be longer than 3 KB.
24343
24344 2009-04-05  Bruno Haible  <bruno@clisp.org>
24345
24346         Avoid test failure with libiconv-1.13.
24347         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24348         of the expected test results.
24349
24350 2009-04-05  Bruno Haible  <bruno@clisp.org>
24351
24352         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24353         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24354         that it should be installed.
24355
24356 2009-04-05  Bruno Haible  <bruno@clisp.org>
24357
24358         * gnulib-tool: New option --copy-file.
24359         (func_usage): Document it.
24360         (func_dest_tmpfilename): Moved out of func_import.
24361         (func_add_file, func_update_file): New functions, extracted from
24362         func_import.
24363         (func_import): Update.
24364
24365 2009-04-05  Karl Berry  <karl@gnu.org>
24366
24367         * README: prominently mention gnulib-tool.
24368         Rearrange sections so getting the code is near the top.
24369
24370 2009-04-05  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/unicase.h: Mention u*_cmp2.
24373         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24374         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24375         * lib/unicase/ulc-casecmp.c: Likewise.
24376         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24377         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24378         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24379         unistr/u8-cmp.
24380         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24381         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24382         unistr/u16-cmp.
24383         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24384         unistr/u32-cmp.
24385
24386         * lib/uninorm.h: Mention u*_cmp2.
24387         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24388         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24389         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24390         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24391         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24392         unistr/u8-cmp.
24393         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24394         unistr/u16-cmp.
24395         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24396         unistr/u32-cmp.
24397
24398         New module 'unistr/u32-cmp2'.
24399         * lib/unistr/u32-cmp2.c: New file.
24400         * modules/unistr/u32-cmp2: New file.
24401
24402         New module 'unistr/u16-cmp2'.
24403         * lib/unistr/u16-cmp2.c: New file.
24404         * modules/unistr/u16-cmp2: New file.
24405
24406         New module 'unistr/u8-cmp2'.
24407         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24408         * lib/unistr/u8-cmp2.c: New file.
24409         * lib/unistr/u-cmp2.h: New file.
24410         * modules/unistr/u8-cmp2: New file.
24411
24412 2009-04-05  Bruno Haible  <bruno@clisp.org>
24413
24414         * lib/unictype.h (uc_property_is_valid): New macro.
24415         * tests/unictype/test-pr_byname.c (main): Use it.
24416
24417         * lib/unistr.h: Doc fixes.
24418         * lib/uniconv.h: Doc fixes.
24419         * lib/unictype.h: Doc fixes.
24420
24421 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24422
24423         Port coreutils 7.2 to Solaris 8.
24424
24425         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24426         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24427         for Solaris 8.  This is a bit of a hack, as it means it's the
24428         caller's responsibility to add -lnsl if needed, but most likely it
24429         won't be needed since only getaddrinfo uses this and getaddrinfo
24430         isn't needed on Solaris 8.
24431
24432         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24433         problem to Solaris 8 encountered with coreutils 7.2, which
24434         resulted in a message "fnmatch.c:292: warning: passing argument 4
24435         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24436         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24437
24438 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24439
24440         * m4/ld-version-script.m4: Add FIXME comment.
24441
24442 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24443
24444         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24445         SOVERSION variable.
24446
24447 2009-04-02  Bruno Haible  <bruno@clisp.org>
24448
24449         * Makefile (info, html, dvi, pdf): Combine the rules.
24450         Suggested by Jim Meyering.
24451
24452 2009-04-01  Bruno Haible  <bruno@clisp.org>
24453
24454         * Makefile (info, html, dvi, pdf): New targets.
24455         Reported by Reuben Thomas <rrt@sc3d.org>.
24456
24457 2009-04-01  Bruno Haible  <bruno@clisp.org>
24458
24459         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24460         can be put into PATH.
24461         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24462
24463 2009-04-01  Bruno Haible  <bruno@clisp.org>
24464
24465         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24466
24467 2009-04-01  Bruno Haible  <bruno@clisp.org>
24468
24469         Rename module 'visibility'.
24470         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24471         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24472         * doc/gnulib.texi: Update.
24473         * MODULES.html.sh (Misc): Update.
24474         * NEWS: Mention the change.
24475
24476 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24477
24478         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24479         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24480         Eric Blake <ebb9@byu.net> for review.
24481         * MODULES.html.sh: Add lib-msvc-compat.
24482         * doc/gnulib.texi: Link to new section.
24483         * m4/ld-output-def.m4: New file.
24484         * doc/ld-output-def.texi: New file.
24485
24486 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24487
24488         Rename ld-version-script to lib-symbol-versions.  Suggested by
24489         Bruno Haible <bruno@clisp.org>.
24490         * modules/ld-version-script: Renamed to lib-symbol-versions.
24491         * doc/ld-version-script.texi: Fix module name.
24492         * MODULES.html.sh: Add lib-symbol-versions.
24493
24494 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24495
24496         * modules/u64-tests: New file.
24497         * tests/test-u64.c: New file.
24498
24499 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24500
24501         * MODULES.html.sh: Mention u64.
24502         * modules/u64: New module.
24503         * modules/crypto/sha512: Depend on u64 module instead of providing
24504         u64.h.
24505
24506 2009-03-27  Eric Blake  <ebb9@byu.net>
24507
24508         test-strerror: make debugging EAI_SYSTEM easier
24509         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24510         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24511         failure was EAI_SYSTEM.
24512
24513 2009-03-25  Bruno Haible  <bruno@clisp.org>
24514
24515         Fix a problem with --enable-relocatable on Solaris 7.
24516         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24517         since 2008-02-24.
24518
24519 2009-03-25  Eric Blake  <ebb9@byu.net>
24520
24521         test-sockets: avoid gcc warning
24522         * tests/test-sockets.c (main): Silence compiler warning.
24523
24524 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24525
24526         New modules nproc, pthread, contributed by Glen Lenker.
24527
24528         * MODULES.html.sh: Add pthread, nproc.
24529         * lib/nproc.c: New file.
24530         * lib/nproc.h: New file.
24531         * lib/pthread.in.h: New file.
24532         * m4/pthread.m4: New file.
24533         * modules/nproc: New file.
24534         * modules/pthread: New file.
24535
24536 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24537
24538         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24539         New variable.
24540
24541 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24542
24543         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24544         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24545         * tests/test-filevercmp.c: Add tests for backup suffixes.
24546
24547 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24548
24549         * modules/stdlib (Depends-on): Add stdint, needed when defining
24550         struct random_data on, for example, HP-UX 10.20.  Reported by
24551         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24552
24553 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24554
24555         * lib/readline.c (readline): Call fflush on stdout after printing
24556         prompt.
24557
24558 2009-03-20  Bruno Haible  <bruno@clisp.org>
24559
24560         Remove dependency from 'close' module to -lws2_32 on native Windows.
24561         * lib/close-hook.h: New file.
24562         * lib/close-hook.c: New file.
24563         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24564         w32sock.h.
24565         (_gl_close_fd_maybe_socket): Remove function.
24566         (rpl_close): Invoke execute_all_close_hooks instead of
24567         _gl_close_fd_maybe_socket.
24568         * lib/sockets.c: Include close-hook.h, w32sock.h.
24569         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24570         (close_sockets_hook): New variable.
24571         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24572         (gl_sockets_cleanup): Unregister it.
24573         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24574         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24575         * modules/close-hook: New file.
24576         * modules/close (Files): Remove lib/w32sock.h.
24577         (Depends-on): Add close-hook.
24578         (Link): Remove section.
24579         * modules/sockets (Files): Add lib/w32sock.h.
24580         (Depends-on): Add close-hook.
24581         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24582         invocation.
24583         * NEWS: Mention that LIB_CLOSE is gone.
24584
24585 2009-03-23  Eric Blake  <ebb9@byu.net>
24586
24587         signal-tests: test previous patch
24588         * tests/test-signal.c: New file.
24589         * modules/signal-tests: Likewise.
24590
24591         signal.h: always support 'volatile sig_atomic_t'
24592         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24593         (gl_SIGNAL_H_DEFAULTS): Add a default.
24594         * modules/signal (Makefile.am): Substitute if needed.
24595         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24596         users can blindly add volatile.
24597         * doc/posix-headers/signal.texi (signal.h): Document it.
24598         Reported by Matthew Woehlke.
24599
24600 2009-03-23  Jim Meyering  <meyering@redhat.com>
24601
24602         pathmax: PATH_MAX: use pathconf only when available
24603         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24604         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24605         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24606         This avoids a link failure in a PSP cross-compilation environment
24607         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24608
24609         * lib/vasnprintf.c (divide): Fix typo in comment.
24610
24611 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24612
24613         * gnulib-tool (func_filter_filelist): Fix comment.
24614
24615 2009-03-20  Bruno Haible  <bruno@clisp.org>
24616
24617         Make sockets.h self-contained.
24618         * lib/sockets.c: Include sockets.h first.
24619         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24620
24621 2009-03-19  Eric Blake  <ebb9@byu.net>
24622
24623         doc: mention more functions added in cygwin 1.7.0
24624         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24625         addition.
24626         * doc/posix-functions/log2f.texi: Likewise.
24627
24628 2009-03-19  Jim Meyering  <meyering@redhat.com>
24629
24630         fsusage: avoid syntax error due to statement-before-declaration
24631         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24632         after all declarations.  Reported by Matthew Woehlke in
24633         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24634
24635 2009-03-18  Eric Blake  <ebb9@byu.net>
24636
24637         build-aux/compile: sync from automake
24638         * build-aux/compile: New file, from automake.
24639         * config/srclist.txt: Mention build-aux/compile.
24640
24641 2009-03-17  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/git-merge-changelog.c: Fix typo in comment.
24644         Reported by Reuben Thomas <rrt@sc3d.org>.
24645
24646 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24647
24648         * m4/regex.m4: update and improve help for
24649         --without-included-regex.
24650
24651 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24652
24653         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24654         failure on missing include files.
24655
24656 2009-03-17  Eric Blake  <ebb9@byu.net>
24657
24658         doc: mention more functions added in cygwin 1.7.0
24659         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24660         addition.
24661         * doc/posix-functions/fwscanf.texi: Likewise.
24662         * doc/posix-functions/swprintf.texi: Likewise.
24663         * doc/posix-functions/swscanf.texi: Likewise.
24664         * doc/posix-functions/vfwprintf.texi: Likewise.
24665         * doc/posix-functions/vfwscanf.texi: Likewise.
24666         * doc/posix-functions/vswprintf.texi: Likewise.
24667         * doc/posix-functions/vswscanf.texi: Likewise.
24668         * doc/posix-functions/vwprintf.texi: Likewise.
24669         * doc/posix-functions/vwscanf.texi: Likewise.
24670         * doc/posix-functions/wcscasecmp.texi: Likewise.
24671         * doc/posix-functions/wcsdup.texi: Likewise.
24672         * doc/posix-functions/wcsftime.texi: Likewise.
24673         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24674         * doc/posix-functions/wprintf.texi: Likewise.
24675         * doc/posix-functions/wscanf.texi: Likewise.
24676         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24677
24678 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24679
24680         maint.mk: really add $(AM_MAKEFLAGS)
24681         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24682         was inadvertently omitted in the last commit.
24683         Spotted by Bruno Haible.
24684
24685         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24686         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24687         $(AM_MAKEFLAGS)' rather than plain `make'.
24688
24689         gnulib-tool: execute $MAKE not make
24690         * gnulib-tool: Default $MAKE to 'make'.
24691         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24692         than make.  Initialize $MAKE in the do-autobuild script.
24693
24694         gnulib-tool: use $MAKE not make in generated files
24695         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24696         make, in generated files.  Initialize $MAKE in the do-autobuild
24697         script.
24698
24699         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24700
24701         GNUmakefile: disable parallelism only for multiple, recursive targets
24702         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24703         additions in the Makefile.
24704         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24705         by Automake.
24706         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24707         are listed on the command line and at least one of them is
24708         listed in $(ALL_RECURSIVE_TARGETS).
24709
24710 2009-03-14  Bruno Haible  <bruno@clisp.org>
24711
24712         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24713         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24714         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24715         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24716         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24717         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24718         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24719         unistr/u8-uctomb.
24720         * modules/unistr/u8-strchr (Depends-on): Likewise.
24721         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24722         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24723         unistr/u16-uctomb.
24724         * modules/unistr/u16-strchr (Depends-on): Likewise.
24725         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24726
24727 2009-03-12  Bruno Haible  <bruno@clisp.org>
24728
24729         Work around select() bug on Interix 3.5.
24730         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24731         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24732         * m4/select.m4: New file.
24733         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24734         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24735         * modules/select (Files): Add m4/select.m4.
24736         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24737         * modules/nanosleep (Depends-on): Add select.
24738         * modules/poll (Depends-on): Likewise.
24739         * doc/posix-functions/select.texi: Mention the Interix bug.
24740         Reported by Markus Duft <mduft@gentoo.org>.
24741
24742         * lib/select.c: Renamed from lib/winsock-select.c.
24743         * modules/select (Files): Add lib/select.c, remove
24744         lib/winsock-select.c.
24745         (configure.ac): Update.
24746
24747 2009-03-12  Jim Meyering  <meyering@redhat.com>
24748
24749         avoid gcc warnings about unused macro definitions
24750         * lib/readtokens.c (STREQ): Remove unused definition.
24751         * lib/xmalloc.c (SIZE_MAX): Likewise.
24752         * lib/openat-die.c (N_): Likewise.
24753         * lib/mountlist.c (SIZE_MAX): Remove definition.
24754         Instead, include <stdint.h>.
24755         * lib/readutmp.c: Likewise.
24756         * modules/readutmp (Depends-on): Add stdint.
24757         * modules/mountlist (Depends-on): Add stdint.
24758         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24759
24760 2009-03-10  Bruno Haible  <bruno@clisp.org>
24761
24762         Tests for module 'mbmemcasecoll'.
24763         * modules/mbmemcasecoll-tests: New file.
24764         * tests/test-mbmemcasecoll1.sh: New file.
24765         * tests/test-mbmemcasecoll2.sh: New file.
24766         * tests/test-mbmemcasecoll3.sh: New file.
24767         * tests/test-mbmemcasecoll.c: New file.
24768
24769         New module 'mbmemcasecoll'.
24770         * lib/mbmemcasecoll.h: New file.
24771         * lib/mbmemcasecoll.c: New file.
24772         * modules/mbmemcasecoll: New file.
24773
24774         * tests/test-mbmemcasecmp.h: New file, extracted from
24775         tests/test-mbmemcasecmp.c.
24776         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24777         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24778         (main): Update.
24779         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24780
24781 2009-03-09  Bruno Haible  <bruno@clisp.org>
24782
24783         Tests for module 'mbmemcasecmp'.
24784         * modules/mbmemcasecmp-tests: New file.
24785         * tests/test-mbmemcasecmp1.sh: New file.
24786         * tests/test-mbmemcasecmp2.sh: New file.
24787         * tests/test-mbmemcasecmp3.sh: New file.
24788         * tests/test-mbmemcasecmp.c: New file.
24789
24790         New module 'mbmemcasecmp'.
24791         * lib/mbmemcasecmp.h: New file.
24792         * lib/mbmemcasecmp.c: New file.
24793         * modules/mbmemcasecmp: New file.
24794
24795 2009-03-09  Bruno Haible  <bruno@clisp.org>
24796
24797         Tests for module 'unicase/ulc-casecoll'.
24798         * modules/unicase/ulc-casecoll-tests: New file.
24799         * tests/unicase/test-ulc-casecoll1.sh: New file.
24800         * tests/unicase/test-ulc-casecoll2.sh: New file.
24801         * tests/unicase/test-ulc-casecoll.c: New file.
24802
24803         New module 'unicase/ulc-casecoll'.
24804         * lib/unicase.h (ulc_casecoll): New declaration.
24805         * lib/unicase/ulc-casecoll.c: New file.
24806         * modules/unicase/ulc-casecoll: New file.
24807
24808         New module 'unicase/ulc-casexfrm'.
24809         * lib/unicase.h (ulc_casexfrm): New declaration.
24810         * lib/unicase/ulc-casexfrm.c: New file.
24811         * modules/unicase/ulc-casexfrm: New file.
24812
24813 2009-03-09  Bruno Haible  <bruno@clisp.org>
24814
24815         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24816         invocations.
24817
24818         * m4/mbscasecmp.m4: Remove file.
24819         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24820         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24821
24822         * m4/mbscasestr.m4: Remove file.
24823         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24824         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24825
24826         * m4/mbschr.m4: Remove file.
24827         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24828         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24829
24830         * m4/mbscspn.m4: Remove file.
24831         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24832         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24833
24834         * m4/mbslen.m4: Remove file.
24835         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24836         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24837
24838         * m4/mbsncasecmp.m4: Remove file.
24839         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24840         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24841
24842         * m4/mbsnlen.m4: Remove file.
24843         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24844         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24845
24846         * m4/mbspbrk.m4: Remove file.
24847         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24848         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24849
24850         * m4/mbspcasecmp.m4: Remove file.
24851         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24852         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24853
24854         * m4/mbsrchr.m4: Remove file.
24855         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24856         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24857
24858         * m4/mbssep.m4: Remove file.
24859         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24860         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24861
24862         * m4/mbsspn.m4: Remove file.
24863         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24864         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24865
24866         * m4/mbsstr.m4: Remove file.
24867         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24868         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24869
24870         * m4/mbstok_r.m4: Remove file.
24871         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24872         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24873
24874         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24875
24876         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24877         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24878
24879         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24880
24881 2009-03-08  Bruno Haible  <bruno@clisp.org>
24882
24883         Tests for module 'unicase/ulc-casecmp'.
24884         * modules/unicase/ulc-casecmp-tests: New file.
24885         * tests/unicase/test-ulc-casecmp1.sh: New file.
24886         * tests/unicase/test-ulc-casecmp2.sh: New file.
24887         * tests/unicase/test-ulc-casecmp.c: New file.
24888
24889         New module 'unicase/ulc-casecmp'.
24890         * lib/unicase.h (ulc_casecmp): New declaration.
24891         * lib/unicase/ulc-casecmp.c: New file.
24892         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24893         'const SRC_UNIT *'.
24894         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24895         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24896         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24897         * modules/unicase/ulc-casecmp: New file.
24898
24899         Tests for module 'unicase/u32-is-cased'.
24900         * modules/unicase/u32-is-cased-tests: New file.
24901         * tests/unicase/test-u32-is-cased.c: New file.
24902
24903         Tests for module 'unicase/u16-is-cased'.
24904         * modules/unicase/u16-is-cased-tests: New file.
24905         * tests/unicase/test-u16-is-cased.c: New file.
24906
24907         Tests for module 'unicase/u8-is-cased'.
24908         * modules/unicase/u8-is-cased-tests: New file.
24909         * tests/unicase/test-u8-is-cased.c: New file.
24910         * tests/unicase/test-is-cased.h: New file.
24911
24912         New module 'unicase/u32-is-cased'.
24913         * lib/unicase/u32-is-cased.c: New file.
24914         * modules/unicase/u32-is-cased: New file.
24915
24916         New module 'unicase/u16-is-cased'.
24917         * lib/unicase/u16-is-cased.c: New file.
24918         * modules/unicase/u16-is-cased: New file.
24919
24920         New module 'unicase/u8-is-cased'.
24921         * lib/unicase/u8-is-cased.c: New file.
24922         * lib/unicase/u-is-cased.h: New file.
24923         * modules/unicase/u8-is-cased: New file.
24924
24925         Tests for module 'unicase/u32-is-casefolded'.
24926         * modules/unicase/u32-is-casefolded-tests: New file.
24927         * tests/unicase/test-u32-is-casefolded.c: New file.
24928
24929         Tests for module 'unicase/u16-is-casefolded'.
24930         * modules/unicase/u16-is-casefolded-tests: New file.
24931         * tests/unicase/test-u16-is-casefolded.c: New file.
24932
24933         Tests for module 'unicase/u8-is-casefolded'.
24934         * modules/unicase/u8-is-casefolded-tests: New file.
24935         * tests/unicase/test-u8-is-casefolded.c: New file.
24936         * tests/unicase/test-is-casefolded.h: New file.
24937
24938         New module 'unicase/u32-is-casefolded'.
24939         * lib/unicase/u32-is-casefolded.c: New file.
24940         * modules/unicase/u32-is-casefolded: New file.
24941
24942         New module 'unicase/u16-is-casefolded'.
24943         * lib/unicase/u16-is-casefolded.c: New file.
24944         * modules/unicase/u16-is-casefolded: New file.
24945
24946         New module 'unicase/u8-is-casefolded'.
24947         * lib/unicase/u8-is-casefolded.c: New file.
24948         * modules/unicase/u8-is-casefolded: New file.
24949
24950         Tests for module 'unicase/u32-is-titlecase'.
24951         * modules/unicase/u32-is-titlecase-tests: New file.
24952         * tests/unicase/test-u32-is-titlecase.c: New file.
24953
24954         Tests for module 'unicase/u16-is-titlecase'.
24955         * modules/unicase/u16-is-titlecase-tests: New file.
24956         * tests/unicase/test-u16-is-titlecase.c: New file.
24957
24958         Tests for module 'unicase/u8-is-titlecase'.
24959         * modules/unicase/u8-is-titlecase-tests: New file.
24960         * tests/unicase/test-u8-is-titlecase.c: New file.
24961         * tests/unicase/test-is-titlecase.h: New file.
24962
24963         New module 'unicase/u32-is-titlecase'.
24964         * lib/unicase/u32-is-titlecase.c: New file.
24965         * modules/unicase/u32-is-titlecase: New file.
24966
24967         New module 'unicase/u16-is-titlecase'.
24968         * lib/unicase/u16-is-titlecase.c: New file.
24969         * modules/unicase/u16-is-titlecase: New file.
24970
24971         New module 'unicase/u8-is-titlecase'.
24972         * lib/unicase/u8-is-titlecase.c: New file.
24973         * modules/unicase/u8-is-titlecase: New file.
24974
24975         Tests for module 'unicase/u32-is-lowercase'.
24976         * modules/unicase/u32-is-lowercase-tests: New file.
24977         * tests/unicase/test-u32-is-lowercase.c: New file.
24978
24979         Tests for module 'unicase/u16-is-lowercase'.
24980         * modules/unicase/u16-is-lowercase-tests: New file.
24981         * tests/unicase/test-u16-is-lowercase.c: New file.
24982
24983         Tests for module 'unicase/u8-is-lowercase'.
24984         * modules/unicase/u8-is-lowercase-tests: New file.
24985         * tests/unicase/test-u8-is-lowercase.c: New file.
24986         * tests/unicase/test-is-lowercase.h: New file.
24987
24988         New module 'unicase/u32-is-lowercase'.
24989         * lib/unicase/u32-is-lowercase.c: New file.
24990         * modules/unicase/u32-is-lowercase: New file.
24991
24992         New module 'unicase/u16-is-lowercase'.
24993         * lib/unicase/u16-is-lowercase.c: New file.
24994         * modules/unicase/u16-is-lowercase: New file.
24995
24996         New module 'unicase/u8-is-lowercase'.
24997         * lib/unicase/u8-is-lowercase.c: New file.
24998         * modules/unicase/u8-is-lowercase: New file.
24999
25000         Tests for module 'unicase/u32-is-uppercase'.
25001         * modules/unicase/u32-is-uppercase-tests: New file.
25002         * tests/unicase/test-u32-is-uppercase.c: New file.
25003
25004         Tests for module 'unicase/u16-is-uppercase'.
25005         * modules/unicase/u16-is-uppercase-tests: New file.
25006         * tests/unicase/test-u16-is-uppercase.c: New file.
25007
25008         Tests for module 'unicase/u8-is-uppercase'.
25009         * modules/unicase/u8-is-uppercase-tests: New file.
25010         * tests/unicase/test-u8-is-uppercase.c: New file.
25011         * tests/unicase/test-is-uppercase.h: New file.
25012
25013         New module 'unicase/u32-is-uppercase'.
25014         * lib/unicase/u32-is-uppercase.c: New file.
25015         * modules/unicase/u32-is-uppercase: New file.
25016
25017         New module 'unicase/u16-is-uppercase'.
25018         * lib/unicase/u16-is-uppercase.c: New file.
25019         * modules/unicase/u16-is-uppercase: New file.
25020
25021         New module 'unicase/u8-is-uppercase'.
25022         * lib/unicase/u8-is-uppercase.c: New file.
25023         * modules/unicase/u8-is-uppercase: New file.
25024
25025         New module 'unicase/u32-is-invariant'.
25026         * lib/unicase/u32-is-invariant.c: New file.
25027         * modules/unicase/u32-is-invariant: New file.
25028
25029         New module 'unicase/u16-is-invariant'.
25030         * lib/unicase/u16-is-invariant.c: New file.
25031         * modules/unicase/u16-is-invariant: New file.
25032
25033         New module 'unicase/u8-is-invariant'.
25034         * lib/unicase/u8-is-invariant.c: New file.
25035         * lib/unicase/invariant.h: New file.
25036         * lib/unicase/u-is-invariant.h: New file.
25037         * modules/unicase/u8-is-invariant: New file.
25038
25039         Tests for module 'unicase/u32-casecoll'.
25040         * modules/unicase/u32-casecoll-tests: New file.
25041         * tests/unicase/test-u32-casecoll.c: New file.
25042
25043         Tests for module 'unicase/u16-casecoll'.
25044         * modules/unicase/u16-casecoll-tests: New file.
25045         * tests/unicase/test-u16-casecoll.c: New file.
25046
25047         Tests for module 'unicase/u8-casecoll'.
25048         * modules/unicase/u8-casecoll-tests: New file.
25049         * tests/unicase/test-u8-casecoll.c: New file.
25050
25051         New module 'unicase/u32-casecoll'.
25052         * lib/unicase/u32-casecoll.c: New file.
25053         * modules/unicase/u32-casecoll: New file.
25054
25055         New module 'unicase/u16-casecoll'.
25056         * lib/unicase/u16-casecoll.c: New file.
25057         * modules/unicase/u16-casecoll: New file.
25058
25059         New module 'unicase/u8-casecoll'.
25060         * lib/unicase/u8-casecoll.c: New file.
25061         * lib/unicase/u-casecoll.h: New file.
25062         * modules/unicase/u8-casecoll: New file.
25063
25064         New module 'unicase/u32-casexfrm'.
25065         * lib/unicase/u32-casexfrm.c: New file.
25066         * modules/unicase/u32-casexfrm: New file.
25067
25068         New module 'unicase/u16-casexfrm'.
25069         * lib/unicase/u16-casexfrm.c: New file.
25070         * modules/unicase/u16-casexfrm: New file.
25071
25072         New module 'unicase/u8-casexfrm'.
25073         * lib/unicase/u8-casexfrm.c: New file.
25074         * lib/unicase/u-casexfrm.h: New file.
25075         * modules/unicase/u8-casexfrm: New file.
25076
25077         Tests for module 'unicase/u32-casecmp'.
25078         * modules/unicase/u32-casecmp-tests: New file.
25079         * tests/unicase/test-u32-casecmp.c: New file.
25080
25081         Tests for module 'unicase/u16-casecmp'.
25082         * modules/unicase/u16-casecmp-tests: New file.
25083         * tests/unicase/test-u16-casecmp.c: New file.
25084
25085         Tests for module 'unicase/u8-casecmp'.
25086         * modules/unicase/u8-casecmp-tests: New file.
25087         * tests/unicase/test-u8-casecmp.c: New file.
25088         * tests/unicase/test-casecmp.h: New file.
25089
25090         New module 'unicase/u32-casecmp'.
25091         * lib/unicase/u32-casecmp.c: New file.
25092         * modules/unicase/u32-casecmp: New file.
25093
25094         New module 'unicase/u16-casecmp'.
25095         * lib/unicase/u16-casecmp.c: New file.
25096         * modules/unicase/u16-casecmp: New file.
25097
25098         New module 'unicase/u8-casecmp'.
25099         * lib/unicase/u8-casecmp.c: New file.
25100         * lib/unicase/u-casecmp.h: New file.
25101         * modules/unicase/u8-casecmp: New file.
25102
25103         Tests for module 'unicase/u32-casefold'.
25104         * modules/unicase/u32-casefold-tests: New file.
25105         * tests/unicase/test-u32-casefold.c: New file.
25106
25107         Tests for module 'unicase/u16-casefold'.
25108         * modules/unicase/u16-casefold-tests: New file.
25109         * tests/unicase/test-u16-casefold.c: New file.
25110
25111         Tests for module 'unicase/u8-casefold'.
25112         * modules/unicase/u8-casefold-tests: New file.
25113         * tests/unicase/test-u8-casefold.c: New file.
25114
25115         New module 'unicase/u32-casefold'.
25116         * lib/unicase/u32-casefold.c: New file.
25117         * modules/unicase/u32-casefold: New file.
25118
25119         New module 'unicase/u16-casefold'.
25120         * lib/unicase/u16-casefold.c: New file.
25121         * modules/unicase/u16-casefold: New file.
25122
25123         New module 'unicase/u8-casefold'.
25124         * lib/unicase/u8-casefold.c: New file.
25125         * lib/unicase/u-casefold.h: New file.
25126         * modules/unicase/u8-casefold: New file.
25127
25128         New module 'unicase/tocasefold'.
25129         * lib/unicase/casefold.h: New file.
25130         * lib/unicase/tocasefold.c: New file.
25131         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
25132         * modules/unicase/tocasefold: New file.
25133
25134         Tests for module 'unicase/u32-totitle'.
25135         * modules/unicase/u32-totitle-tests: New file.
25136         * tests/unicase/test-u32-totitle.c: New file.
25137
25138         Tests for module 'unicase/u16-totitle'.
25139         * modules/unicase/u16-totitle-tests: New file.
25140         * tests/unicase/test-u16-totitle.c: New file.
25141
25142         Tests for module 'unicase/u8-totitle'.
25143         * modules/unicase/u8-totitle-tests: New file.
25144         * tests/unicase/test-u8-totitle.c: New file.
25145
25146         New module 'unicase/u32-totitle'.
25147         * lib/unicase/u32-totitle.c: New file.
25148         * modules/unicase/u32-totitle: New file.
25149
25150         New module 'unicase/u16-totitle'.
25151         * lib/unicase/u16-totitle.c: New file.
25152         * modules/unicase/u16-totitle: New file.
25153
25154         New module 'unicase/u8-totitle'.
25155         * lib/unicase/u8-totitle.c: New file.
25156         * lib/unicase/u-totitle.h: New file.
25157         * modules/unicase/u8-totitle: New file.
25158
25159         Tests for module 'unicase/u32-tolower'.
25160         * modules/unicase/u32-tolower-tests: New file.
25161         * tests/unicase/test-u32-tolower.c: New file.
25162
25163         Tests for module 'unicase/u16-tolower'.
25164         * modules/unicase/u16-tolower-tests: New file.
25165         * tests/unicase/test-u16-tolower.c: New file.
25166
25167         Tests for module 'unicase/u8-tolower'.
25168         * modules/unicase/u8-tolower-tests: New file.
25169         * tests/unicase/test-u8-tolower.c: New file.
25170
25171         New module 'unicase/u32-tolower'.
25172         * lib/unicase/u32-tolower.c: New file.
25173         * modules/unicase/u32-tolower: New file.
25174
25175         New module 'unicase/u16-tolower'.
25176         * lib/unicase/u16-tolower.c: New file.
25177         * modules/unicase/u16-tolower: New file.
25178
25179         New module 'unicase/u8-tolower'.
25180         * lib/unicase/u8-tolower.c: New file.
25181         * modules/unicase/u8-tolower: New file.
25182
25183         Tests for module 'unicase/u32-toupper'.
25184         * modules/unicase/u32-toupper-tests: New file.
25185         * tests/unicase/test-u32-toupper.c: New file.
25186
25187         Tests for module 'unicase/u16-toupper'.
25188         * modules/unicase/u16-toupper-tests: New file.
25189         * tests/unicase/test-u16-toupper.c: New file.
25190
25191         Tests for module 'unicase/u8-toupper'.
25192         * modules/unicase/u8-toupper-tests: New file.
25193         * tests/unicase/test-u8-toupper.c: New file.
25194
25195         New module 'unicase/u32-toupper'.
25196         * lib/unicase/u32-toupper.c: New file.
25197         * modules/unicase/u32-toupper: New file.
25198
25199         New module 'unicase/u16-toupper'.
25200         * lib/unicase/u16-toupper.c: New file.
25201         * modules/unicase/u16-toupper: New file.
25202
25203         New module 'unicase/u8-toupper'.
25204         * lib/unicase/u8-toupper.c: New file.
25205         * modules/unicase/u8-toupper: New file.
25206
25207         New module 'unicase/u32-casemap'.
25208         * lib/unicase/u32-casemap.c: New file.
25209         * modules/unicase/u32-casemap: New file.
25210
25211         New module 'unicase/u16-casemap'.
25212         * lib/unicase/u16-casemap.c: New file.
25213         * modules/unicase/u16-casemap: New file.
25214
25215         New module 'unicase/u8-casemap'.
25216         * lib/unicase/unicasemap.h: New file.
25217         * lib/unicase/u8-casemap.c: New file.
25218         * lib/unicase/u-casemap.h: New file.
25219         * modules/unicase/u8-casemap: New file.
25220
25221         New module 'unicase/special-casing'.
25222         * lib/unicase/special-casing.h: New file.
25223         * lib/unicase/special-casing.c: New file.
25224         * lib/unicase/special-casing-table.gperf: New file, generated by
25225         gen-uni-tables.c.
25226         * modules/unicase/special-casing: New file.
25227
25228         Tests for module 'unicase/locale-language'.
25229         * modules/unicase/locale-language-tests: New file.
25230         * tests/unicase/test-locale-language.sh: New file.
25231         * tests/unicase/test-locale-language.c: New file.
25232
25233         New module 'unicase/locale-language'.
25234         * lib/unicase/locale-language.c: New file.
25235         * lib/unicase/locale-languages.gperf: New file.
25236         * modules/unicase/locale-language: New file.
25237
25238         Generate more tables for case conversion and case folding.
25239         * lib/gen-uni-tables.c (SCC_*): New enum items.
25240         (struct special_casing_rule): New type.
25241         (casing_rules, num_casing_rules, allocated_casing_rules): New
25242         variables.
25243         (add_casing_rule, fill_casing_rules): New functions.
25244         (struct casefold_rule): New type.
25245         (casefolding_rules, num_casefolding_rules,
25246         allocated_casefolding_rules): New variables.
25247         (fill_casefolding_rules): New function.
25248         (unicode_casefold): New variable.
25249         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
25250         sort_casing_rules, output_casing_rules): New functions.
25251         (main): Accept to more arguments: SpecialCasing.txt and
25252         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
25253         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25254         Output mapping for casefolding.
25255
25256         * lib/unicase.h: Include stdbool.h, uninorm.h.
25257         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25258         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25259         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25260         arguments.
25261         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25262         resultp arguments.
25263         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25264         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25265         resultp arguments.
25266         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25267         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25268         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25269         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25270         declarations.
25271         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25272
25273 2009-03-08  Bruno Haible  <bruno@clisp.org>
25274
25275         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25276         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25277         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25278         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25279
25280 2009-03-07  Bruno Haible  <bruno@clisp.org>
25281
25282         Adjust u*_normcmp, u*_normcoll API.
25283         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25284         u16_normcoll, u32_normcoll): Change failure conventions.
25285         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25286         errno and return -1.
25287         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25288
25289 2009-03-07  Bruno Haible  <bruno@clisp.org>
25290
25291         Tests for module 'uninorm/u32-normcoll'.
25292         * modules/uninorm/u32-normcoll-tests: New file.
25293         * tests/uninorm/test-u32-normcoll.c: New file.
25294
25295         Tests for module 'uninorm/u16-normcoll'.
25296         * modules/uninorm/u16-normcoll-tests: New file.
25297         * tests/uninorm/test-u16-normcoll.c: New file.
25298
25299         Tests for module 'uninorm/u8-normcoll'.
25300         * modules/uninorm/u8-normcoll-tests: New file.
25301         * tests/uninorm/test-u8-normcoll.c: New file.
25302
25303 2009-03-07  Bruno Haible  <bruno@clisp.org>
25304
25305         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25306         tests/uninorm/test-u32-normcmp.c.
25307         * tests/uninorm/test-u32-normcmp.c: Include it.
25308         (test_nonascii): New function, extracted from main. Add some more
25309         tests.
25310         (main): Invoke test_ascii and test_nonascii.
25311         * modules/uninorm/u32-normcmp-tests (Files): Add
25312         tests/uninorm/test-u32-normcmp.h.
25313         (Depends-on): Remove uninorm/u32-normcmp.
25314
25315         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25316         tests/uninorm/test-u16-normcmp.c.
25317         * tests/uninorm/test-u16-normcmp.c: Include it.
25318         (test_nonascii): New function, extracted from main. Add some more
25319         tests.
25320         (main): Invoke test_ascii and test_nonascii.
25321         * modules/uninorm/u16-normcmp-tests (Files): Add
25322         tests/uninorm/test-u16-normcmp.h.
25323         (Depends-on): Remove uninorm/u16-normcmp.
25324
25325         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25326         tests/uninorm/test-u8-normcmp.c.
25327         * tests/uninorm/test-u8-normcmp.c: Include it.
25328         (test_nonascii): New function, extracted from main. Add some more
25329         tests.
25330         (main): Invoke test_ascii and test_nonascii.
25331         * modules/uninorm/u8-normcmp-tests (Files): Add
25332         tests/uninorm/test-u8-normcmp.h.
25333         (Depends-on): Remove uninorm/u8-normcmp.
25334
25335 2009-03-07  Bruno Haible  <bruno@clisp.org>
25336
25337         New module 'uninorm/u32-normcoll'.
25338         * lib/uninorm/u32-normcoll.c: New file.
25339         * modules/uninorm/u32-normcoll: New file.
25340
25341         New module 'uninorm/u16-normcoll'.
25342         * lib/uninorm/u16-normcoll.c: New file.
25343         * modules/uninorm/u16-normcoll: New file.
25344
25345         New module 'uninorm/u8-normcoll'.
25346         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25347         declarations.
25348         * lib/uninorm/u8-normcoll.c: New file.
25349         * lib/uninorm/u-normcoll.h: New file.
25350         * modules/uninorm/u8-normcoll: New file.
25351
25352         New module 'uninorm/u32-normxfrm'.
25353         * lib/uninorm/u32-normxfrm.c: New file.
25354         * modules/uninorm/u32-normxfrm: New file.
25355
25356         New module 'uninorm/u16-normxfrm'.
25357         * lib/uninorm/u16-normxfrm.c: New file.
25358         * modules/uninorm/u16-normxfrm: New file.
25359
25360         New module 'uninorm/u8-normxfrm'.
25361         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25362         declarations.
25363         * lib/uninorm/u8-normxfrm.c: New file.
25364         * lib/uninorm/u-normxfrm.h: New file.
25365         * modules/uninorm/u8-normxfrm: New file.
25366
25367 2009-03-07  Bruno Haible  <bruno@clisp.org>
25368
25369         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25370         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25371         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25372
25373 2009-03-07  Bruno Haible  <bruno@clisp.org>
25374
25375         New module 'memxfrm'.
25376         * lib/memxfrm.h: New file.
25377         * lib/memxfrm.c: New file.
25378         * modules/memxfrm: New file.
25379
25380 2009-03-07  Bruno Haible  <bruno@clisp.org>
25381
25382         New module 'memcmp2'.
25383         * lib/memcmp2.h: New file.
25384         * lib/memcmp2.c: New file.
25385         * modules/memcmp2: New file.
25386
25387 2009-03-07  Bruno Haible  <bruno@clisp.org>
25388
25389         Tests for module 'uninorm/decomposing-form'.
25390         * modules/uninorm/decomposing-form-tests: New file.
25391         * tests/uninorm/test-decomposing-form.c: New file.
25392
25393         New module 'uninorm/decomposing-form'.
25394         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25395         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25396         Add 'decomposing_variant' field.
25397         * lib/uninorm/decomposing-form.c: New file.
25398         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25399         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25400         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25401         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25402         * modules/uninorm/decomposing-form: New file.
25403         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25404         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25405
25406 2009-03-07  Bruno Haible  <bruno@clisp.org>
25407
25408         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25409         strings.
25410
25411 2009-03-06  Bruno Haible  <bruno@clisp.org>
25412
25413         Tests for module 'uninorm/u32-normcmp'.
25414         * tests/uninorm/test-u32-normcmp.c: New file.
25415         * modules/uninorm/u32-normcmp-tests: New file.
25416
25417         Tests for module 'uninorm/u16-normcmp'.
25418         * tests/uninorm/test-u16-normcmp.c: New file.
25419         * modules/uninorm/u16-normcmp-tests: New file.
25420
25421         Tests for module 'uninorm/u8-normcmp'.
25422         * tests/uninorm/test-u8-normcmp.c: New file.
25423         * modules/uninorm/u8-normcmp-tests: New file.
25424
25425         New module 'uninorm/u32-normcmp'.
25426         * lib/uninorm/u32-normcmp.c: New file.
25427         * modules/uninorm/u32-normcmp: New file.
25428
25429         New module 'uninorm/u16-normcmp'.
25430         * lib/uninorm/u16-normcmp.c: New file.
25431         * modules/uninorm/u16-normcmp: New file.
25432
25433         New module 'uninorm/u8-normcmp'.
25434         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25435         declarations.
25436         * lib/uninorm/u8-normcmp.c: New file.
25437         * lib/uninorm/u-normcmp.h: New file.
25438         * modules/uninorm/u8-normcmp: New file.
25439
25440 2009-03-06  Bruno Haible  <bruno@clisp.org>
25441
25442         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25443         Reported by Eric Blake.
25444
25445 2009-03-06  Eric Blake  <ebb9@byu.net>
25446             Bruno Haible  <bruno@clisp.org>
25447
25448         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25449         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25450         condition.
25451         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25452         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25453         condition.
25454         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25455
25456 2009-03-06  Eric Blake  <ebb9@byu.net>
25457
25458         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25459         to avoid compiler warnings.
25460         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25461
25462 2009-03-05  Bruno Haible  <bruno@clisp.org>
25463
25464         * tests/test-ftell.c (main): Disable test beyond end of file on
25465         FreeMiNT.
25466         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25467
25468 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25469
25470         * lib/filevercmp.c: Move hidden files up in ordering.
25471         * tests/test-filevercmp.c: Add tests for hidden files.
25472
25473 2009-03-04  Bruno Haible  <bruno@clisp.org>
25474
25475         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25476         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25477         AM_CFLAGS.
25478         Reported by Simon Josefsson.
25479
25480 2009-03-03  Bruno Haible  <bruno@clisp.org>
25481
25482         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25483         Reported by Simon Josefsson.
25484
25485         * doc/ld-version-script.texi: Update node reference.
25486
25487 2009-03-03  Bruno Haible  <bruno@clisp.org>
25488
25489         * modules/visibility (License): Change to 'unlimited'.
25490         Suggested by Simon Josefsson.
25491
25492 2009-03-03  Jim Meyering  <meyering@redhat.com>
25493
25494         unlinkdir: cannot_unlink_dir may modify process state
25495         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25496         it's neither thread-safe nor appropriate for use in a library.
25497
25498 2009-03-03  Eric Blake  <ebb9@byu.net>
25499
25500         test-closein: silence test under Darwin
25501         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25502         care if it dies from EPIPE or EBADF.
25503
25504 2009-03-03  Bruno Haible  <bruno@clisp.org>
25505
25506         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25507         earlier.
25508         * doc/visibility.texi: Fix @node and @section.
25509
25510 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25511
25512         * doc/gnulib.texi: Link to sections for ld version script and
25513         visibility.
25514         * doc/visibility.texi: Add @node and @section.
25515         * modules/ld-version-script: New module.
25516         * m4/ld-version-script.m4: New file.
25517         * doc/ld-version-script.texi: New file.
25518
25519 2009-03-02  David Lutterkort  <lutter@redhat.com>
25520
25521         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25523
25524 2009-03-02  Bruno Haible  <bruno@clisp.org>
25525
25526         * doc/visibility.texi: Mention libtool's -export-symbols option.
25527
25528 2009-03-02  Jim Meyering  <meyering@redhat.com>
25529
25530         announce-gen: new option: --no-print-checksums
25531         * build-aux/announce-gen (usage): Describe it.
25532         (print_checksums): Print a newline here, not in the [*] footnote.
25533         (main): Honor it.
25534
25535 2009-03-01  Bruno Haible  <bruno@clisp.org>
25536
25537         Use socklen_t in the native Windows replacements prototypes.
25538         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25539         instead of 'int'.
25540         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25541         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25542         * modules/getsockopt (Depends-on): Add socklen.
25543         * modules/setsockopt (Depends-on): Add socklen.
25544
25545 2009-03-01  Bruno Haible  <bruno@clisp.org>
25546
25547         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25548         least 4.2.
25549
25550 2009-03-01  Eric Blake  <ebb9@byu.net>
25551             Bruno Haible  <bruno@clisp.org>
25552
25553         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25554         error messages.
25555         * lib/wait-process.c (wait_subprocess): Omit error message about
25556         deadly signal sent to the child of termsigp != NULL.
25557
25558 2009-03-01  Eric Blake  <ebb9@byu.net>
25559
25560         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25561
25562 2009-03-01  Bruno Haible  <bruno@clisp.org>
25563
25564         Avoid a gcc warning.
25565         * tests/test-sched.c (b): Make global.
25566         Reported by Eric Blake.
25567
25568 2009-01-19  Martin Lambers  <marlam@marlam.de>
25569
25570         Provide POSIX semantics for socket timeout options on W32.
25571         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25572         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25573         * modules/setsockopt: Depend on sys_time module for struct timeval.
25574         * modules/getsockopt: Depend on sys_time module for struct timeval.
25575
25576 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25577
25578         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25579         __USE_GNU, for consistency with netdb.in.h.
25580         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25581
25582 2009-03-01  Bruno Haible  <bruno@clisp.org>
25583
25584         More support for FreeMiNT.
25585         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25586         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25587
25588 2009-03-01  Bruno Haible  <bruno@clisp.org>
25589
25590         More support for FreeMiNT.
25591         * lib/fpurge.c (fpurge): Correct last commit.
25592         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25593
25594 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25595
25596         Fix unportable awk script in vc-list-files.
25597         * build-aux/vc-list-files: In the replacement awk script, use
25598         substr with a second argument of 1, not zero.
25599         Report by Simon Josefsson.
25600
25601 2009-02-28  Bruno Haible  <bruno@clisp.org>
25602
25603         More support for FreeMiNT.
25604         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25605         to FreeMiNT today.
25606         * lib/fwriting.c (fwriting): Likewise.
25607         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25608
25609 2009-02-28  Bruno Haible  <bruno@clisp.org>
25610
25611         * tests/test-freadseek.c (main): Disable test beyond end of file on
25612         FreeMiNT.
25613         * tests/test-ftello.c (main): Likewise.
25614         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25615
25616 2009-02-28  Bruno Haible  <bruno@clisp.org>
25617
25618         Add tentative support for FreeMiNT.
25619         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25620         * lib/fpurge.c (fpurge): Likewise.
25621         * lib/freadable.c (freadable): Likewise.
25622         * lib/freading.c (freading): Likewise.
25623         * lib/freadptr.c (freadptr): Likewise.
25624         * lib/freadseek.c (freadptrinc): Likewise.
25625         * lib/fseeko.c (rpl_fseeko): Likewise.
25626         * lib/fseterr.c (fseterr): Likewise.
25627         * lib/fwritable.c (fwritable): Likewise.
25628         * lib/fwriting.c (fwriting): Likewise.
25629         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25630         Hourihane.
25631         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25632
25633 2009-02-28  Bruno Haible  <bruno@clisp.org>
25634
25635         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25636         SIGCHLD.
25637         Reported by Jim Meyering.
25638
25639 2009-02-28  Bruno Haible  <bruno@clisp.org>
25640
25641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25642         Mention the results of these tests on various platforms.
25643         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25644         order.
25645         * doc/posix-functions/printf.texi: Likewise.
25646         * doc/posix-functions/snprintf.texi: Likewise.
25647         * doc/posix-functions/sprintf.texi: Likewise.
25648         * doc/posix-functions/vfprintf.texi: Likewise.
25649         * doc/posix-functions/vprintf.texi: Likewise.
25650         * doc/posix-functions/vsnprintf.texi: Likewise.
25651         * doc/posix-functions/vsprintf.texi: Likewise.
25652         * doc/glibc-functions/obstack_printf.texi: Likewise.
25653         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25654
25655 2009-02-28  Bruno Haible  <bruno@clisp.org>
25656
25657         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25658         Reported by Loïc Minier <lool@dooz.org>.
25659
25660 2009-02-27  Bruno Haible  <bruno@clisp.org>
25661
25662         * gnulib-tool (func_import): Make the sed expression used to create the
25663         sed script for updating the .gitignore file POSIX compliant.
25664         Reported by Eric Blake.
25665
25666 2009-02-27  Bruno Haible  <bruno@clisp.org>
25667
25668         * gnulib-tool (sed): Don't alias as "sed --posix".
25669         Reported by Eric Blake.
25670
25671 2009-02-27  Bruno Haible  <bruno@clisp.org>
25672
25673         Avoid test link errors.
25674         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25675         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25676         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25677         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25679
25680 2009-02-27  Bruno Haible  <bruno@clisp.org>
25681
25682         Avoid spurious "(cached)" in configure output.
25683         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25684         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25685         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25686         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25687         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25688         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25689         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25690         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25691         Reported by Eric Blake.
25692
25693 2009-02-27  Eric Blake  <ebb9@byu.net>
25694
25695         printf: fix regression in previous patch
25696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25697
25698 2009-02-27  Bruno Haible  <bruno@clisp.org>
25699
25700         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25701         value.
25702         * lib/stdint.in.h: Likewise.
25703         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25704
25705 2009-02-27  Eric Blake  <ebb9@byu.net>
25706
25707         doc: mention more functions added in cygwin 1.7.0
25708         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25709         addition.
25710         * doc/posix-functions/open_wmemstream.texi: Likewise.
25711         * doc/posix-functions/wcsnlen.texi: Likewise.
25712         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25713         * doc/posix-functions/wcstod.texi: Likewise.
25714         * doc/posix-functions/wcstof.texi: Likewise.
25715         * doc/posix-functions/wcstoimax.texi: Likewise.
25716         * doc/posix-functions/wcstok.texi: Likewise.
25717         * doc/posix-functions/wcstoumax.texi: Likewise.
25718
25719         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25720         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25721         * doc/posix-functions/fprintf.texi: Update.
25722         * doc/posix-functions/printf.texi: Update.
25723         * doc/posix-functions/snprintf.texi: Update.
25724         * doc/posix-functions/sprintf.texi: Update.
25725         * doc/posix-functions/vfprintf.texi: Update.
25726         * doc/posix-functions/vprintf.texi: Update.
25727         * doc/posix-functions/vsnprintf.texi: Update.
25728         * doc/posix-functions/vsprintf.texi: Update.
25729         * doc/glibc-functions/obstack_printf.texi: Update.
25730         * doc/glibc-functions/obstack_vprintf.texi: Update.
25731
25732 2009-02-26  Eric Blake  <ebb9@byu.net>
25733
25734         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25735         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25736         compilation bug by using runtime conversion.
25737         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25738         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25739         * modules/ceill-tests (Files): Use nan.h.
25740         * modules/floorl-tests (Files): Likewise.
25741         * modules/frexpl-tests (Files): Likewise.
25742         * modules/isnanl-tests (Files): Likewise.
25743         * modules/ldexpl-tests (Files): Likewise.
25744         * modules/roundl-tests (Files): Likewise.
25745         * modules/truncl-tests (Files): Likewise.
25746         * tests/test-ceill.c (main): Use a working NaN.
25747         * tests/test-floorl.c (main): Likewise.
25748         * tests/test-frexpl.c (main): Likewise.
25749         * tests/test-isnan.c (test_long_double): Likewise.
25750         * tests/test-isnanl.h (main): Likewise.
25751         * tests/test-ldexpl.h (main): Likewise.
25752         * tests/test-roundl.h (main): Likewise.
25753         * tests/test-truncl.h (main): Likewise.
25754         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25755
25756 2009-02-26  Eric Blake  <ebb9@byu.net>
25757             Bruno Haible  <bruno@clisp.org>
25758
25759         Work around a *printf bug with %ls on Solaris.
25760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25761         precision is specified, sprintf stops converting the wide string
25762         argument when the number of bytes that have been produced by this
25763         conversion equals or exceeds the precision.
25764         * doc/posix-functions/fprintf.texi: Update.
25765         * doc/posix-functions/printf.texi: Update.
25766         * doc/posix-functions/snprintf.texi: Update.
25767         * doc/posix-functions/sprintf.texi: Update.
25768         * doc/posix-functions/vfprintf.texi: Update.
25769         * doc/posix-functions/vprintf.texi: Update.
25770         * doc/posix-functions/vsnprintf.texi: Update.
25771         * doc/posix-functions/vsprintf.texi: Update.
25772         * doc/glibc-functions/obstack_printf.texi: Update.
25773         * doc/glibc-functions/obstack_vprintf.texi: Update.
25774
25775 2009-02-26  Eric Blake  <ebb9@byu.net>
25776
25777         stdlib: favor compiler check of random.h
25778         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25779         to avoid an ObjC random.h installed by Swarm.
25780
25781 2009-02-26  Bruno Haible  <bruno@clisp.org>
25782
25783         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25784         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25785         Reported by Gary V. Vaughan <gary@gnu.org>.
25786
25787 2009-02-26  Bruno Haible  <bruno@clisp.org>
25788
25789         Fix *printf behaviour regarding the %ls directive.
25790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25791         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25792         NEED_PRINTF_DIRECTIVE_LS.
25793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25794         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25795         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25796         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25797         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25798         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25799         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25800         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25801         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25804         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25808         * doc/posix-functions/fprintf.texi: Update.
25809         * doc/posix-functions/printf.texi: Update.
25810         * doc/posix-functions/snprintf.texi: Update.
25811         * doc/posix-functions/sprintf.texi: Update.
25812         * doc/posix-functions/vfprintf.texi: Update.
25813         * doc/posix-functions/vprintf.texi: Update.
25814         * doc/posix-functions/vsnprintf.texi: Update.
25815         * doc/posix-functions/vsprintf.texi: Update.
25816         * doc/glibc-functions/obstack_printf.texi: Update.
25817         * doc/glibc-functions/obstack_vprintf.texi: Update.
25818         Reported by Eric Blake.
25819
25820 2009-02-25  Bruno Haible  <bruno@clisp.org>
25821
25822         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25823         with known value.
25824         Reported by Gary V. Vaughan <gary@gnu.org>.
25825
25826 2009-02-25  Bruno Haible  <bruno@clisp.org>
25827
25828         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25829         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25830         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25831         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25832         Reported by Gary V. Vaughan <gary@gnu.org>.
25833
25834 2009-02-25  Bruno Haible  <bruno@clisp.org>
25835
25836         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25837         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25838         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25839         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25840         Reported by Gary V. Vaughan <gary@gnu.org>.
25841
25842 2009-02-25  Eric Blake  <ebb9@byu.net>
25843
25844         tests: skip fseek/ftell tests if ungetc is broken
25845         * m4/ungetc.m4: New file.
25846         * modules/fseek-tests: Split test, so ungetc dependency is
25847         separate from rest of test.
25848         * modules/fseeko-tests: Likewise.
25849         * modules/ftell-tests: Likewise.
25850         * modules/ftello-tests: Likewise.
25851         * tests/test-fseek.c (main): Isolate ungetc dependency.
25852         * tests/test-fseeko.c (main): Likewise.
25853         * tests/test-ftell.c (main): Likewise.
25854         * tests/test-ftello.c (main): Likewise.
25855         * tests/test-fseek2.sh: New file.
25856         * tests/test-fseeko2.sh: Likewise.
25857         * tests/test-ftell2.sh: Likewise.
25858         * tests/test-ftello2.sh: Likewise.
25859
25860 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
25861
25862         test-getaddrinfo: fix usage of skip return code 77
25863         * tests/test-gettaddrinfo.c: Return skip code 77 only
25864         for first occurance of skip (4x77 is not 77)
25865
25866 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25867
25868         strtod: avoid C99 decl-after-statement
25869         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25870
25871 2009-02-24  Eric Blake  <ebb9@byu.net>
25872
25873         strtod: detect HP-UX 11.31 bug
25874         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25875         Reported by Gary V. Vaughan.
25876
25877 2009-02-23  Bruno Haible  <bruno@clisp.org>
25878
25879         Fix invalid read past end of memory block.
25880         * lib/vasnprintf.c (DCHAR_SET): Define.
25881         (local_wcslen): Define only when needed.
25882         (local_strnlen, local_wcsnlen): New functions.
25883         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25884         directives that involve a conversion ourselves.
25885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25886         wcsnlen, mbrtowc, wcrtomb.
25887         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25888         * tests/test-vasprintf-posix.c (test_function): Likewise.
25889         * tests/test-snprintf-posix.h (test_function): Likewise.
25890         * tests/test-sprintf-posix.h (test_function): Likewise.
25891         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25892
25893 2009-02-22  Bruno Haible  <bruno@clisp.org>
25894
25895         Implement new clarified decomposition of Hangul syllables.
25896         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25897         of type LTV, return only a pairwise decomposition.
25898         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25899         Likewise.
25900         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25901         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25902         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25903
25904 2009-02-22  Bruno Haible  <bruno@clisp.org>
25905
25906         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25907         zero-length results and shrink excess allocated memory.
25908         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25909         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25910         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25911         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25912         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25913         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25914         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25915         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25916         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25917         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25918         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25919         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25920
25921 2009-02-21  Bruno Haible  <bruno@clisp.org>
25922
25923         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25924         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25925         spaces after a period. Put a space between a macro name and its
25926         argument list. Trivial rewordings.
25927         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25928         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25929         (main): Return 0 explicitly.
25930
25931 2009-02-21  Bruno Haible  <bruno@clisp.org>
25932
25933         Tests for module 'uninorm/filter'.
25934         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25935         * modules/uninorm/filter-tests: New file.
25936
25937         New module 'uninorm/filter'.
25938         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25939         uninorm_filter_flush, uninorm_filter_free): New declarations.
25940         * lib/uninorm/uninorm-filter.c: New file.
25941         * modules/uninorm/filter: New file.
25942
25943 2009-02-21  Bruno Haible  <bruno@clisp.org>
25944
25945         Tests for module 'uninorm/nfkc'.
25946         * tests/uninorm/test-nfkc.c: New file.
25947         * tests/uninorm/test-u8-nfkc.c: New file.
25948         * tests/uninorm/test-u16-nfkc.c: New file.
25949         * tests/uninorm/test-u32-nfkc.c: New file.
25950         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25951         * tests/uninorm/test-u32-nfkc-big.c: New file.
25952         * modules/uninorm/nfkc-tests: New file.
25953
25954         New module 'uninorm/nfkc'.
25955         * lib/uninorm/nfkc.c: New file.
25956         * modules/uninorm/nfkc: New file.
25957
25958         Tests for module 'uninorm/nfkd'.
25959         * tests/uninorm/test-nfkd.c: New file.
25960         * tests/uninorm/test-u8-nfkd.c: New file.
25961         * tests/uninorm/test-u16-nfkd.c: New file.
25962         * tests/uninorm/test-u32-nfkd.c: New file.
25963         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25964         * tests/uninorm/test-u32-nfkd-big.c: New file.
25965         * modules/uninorm/nfkd-tests: New file.
25966
25967         New module 'uninorm/nfkd'.
25968         * lib/uninorm/nfkd.c: New file.
25969         * modules/uninorm/nfkd: New file.
25970
25971         Tests for module 'uninorm/nfc'.
25972         * tests/uninorm/test-nfc.c: New file.
25973         * tests/uninorm/test-u8-nfc.c: New file.
25974         * tests/uninorm/test-u16-nfc.c: New file.
25975         * tests/uninorm/test-u32-nfc.c: New file.
25976         * tests/uninorm/test-u32-nfc-big.sh: New file.
25977         * tests/uninorm/test-u32-nfc-big.c: New file.
25978         * modules/uninorm/nfc-tests: New file.
25979
25980         New module 'uninorm/nfc'.
25981         * lib/uninorm/nfc.c: New file.
25982         * modules/uninorm/nfc: New file.
25983
25984         Tests for module 'uninorm/nfd'.
25985         * tests/uninorm/test-nfd.c: New file.
25986         * tests/uninorm/test-u8-nfd.c: New file.
25987         * tests/uninorm/test-u16-nfd.c: New file.
25988         * tests/uninorm/test-u32-nfd.c: New file.
25989         * tests/uninorm/test-u32-nfd-big.sh: New file.
25990         * tests/uninorm/test-u32-nfd-big.c: New file.
25991         * tests/uninorm/test-u32-normalize-big.h: New file.
25992         * tests/uninorm/test-u32-normalize-big.c: New file.
25993         * tests/uninorm/NormalizationTest.txt: New file, created from
25994         Unicode 5.1.0 NormalizationTest.txt.
25995         * modules/uninorm/nfd-tests: New file.
25996
25997         New module 'uninorm/nfd'.
25998         * lib/uninorm/nfd.c: New file.
25999         * modules/uninorm/nfd: New file.
26000
26001         New module 'uninorm/u32-normalize'.
26002         * lib/uninorm/u32-normalize.c: New file.
26003         * modules/uninorm/u32-normalize: New file.
26004
26005         New module 'uninorm/u16-normalize'.
26006         * lib/uninorm/u16-normalize.c: New file.
26007         * modules/uninorm/u16-normalize: New file.
26008
26009         New module 'uninorm/u8-normalize'.
26010         * lib/uninorm/u8-normalize.c: New file.
26011         * lib/uninorm/normalize-internal.h: New file.
26012         * lib/uninorm/u-normalize-internal.h: New file.
26013         * modules/uninorm/u8-normalize: New file.
26014
26015         New module 'uninorm/decompose-internal'.
26016         * lib/uninorm/decompose-internal.c: New file.
26017         * modules/uninorm/decompose-internal: New file.
26018
26019         Tests for module 'uninorm/composition'.
26020         * tests/uninorm/test-composition.c: New file.
26021         * modules/uninorm/composition-tests: New file.
26022
26023         New module 'uninorm/composition'.
26024         * lib/uninorm/composition.c: New file.
26025         * lib/uninorm/composition-table.gperf: New file, generated by
26026         gen-uni-tables.
26027         * modules/uninorm/composition: New file.
26028
26029         Tests for module 'uninorm/compat-decomposition'.
26030         * tests/uninorm/test-compat-decomposition.c: New file.
26031         * modules/uninorm/compat-decomposition-tests: New file.
26032
26033         New module 'uninorm/compat-decomposition'.
26034         * lib/uninorm/decompose-internal.h: New file.
26035         * lib/uninorm/compat-decomposition.c: New file.
26036         * modules/uninorm/compat-decomposition: New file.
26037
26038         Tests for module 'uninorm/canonical-decomposition'.
26039         * tests/uninorm/test-canonical-decomposition.c: New file.
26040         * modules/uninorm/canonical-decomposition-tests: New file.
26041
26042         New module 'uninorm/canonical-decomposition'.
26043         * lib/uninorm/canonical-decomposition.c: New file.
26044         * modules/uninorm/canonical-decomposition: New file.
26045
26046         Tests for module 'uninorm/decomposition'.
26047         * tests/uninorm/test-decomposition.c: New file.
26048         * modules/uninorm/decomposition-tests: New file.
26049
26050         New module 'uninorm/decomposition'.
26051         * lib/uninorm/decomposition.c: New file.
26052         * modules/uninorm/decomposition: New file.
26053
26054         New module 'uninorm/decomposition-table'.
26055         * lib/uninorm/decomposition-table.h: New file.
26056         * lib/uninorm/decomposition-table.c: New file.
26057         * lib/uninorm/decomposition-table1.h: New file, generated by
26058         gen-uni-tables.
26059         * lib/uninorm/decomposition-table2.h: New file, generated by
26060         gen-uni-tables.
26061         * modules/uninorm/decomposition-table: New file.
26062
26063         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
26064         (UC_DECOMP_*): New enumeration items.
26065         (get_decomposition): New function.
26066         (struct decomp_table): New type.
26067         (output_decomposition, output_decomposition_tables): New functions.
26068         (unicode_composition_exclusions): New variable.
26069         (fill_composition_exclusions, debug_output_composition_tables): New
26070         functions.
26071         (main): Accept one more argument. Invoke fill_composition_exclusions.
26072         Output decomposition and composition tables.
26073
26074         New module 'uninorm/base'.
26075         * lib/uninorm.h: New file.
26076         * lib/unictype.h: Update comment.
26077         * modules/uninorm/base: New file.
26078
26079 2009-02-21  David Lutterkort  <lutter@redhat.com>
26080
26081         Tests for module 'safe-alloc'.
26082         * tests/test-safe-alloc.c: New file.
26083         * modules/safe-alloc-tests: New file.
26084
26085         New module 'safe-alloc'.
26086         * lib/safe-alloc.h: New file.
26087         * lib/safe-alloc.c: New file.
26088         * m4/safe-alloc.m4: New file.
26089         * modules/safe-alloc: New file.
26090         * doc/safe-alloc.texi: New file.
26091         * doc/gnulib.texi: Include it.
26092         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26093         safe-alloc.
26094
26095 2009-02-18  Bruno Haible  <bruno@clisp.org>
26096
26097         Fix link error on non-glibc systems.
26098         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26099         variable.
26100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26101
26102 2009-02-18  Jim Meyering  <meyering@redhat.com>
26103
26104         fts: avoid used-uninitialized error due to recent change
26105         * lib/fts.c (fts_read): Guard uses of the new member,
26106         parent->fts_n_dirs_remaining, since it's not relevant for
26107         the parent of a directory specified on the command-line.
26108
26109 2009-02-17  James Youngman  <jay@gnu.org>
26110             Bruno Haible  <bruno@clisp.org>
26111
26112         * m4/include_next.m4: Reformulate comment.
26113
26114 2009-02-16  Jim Meyering  <meyering@redhat.com>
26115
26116         fts: add #if guards so that the fts_lgpl module still builds
26117         * lib/fts.c: Guard just-added hash-table-using parts with
26118         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26119         Reported by Simon Josefsson.
26120
26121 2009-02-15  Bruno Haible  <bruno@clisp.org>
26122
26123         * modules/array-mergesort-tests: New file.
26124         * tests/test-array-mergesort.c: New file.
26125
26126         New module 'array-mergesort'.
26127         * modules/array-mergesort: New file.
26128         * lib/array-mergesort.h: New file.
26129
26130 2009-02-15  Bruno Haible  <bruno@clisp.org>
26131
26132         Fix 2009-02-07 commit.
26133         * lib/gen-uni-tables.c (output_predicate, output_category,
26134         output_combclass, output_bidi_category, output_decimal_digit,
26135         output_digit, output_numeric, output_mirror, output_scripts,
26136         output_ident_category, output_simple_mapping): Fix format directives.
26137         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
26138
26139 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
26140
26141         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
26142         fixes are available from IBM.
26143
26144 2009-02-13  Jim Meyering  <meyering@redhat.com>
26145
26146         fts: arrange not to stat non-directories in more cases
26147         This makes GNU find (when it doesn't need to stat each file)
26148         *much* more efficient at traversing reiserfs file systems.
26149         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
26150         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
26151         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
26152         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
26153         (leaf_optimization_applies): New function.
26154         (LCO_hash, LCO_compare): New helper functions.
26155         (link_count_optimize_ok): New function.
26156         (fts_stat): Initialize new member (if dir).
26157         (fts_read): Decrement parent's fts_n_dirs_remaining count if
26158         we've just stat'ed a directory.  Skip the stat call when possible.
26159         ---
26160         Note this AFS-related exchange:
26161         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
26162         and note find's pioctl call in find/fstype.c.
26163         But that is necessary only if you want to enable the
26164         optimization for AFS, and for now, I don't.
26165
26166         fts: move a function definition "up" (no semantic change)
26167         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
26168         "up" to precede upcoming use of a related function.
26169
26170 2009-02-11  Jim Meyering  <meyering@redhat.com>
26171
26172         fts: correct internal computation of nlinks (optimization-related)
26173         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
26174         whether the current entry is a directory, so don't test it.
26175
26176 2009-02-10  Bruno Haible  <bruno@clisp.org>
26177
26178         Tests for module 'uniwbrk/ulc-wordbreaks'.
26179         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
26180         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
26181         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
26182
26183         Tests for module 'uniwbrk/u32-wordbreaks'.
26184         * modules/uniwbrk/u32-wordbreaks-tests: New file.
26185         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
26186
26187         Tests for module 'uniwbrk/u16-wordbreaks'.
26188         * modules/uniwbrk/u16-wordbreaks-tests: New file.
26189         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
26190
26191         Tests for module 'uniwbrk/u8-wordbreaks'.
26192         * modules/uniwbrk/u8-wordbreaks-tests: New file.
26193         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
26194
26195 2009-02-10  Bruno Haible  <bruno@clisp.org>
26196
26197         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
26198         property.
26199         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
26200         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
26201         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
26202
26203 2009-02-10  Simon Josefsson  <simon@josefsson.org>
26204
26205         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
26206         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
26207
26208 2009-02-10  Bruno Haible  <bruno@clisp.org>
26209
26210         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
26211         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
26212         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
26213         * lib/unilbrk/u8-possible-linebreaks.c: Update.
26214         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
26215         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
26216
26217 2009-02-09  Simon Josefsson  <simon@josefsson.org>
26218
26219         * lib/sockets.h (gl_fd_to_handle): New function.
26220
26221         * tests/test-sockets.c: Call gl_fd_to_handle.
26222
26223 2009-02-09  Bruno Haible  <bruno@clisp.org>
26224
26225         * doc/havelib.texi: Document the conventions on bi-arch systems.
26226
26227 2009-02-08  Bruno Haible  <bruno@clisp.org>
26228
26229         Document the AC_LIB_LINKFLAGS macro.
26230         * doc/havelib.texi: New file, mostly written on 2005-05-24.
26231         * doc/gnulib.texi: Include it.
26232
26233 2009-02-08  Bruno Haible  <bruno@clisp.org>
26234
26235         Fix wrong order of sections, compared to TOC.
26236         * doc/gnulib.texi: Include relocatable-maint.texi after the
26237         "Regular expressions" node, not before.
26238
26239 2009-02-08  Bruno Haible  <bruno@clisp.org>
26240
26241         Tests for module 'unicase/totitle'.
26242         * modules/unicase/totitle-tests: New file.
26243
26244         Tests for module 'unicase/tolower'.
26245         * modules/unicase/tolower-tests: New file.
26246
26247         Tests for module 'unicase/toupper'.
26248         * modules/unicase/toupper-tests: New file.
26249         * tests/unicase/test-mapping-part1.h: New file.
26250         * tests/unicase/test-mapping-part2.h: New file.
26251
26252         New module 'unicase/totitle'.
26253         * modules/unicase/totitle: New file.
26254         * lib/unicase/totitle.c: New file.
26255
26256         New module 'unicase/tolower'.
26257         * modules/unicase/tolower: New file.
26258         * lib/unicase/tolower.c: New file.
26259
26260         New module 'unicase/toupper'.
26261         * modules/unicase/toupper: New file.
26262         * lib/unicase/toupper.c: New file.
26263         * lib/unicase/simple-mapping.h: New file.
26264
26265         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26266         (mapping_table): New structure.
26267         (output_simple_mapping): New function.
26268         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26269         * modules/gen-uni-tables (Description): Update.
26270         * lib/unicase/toupper.h: New file, automatically generated by
26271         gen-uni-tables.
26272         * lib/unicase/tolower.h: New file, automatically generated by
26273         gen-uni-tables.
26274         * lib/unicase/totitle.h: New file, automatically generated by
26275         gen-uni-tables.
26276         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26277         gen-uni-tables.
26278         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26279         gen-uni-tables.
26280         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26281         gen-uni-tables.
26282
26283         New module 'unicase/base'.
26284         * modules/unicase/base: New file.
26285         * lib/unicase.h: New file.
26286
26287 2009-02-08  Bruno Haible  <bruno@clisp.org>
26288
26289         New module 'uniwbrk/ulc-wordbreaks'.
26290         * modules/uniwbrk/ulc-wordbreaks: New file.
26291         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26292
26293         New module 'uniwbrk/u32-wordbreaks'.
26294         * modules/uniwbrk/u32-wordbreaks: New file.
26295         * lib/uniwbrk/u32-wordbreaks.c: New file.
26296
26297         New module 'uniwbrk/u16-wordbreaks'.
26298         * modules/uniwbrk/u16-wordbreaks: New file.
26299         * lib/uniwbrk/u16-wordbreaks.c: New file.
26300
26301         New module 'uniwbrk/u8-wordbreaks'.
26302         * modules/uniwbrk/u8-wordbreaks: New file.
26303         * lib/uniwbrk/u8-wordbreaks.c: New file.
26304         * lib/uniwbrk/u-wordbreaks.h: New file.
26305
26306         New module 'uniwbrk/table'.
26307         * modules/uniwbrk/table: New file.
26308         * lib/uniwbrk/wbrktable.h: New file.
26309         * lib/uniwbrk/wbrktable.c: New file.
26310
26311         New module 'uniwbrk/wordbreak-property'.
26312         * modules/uniwbrk/wordbreak-property: New file.
26313         * lib/uniwbrk/wordbreak-property.c: New file.
26314
26315         * lib/gen-uni-tables.c (WBP_*): New enum items.
26316         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26317         (unicode_org_wbp): New variable.
26318         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26319         New functions.
26320         (wbp_table): New structure.
26321         (output_wbp, output_wbrk_tables): New functions.
26322         (main): Accept additional argument. Invoke fill_org_wbp,
26323         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26324         output_wbrk_tables.
26325         * modules/gen-uni-tables (Description): Update.
26326         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26327         gen-uni-tables.
26328
26329         New module 'uniwbrk/base'.
26330         * modules/uniwbrk/base: New file.
26331         * lib/uniwbrk.h: New file.
26332
26333 2009-02-08  Bruno Haible  <bruno@clisp.org>
26334
26335         Update to Unicode 5.1.0.
26336         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26337         U+2185..U+2188.
26338         (is_property_default_ignorable_code_point): Don't include characters
26339         of category Cc or Cs and not-a-characters.
26340         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26341         U+0D79, U+109E, U+109F, U+A60C.
26342         * lib/unictype/bidi_of.h: Regenerated.
26343         * lib/unictype/blocks.h: Regenerated.
26344         * lib/unictype/categ_C.h: Regenerated.
26345         * lib/unictype/categ_Cf.h: Regenerated.
26346         * lib/unictype/categ_Cn.h: Regenerated.
26347         * lib/unictype/categ_L.h: Regenerated.
26348         * lib/unictype/categ_Ll.h: Regenerated.
26349         * lib/unictype/categ_Lm.h: Regenerated.
26350         * lib/unictype/categ_Lo.h: Regenerated.
26351         * lib/unictype/categ_Lu.h: Regenerated.
26352         * lib/unictype/categ_M.h: Regenerated.
26353         * lib/unictype/categ_Mc.h: Regenerated.
26354         * lib/unictype/categ_Me.h: Regenerated.
26355         * lib/unictype/categ_Mn.h: Regenerated.
26356         * lib/unictype/categ_N.h: Regenerated.
26357         * lib/unictype/categ_Nd.h: Regenerated.
26358         * lib/unictype/categ_Nl.h: Regenerated.
26359         * lib/unictype/categ_No.h: Regenerated.
26360         * lib/unictype/categ_P.h: Regenerated.
26361         * lib/unictype/categ_Pd.h: Regenerated.
26362         * lib/unictype/categ_Pe.h: Regenerated.
26363         * lib/unictype/categ_Pf.h: Regenerated.
26364         * lib/unictype/categ_Pi.h: Regenerated.
26365         * lib/unictype/categ_Po.h: Regenerated.
26366         * lib/unictype/categ_Ps.h: Regenerated.
26367         * lib/unictype/categ_S.h: Regenerated.
26368         * lib/unictype/categ_Sk.h: Regenerated.
26369         * lib/unictype/categ_Sm.h: Regenerated.
26370         * lib/unictype/categ_So.h: Regenerated.
26371         * lib/unictype/categ_of.h: Regenerated.
26372         * lib/unictype/combining.h: Regenerated.
26373         * lib/unictype/ctype_alnum.h: Regenerated.
26374         * lib/unictype/ctype_alpha.h: Regenerated.
26375         * lib/unictype/ctype_graph.h: Regenerated.
26376         * lib/unictype/ctype_lower.h: Regenerated.
26377         * lib/unictype/ctype_print.h: Regenerated.
26378         * lib/unictype/ctype_punct.h: Regenerated.
26379         * lib/unictype/ctype_upper.h: Regenerated.
26380         * lib/unictype/decdigit.h: Regenerated.
26381         * lib/unictype/digit.h: Regenerated.
26382         * lib/unictype/mirror.h: Regenerated.
26383         * lib/unictype/numeric.h: Regenerated.
26384         * lib/unictype/pr_alphabetic.h: Regenerated.
26385         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26386         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26387         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26388         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26389         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26390         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26391         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26392         * lib/unictype/pr_combining.h: Regenerated.
26393         * lib/unictype/pr_dash.h: Regenerated.
26394         * lib/unictype/pr_decimal_digit.h: Regenerated.
26395         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26396         * lib/unictype/pr_deprecated.h: Regenerated.
26397         * lib/unictype/pr_diacritic.h: Regenerated.
26398         * lib/unictype/pr_extender.h: Regenerated.
26399         * lib/unictype/pr_format_control.h: Regenerated.
26400         * lib/unictype/pr_grapheme_base.h: Regenerated.
26401         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26402         * lib/unictype/pr_grapheme_link.h: Regenerated.
26403         * lib/unictype/pr_id_continue.h: Regenerated.
26404         * lib/unictype/pr_id_start.h: Regenerated.
26405         * lib/unictype/pr_ideographic.h: Regenerated.
26406         * lib/unictype/pr_ignorable_control.h: Regenerated.
26407         * lib/unictype/pr_lowercase.h: Regenerated.
26408         * lib/unictype/pr_math.h: Regenerated.
26409         * lib/unictype/pr_numeric.h: Regenerated.
26410         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26411         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26412         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26413         * lib/unictype/pr_other_id_continue.h: Regenerated.
26414         * lib/unictype/pr_other_lowercase.h: Regenerated.
26415         * lib/unictype/pr_other_math.h: Regenerated.
26416         * lib/unictype/pr_punctuation.h: Regenerated.
26417         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26418         * lib/unictype/pr_soft_dotted.h: Regenerated.
26419         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26420         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26421         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26422         * lib/unictype/pr_uppercase.h: Regenerated.
26423         * lib/unictype/pr_xid_continue.h: Regenerated.
26424         * lib/unictype/pr_xid_start.h: Regenerated.
26425         * lib/unictype/pr_zero_width.h: Regenerated.
26426         * lib/unictype/scripts.h: Regenerated.
26427         * lib/unictype/scripts_byname.gperf: Regenerated.
26428         * lib/unictype/sy_java_ident.h: Regenerated.
26429         * lib/unilbrk/lbrkprop1.h: Regenerated.
26430         * lib/unilbrk/lbrkprop2.h: Regenerated.
26431         * tests/unictype/test-categ_C.c: Regenerated.
26432         * tests/unictype/test-categ_Cf.c: Regenerated.
26433         * tests/unictype/test-categ_Cn.c: Regenerated.
26434         * tests/unictype/test-categ_L.c: Regenerated.
26435         * tests/unictype/test-categ_Ll.c: Regenerated.
26436         * tests/unictype/test-categ_Lm.c: Regenerated.
26437         * tests/unictype/test-categ_Lo.c: Regenerated.
26438         * tests/unictype/test-categ_Lu.c: Regenerated.
26439         * tests/unictype/test-categ_M.c: Regenerated.
26440         * tests/unictype/test-categ_Mc.c: Regenerated.
26441         * tests/unictype/test-categ_Me.c: Regenerated.
26442         * tests/unictype/test-categ_Mn.c: Regenerated.
26443         * tests/unictype/test-categ_N.c: Regenerated.
26444         * tests/unictype/test-categ_Nd.c: Regenerated.
26445         * tests/unictype/test-categ_Nl.c: Regenerated.
26446         * tests/unictype/test-categ_No.c: Regenerated.
26447         * tests/unictype/test-categ_P.c: Regenerated.
26448         * tests/unictype/test-categ_Pd.c: Regenerated.
26449         * tests/unictype/test-categ_Pe.c: Regenerated.
26450         * tests/unictype/test-categ_Pf.c: Regenerated.
26451         * tests/unictype/test-categ_Pi.c: Regenerated.
26452         * tests/unictype/test-categ_Po.c: Regenerated.
26453         * tests/unictype/test-categ_Ps.c: Regenerated.
26454         * tests/unictype/test-categ_S.c: Regenerated.
26455         * tests/unictype/test-categ_Sk.c: Regenerated.
26456         * tests/unictype/test-categ_Sm.c: Regenerated.
26457         * tests/unictype/test-categ_So.c: Regenerated.
26458         * tests/unictype/test-ctype_alnum.c: Regenerated.
26459         * tests/unictype/test-ctype_alpha.c: Regenerated.
26460         * tests/unictype/test-ctype_graph.c: Regenerated.
26461         * tests/unictype/test-ctype_lower.c: Regenerated.
26462         * tests/unictype/test-ctype_print.c: Regenerated.
26463         * tests/unictype/test-ctype_punct.c: Regenerated.
26464         * tests/unictype/test-ctype_upper.c: Regenerated.
26465         * tests/unictype/test-decdigit.h: Regenerated.
26466         * tests/unictype/test-digit.h: Regenerated.
26467         * tests/unictype/test-numeric.h: Regenerated.
26468         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26469         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26470         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26471         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26472         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26473         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26474         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26475         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26476         * tests/unictype/test-pr_combining.c: Regenerated.
26477         * tests/unictype/test-pr_dash.c: Regenerated.
26478         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26479         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26480         * tests/unictype/test-pr_deprecated.c: Regenerated.
26481         * tests/unictype/test-pr_diacritic.c: Regenerated.
26482         * tests/unictype/test-pr_extender.c: Regenerated.
26483         * tests/unictype/test-pr_format_control.c: Regenerated.
26484         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26485         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26486         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26487         * tests/unictype/test-pr_id_continue.c: Regenerated.
26488         * tests/unictype/test-pr_id_start.c: Regenerated.
26489         * tests/unictype/test-pr_ideographic.c: Regenerated.
26490         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26491         * tests/unictype/test-pr_lowercase.c: Regenerated.
26492         * tests/unictype/test-pr_math.c: Regenerated.
26493         * tests/unictype/test-pr_numeric.c: Regenerated.
26494         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26495         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26496         Regenerated.
26497         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26498         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26499         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26500         * tests/unictype/test-pr_other_math.c: Regenerated.
26501         * tests/unictype/test-pr_punctuation.c: Regenerated.
26502         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26503         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26504         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26505         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26506         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26507         * tests/unictype/test-pr_uppercase.c: Regenerated.
26508         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26509         * tests/unictype/test-pr_xid_start.c: Regenerated.
26510         * tests/unictype/test-pr_zero_width.c: Regenerated.
26511
26512         Update to Unicode 5.1.0.
26513         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26514         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26515         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26516         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26517         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26518         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26519         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26520         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26521         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26522         (nonspacing_table_ind): Update.
26523         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26524
26525         Update to Unicode 5.1.0.
26526         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26527         code transform.
26528         * lib/uniname/uniname.c (unicode_character_name,
26529         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26530         * lib/uniname/uninames.h: Regenerated.
26531         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26532
26533 2009-02-07  Bruno Haible  <bruno@clisp.org>
26534
26535         Merge gen-ctype and gen-lbrk into a single program.
26536         * lib/gen-uni-tables.c: New file, incorporating
26537         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26538         Add directory prefixes to the names of the generated files.
26539         * lib/unictype/gen-ctype.c: Remove file.
26540         * lib/unilbrk/gen-lbrk.c: Remove file.
26541         * modules/gen-uni-tables: New file.
26542         * modules/unictype/gen-ctype: Remove file.
26543         * modules/unilbrk/gen-lbrk: Remove file.
26544
26545 2009-02-07  Bruno Haible  <bruno@clisp.org>
26546
26547         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26548
26549         New module 'unistr/u32-strcoll'.
26550         * modules/unistr/u32-strcoll: New file.
26551         * lib/unistr/u32-strcoll.c: New file.
26552
26553         New module 'unistr/u16-strcoll'.
26554         * modules/unistr/u16-strcoll: New file.
26555         * lib/unistr/u16-strcoll.c: New file.
26556
26557         New module 'unistr/u8-strcoll'.
26558         * modules/unistr/u8-strcoll: New file.
26559         * lib/unistr/u8-strcoll.c: New file.
26560         * lib/unistr/u-strcoll.h: New file.
26561
26562 2009-02-07  Bruno Haible  <bruno@clisp.org>
26563
26564         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26565         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26566         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26567         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26568         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26569         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26570
26571 2009-02-07  Bruno Haible  <bruno@clisp.org>
26572
26573         Make 64-bit clean.
26574         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26575         output_combclass, output_bidi_category, output_decimal_digit,
26576         output_digit, output_numeric, output_mirror, output_scripts,
26577         output_ident_category): Use proper width specifier in format strings.
26578
26579 2009-02-07  Bruno Haible  <bruno@clisp.org>
26580
26581         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26582         failure behaviour.
26583
26584 2009-02-07  Jim Meyering  <meyering@redhat.com>
26585
26586         regex: avoid compilation failure with upcoming gcc-4.4
26587         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26588         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26589         "... error: integer overflow in preprocessor expression".
26590
26591 2009-02-05  Ben Pfaff  <blp@gnu.org>
26592
26593         Fix link errors on Windows when close module is used.
26594         * modules/close: Add $(LIB_CLOSE) to Link section.
26595         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26596         $(LIB_CLOSE) on Windows.
26597
26598 2009-02-05  Jim Meyering  <meyering@redhat.com>
26599
26600         still avoid unused-parameter warnings, but do it cleanly
26601         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26602         (get_fs_usage): Cast to void instead.
26603         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26604         (dev_from_mount_options, read_file_system_list): Cast to void.
26605         Prompted by Bruno Haible.
26606
26607 2009-02-04  Jim Meyering  <meyering@redhat.com>
26608
26609         fsusage.c: correct copyright year
26610         * lib/fsusage.c: Reflect year in which the change is pushed into
26611
26612         avoid misc. warnings
26613         * lib/fsusage.c (UNUSED_PARAM): Define.
26614         (get_fs_usage): Mark parameter "disk" as unused.
26615         * lib/getugroups.c (getgrent): Use "void" in prototype.
26616         * lib/mountlist.c: Mark unused parameters.
26617         (read_file_system_list): Declare a local with "const".
26618         * lib/nanosleep.c (getnow): Declare static.
26619         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26620
26621         dirfd: set errno upon failure
26622         * lib/dirfd.c: Include <errno.h>.
26623         Set errno to ENOTSUP when returning -1.
26624         * modules/dirfd (Depends-on): Add errno.
26625         Suggested by John Kodis <kodis@comcast.net>.
26626
26627 2009-02-01  Bruno Haible  <bruno@clisp.org>
26628
26629         Don't assume sizeof (long) >= sizeof (void *).
26630         * lib/memcmp.c: Include stdint.h.
26631         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26632         srcp2 to 'const byte *'.
26633         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26634         types to uintptr_t.
26635         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26636         * modules/memcmp (Depends-on): Add stdint.
26637         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26638
26639 2009-01-30  Eric Blake  <ebb9@byu.net>
26640
26641         fix more require-before-expand issues
26642         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26643         expand, AC_PROG_AWK.
26644         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26645
26646 2009-01-28  Eric Blake  <ebb9@byu.net>
26647
26648         version-etc: use consistent URL formatting
26649         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26650         Improve formatting.  Use fputs for string without %.
26651
26652 2009-01-28  Jim Meyering  <meyering@redhat.com>
26653
26654         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26655         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26656         "underquoted definition of NAME" from autoconf-2.59.
26657
26658 2009-01-28  Bruno Haible  <bruno@clisp.org>
26659
26660         * doc/gnulib.texi: Add "Obsolete modules" to index.
26661
26662 2009-01-28  Jim Meyering  <meyering@redhat.com>
26663
26664         useless-if-before-free: recognize more variants
26665         * build-aux/useless-if-before-free: Also recognize e.g.,
26666         if (NULL != p) free (p);
26667
26668 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26669
26670         test-getaddrinfo: skip (don't fail) this test when there's no network
26671         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26672         on the presumption that it means you lack network access.
26673
26674 2009-01-26  Jim Meyering  <meyering@redhat.com>
26675
26676         fflush: avoid warnings on modern systems
26677         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26678         pos and result, into scopes where they're used.
26679
26680 2009-01-26  Eric Blake  <ebb9@byu.net>
26681
26682         Silence warning reintroduced by recent extensions patch.
26683         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26684         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26685         autoconf.
26686
26687         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26688         * m4/00gnulib.m4: New file.
26689         * gnulib-tool (func_get_filelist): Always use it.
26690         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26691         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26692
26693 2009-01-25  Bruno Haible  <bruno@clisp.org>
26694
26695         Make test-quotearg work on MacOS X and AIX.
26696         * tests/test-quotearg.sh: New file.
26697         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26698         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26699         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26700         include <libintl.h>.
26701         (fake_locale): Remove variable.
26702         (gettext, dgettext, dcgettext): Remove functions.
26703         (main): Instead of setting a fake locale, set a real locale. Call
26704         textdomain and bindtextdomain.
26705         * modules/quotearg-tests (Files): Add the new files.
26706         (Depends-on): Add gettext, setenv, unsetenv.
26707         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26708         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26709         Augment TESTS_ENVIRONMENT.
26710
26711 2009-01-25  Bruno Haible  <bruno@clisp.org>
26712
26713         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26714         fr_FR.ISO8859-1 locale on MacOS X.
26715         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26716         ja_JP.eucJP locale on MacOS X.
26717         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26718         zh_CN.GB18030 locale on MacOS X.
26719
26720 2009-01-25  Bruno Haible  <bruno@clisp.org>
26721
26722         Avoid link errors on MacOS X 10.3.
26723         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26724         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26725
26726 2009-01-25  Bruno Haible  <bruno@clisp.org>
26727
26728         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26729         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26730         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26731         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26732         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26733         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26734         posix_spawnattr_init, posix_spawnattr_setsigmask,
26735         posix_spawnattr_setflags, posix_spawnattr_destroy.
26736
26737         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26738         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26739         * modules/execute (Files): Remove m4/posix_spawn.m4.
26740         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26741         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26742         posix_spawnattr_init, posix_spawnattr_setsigmask,
26743         posix_spawnattr_setflags, posix_spawnattr_destroy.
26744
26745 2009-01-25  Bruno Haible  <bruno@clisp.org>
26746
26747         * lib/glthread/threadlib.c: Include <stdlib.h>.
26748
26749 2009-01-25  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/glthread/threadlib.c (dummy): New declaration.
26752
26753 2009-01-25  Bruno Haible  <bruno@clisp.org>
26754
26755         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26756         multibyte characters also for the GB18030 encoding. Don't crash when
26757         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26758
26759 2009-01-25  Bruno Haible  <bruno@clisp.org>
26760
26761         Avoid redefining 'struct random_data' on OSF/1 5.1.
26762         * lib/stdlib.in.h: Include <random.h> if it exists.
26763         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26764         HAVE_RANDOM_H. Include <random.h> when testing whether
26765         'struct random_data' exists.
26766         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26767
26768 2009-01-25  Bruno Haible  <bruno@clisp.org>
26769
26770         Don't install charset.alias on MacOS X >= 10.3.
26771         * lib/localcharset.c (DARWIN7): New macro.
26772         (get_charset_aliases): Hardcode the result for Darwin7.
26773         * modules/localcharset (install-exec-local): Don't install
26774         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26775
26776 2009-01-25  Bruno Haible  <bruno@clisp.org>
26777
26778         Don't install charset.alias on mingw and Cygwin.
26779         * modules/localcharset (install-exec-local): Don't install
26780         charset.alias on mingw and Cygwin, if the file does not yet exist.
26781         The result for these platforms is hardcoded in localcharset.c.
26782
26783 2009-01-25  Bruno Haible  <bruno@clisp.org>
26784
26785         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26786         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26787         before requiring AC_USE_SYSTEM_EXTENSIONS.
26788
26789 2009-01-25  Jim Meyering  <meyering@redhat.com>
26790
26791         c-strtod: avoid warnings
26792         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26793         "assignment discards qualifiers from pointer target type" warnings.
26794
26795 2009-01-24  Bruno Haible  <bruno@clisp.org>
26796
26797         Add support for non-UTF-8 locales on MacOS X.
26798         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26799         canonical encodings. For Darwin 7 and newer, don't map traditional
26800         encodings to UTF-8.
26801         Reported by Vincent Lefevre <vincent@vinc17.org>
26802         at <http://savannah.gnu.org/bugs/?25235>.
26803
26804 2009-01-24  Bruno Haible  <bruno@clisp.org>
26805
26806         * doc/gnulib.texi (Obsolete modules): New section.
26807         Reported by Mike Frysinger <vapier@gentoo.org>.
26808
26809 2009-01-24  Bruno Haible  <bruno@clisp.org>
26810
26811         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26812         (%.dvi): New rule.
26813
26814 2009-01-24  Bruno Haible  <bruno@clisp.org>
26815
26816         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26817         Reported by Eric Blake.
26818
26819 2009-01-24  Bruno Haible  <bruno@clisp.org>
26820
26821         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26822         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26823         Reported by Gary V. Vaughan <gary@gnu.org>.
26824
26825 2009-01-24  Bruno Haible  <bruno@clisp.org>
26826
26827         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26828
26829 2009-01-23  Bruno Haible  <bruno@clisp.org>
26830
26831         Make c-strtod, c-strtold usable in libraries.
26832         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26833         (C_STRTOD): Call strdup instead of xstrdup.
26834         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26835         * modules/c-strtold (Depends-on): Likewise.
26836         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26837         * NEWS: Mention the change.
26838         Reported by Michael Gold <mgold@ncf.ca>.
26839
26840 2009-01-23  Jim Meyering  <meyering@redhat.com>
26841
26842         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26843         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26844         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26845
26846 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26847
26848         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26849         GNU CoreUtils.
26850         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26851         * modules/version-etc (Description): Update.
26852
26853 2009-01-22  Bruno Haible  <bruno@clisp.org>
26854
26855         Cache the C locale object.
26856         * lib/c-strtod.c (c_locale_cache): New variable.
26857         (c_locale): New function.
26858         (C_STRTOD): Use it, and don't call freelocale.
26859         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26860         Suggested by Paolo Bonzini.
26861
26862 2009-01-21  Bruno Haible  <bruno@clisp.org>
26863
26864         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26865         conditions other than overflow.
26866
26867 2009-01-21  Bruno Haible  <bruno@clisp.org>
26868
26869         * lib/c-strtod.c: Include errno.h.
26870         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26871         value from STRTOD_L and STRTOD.
26872
26873 2009-01-21  Bruno Haible  <bruno@clisp.org>
26874         and Jim Meyering  <meyering@redhat.com>
26875
26876         nanosleep: skip configure test (fail it) for apple universal builds
26877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26878         universal builds, assume that nanosleep does not work.
26879         * modules/nanosleep (Depends-on): Add multiarch.
26880
26881         mktime: skip configure test (fail it) for apple universal builds
26882         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26883         universal builds, assume that mktime does not work.
26884         * modules/mktime (Depends-on): Add multiarch.
26885
26886 2009-01-21  Eric Blake  <ebb9@byu.net>
26887
26888         multiarch: avoid expand-before-require warning
26889         * modules/multiarch (configure.ac): Require, rather than expand,
26890         gl_MULTIARCH.
26891         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26892         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26893         enforce that all clients require it.  Partial reversion of
26894         2008-12-29 patch.
26895
26896         error: avoid expand-before-require warning
26897         * modules/errno (configure.ac): Require, rather than expand,
26898         gl_HEADER_ERRNO_H.
26899         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26900         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26901         enforce that all clients require it.
26902
26903         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26904         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26905         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26906         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26907
26908 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26909
26910         Revert:
26911         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26912
26913         regex: do not depend on obsolete modules.
26914         * modules/regex: Remove memcmp and memmove.
26915
26916 2009-01-20  Bruno Haible  <bruno@clisp.org>
26917
26918         Make the 'link' module link on Windows NT 4.
26919         * lib/link.c (_WIN32_WINNT): Don't define.
26920         (CreateHardLinkFuncType): New type.
26921         (CreateHardLinkFunc, initialized): New variables.
26922         (initialize): New function.
26923         (link): Invoke CreateHardLink indirectly through the function pointer.
26924
26925 2009-01-20  Bruno Haible  <bruno@clisp.org>
26926
26927         Fix compilation failure on mingw.
26928         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26929
26930 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26931
26932         * doc/c-strtod.texi: Mention a couple of restrictions.
26933
26934 2009-01-20  Jim Meyering  <meyering@redhat.com>
26935
26936         gettimeofday: move more declarations out of functions
26937         * lib/gettimeofday.c: Move extern declarations of tzset and
26938         gmtime out of containing functions.  Prompted by Bruno Haible.
26939
26940 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26941
26942         regex: do not depend on obsolete modules.
26943         * modules/regex: Remove memcmp and memmove.
26944
26945 2009-01-19  Bruno Haible  <bruno@clisp.org>
26946
26947         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26948         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26949         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26950         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26951         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26952
26953 2009-01-19  Bruno Haible  <bruno@clisp.org>
26954
26955         * tests/test-link.c: Include <errno.h>.
26956         (main): Exit with code 77 when a hard link cannot be created due to
26957         the file system.
26958         * tests/test-link.sh: Skip test when a hard link cannot be created due
26959         to the file system.
26960         Suggested by Eric Blake.
26961
26962 2009-01-19  Martin Lambers  <marlam@marlam.de>
26963
26964         * modules/link-tests: New file.
26965         * tests/test-link.sh: New file.
26966         * tests/test-link.c: New file.
26967
26968 2009-01-19  Eric Blake  <ebb9@byu.net>
26969
26970         doc: mention another function added in cygwin 1.7.0
26971         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26972         Another new function in cygwin 1.7.
26973
26974 2009-01-19  Bruno Haible  <bruno@clisp.org>
26975
26976         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26977         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26978         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26979         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26980         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26981         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26982         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26983         * m4/md4.m4 (gl_MD4): Likewise.
26984         * m4/md5.m4 (gl_MD5): Likewise.
26985         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26986         * m4/sha1.m4 (gl_SHA1): Likewise.
26987         * m4/sha256.m4 (gl_SHA256): Likewise.
26988         * m4/sha512.m4 (gl_SHA512): Likewise.
26989
26990 2009-01-19  Bruno Haible  <bruno@clisp.org>
26991
26992         * modules/uniname/uniname-tests (Depends-on): Add progname.
26993         * tests/uniname/test-uninames.c: Include progname.h.
26994         (main): Call set_program_name.
26995
26996         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26997         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26998         (main): Call set_program_name.
26999
27000         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
27001         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
27002         (main): Call set_program_name.
27003
27004         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
27005         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
27006         (main): Call set_program_name.
27007
27008         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
27009         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
27010         (main): Call set_program_name.
27011
27012         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
27013         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
27014         (main): Call set_program_name.
27015
27016         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
27017         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
27018         (main): Call set_program_name.
27019
27020         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
27021         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
27022         (main): Call set_program_name.
27023
27024         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27025         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27026         (main): Call set_program_name.
27027
27028 2009-01-19  Eric Blake  <ebb9@byu.net>
27029
27030         test-unistd: test previous patch
27031         * tests/test-unistd.c: Test *_FILENO macros.
27032
27033         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
27034         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27035         Guarantee a definition.
27036         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
27037         * modules/unistd-safer (Depends-on): Add dependency on unistd.
27038         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
27039         * lib/dup-safer.c (STDERR_FILENO): Likewise.
27040         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27041         Likewise.
27042         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
27043         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
27044         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27045         Likewise.
27046         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
27047         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
27048         (STDERR_FILENO): Likewise.
27049         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
27050         (STDERR_FILENO): Likewise.
27051         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
27052         (STDERR_FILENO): Likewise.
27053         Reported by Elbert Pol.
27054
27055 2009-01-19  Eric Blake  <ebb9@byu.net>
27056
27057         doc: mention more functions added in cygwin 1.7.0
27058         * doc/posix-functions/abort.texi (abort): Update wording related
27059         to cygwin.
27060         * doc/posix-functions/daylight.texi (daylight): Likewise.
27061         * doc/posix-functions/optarg.texi (optarg): Likewise.
27062         * doc/posix-functions/optarg.texi (opterr): Likewise.
27063         * doc/posix-functions/optarg.texi (optind): Likewise.
27064         * doc/posix-functions/optarg.texi (optopt): Likewise.
27065         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
27066         worked in 1.5.x, and was withdrawn in 1.7.
27067         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
27068         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
27069         cygwin versions.
27070         * doc/posix-functions/perror.texi (perror): Likewise.
27071         * doc/posix-functions/printf.texi (printf): Likewise.
27072         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
27073         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
27074         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27075         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27076         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27077         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27078         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27079         Likewise.
27080         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27081         Likewise.
27082         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27083         this function.
27084         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27085         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27086         Likewise.
27087         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27088         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27089         * doc/posix-functions/confstr.texi (confstr): Likewise.
27090         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27091         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27092         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27093         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27094         * doc/posix-functions/fputws.texi (fputws): Likewise.
27095         * doc/posix-functions/fwide.texi (fwide): Likewise.
27096         * doc/posix-functions/getwc.texi (getwc): Likewise.
27097         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27098         * doc/posix-functions/putwc.texi (putwc): Likewise.
27099         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27100         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27101         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27102         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27103         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27104         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27105         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27106         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27107         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27108         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27109         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27110
27111 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27112
27113         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27114         * lib/ioctl.c: Include <sys/ioctl.h>.
27115
27116 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27117
27118         * modules/getdate-tests (Depends-on): Add progname.
27119         * tests/test-getdate.c: Use progname module, to avoid link errors
27120         on non-glibc systems.
27121
27122 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27123
27124         * modules/filenamecat-tests (Depends-on): Add progname.
27125         * modules/fstrcmp-tests (Depends-on): Likewise.
27126
27127         * tests/test-filenamecat.c: Use progname module, to avoid link
27128         errors on non-glibc systems.
27129         * tests/test-fstrcmp.c: Likewise.
27130
27131 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27132
27133         gettimeofday: avoid warning: nested extern declaration of 'localtime'
27134         * lib/gettimeofday.c: Move extern declaration out of function.
27135
27136 2009-01-18  Bruno Haible  <bruno@clisp.org>
27137
27138         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
27139         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
27140         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
27141
27142 2009-01-18  Bruno Haible  <bruno@clisp.org>
27143
27144         * lib/strftime.c (MEMPCPY): Remove unused macro.
27145         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
27146
27147 2009-01-18  Martin Lambers  <marlam@marlam.de>
27148
27149         New module 'link'.
27150         * lib/unistd.in.h (link): New declaration.
27151         * lib/link.c: New file.
27152         * m4/link.m4: New file.
27153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
27154         HAVE_LINK.
27155         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
27156         * modules/link: New file.
27157         * doc/posix-functions/link.texi: Mention the new module.
27158
27159 2009-01-18  Bruno Haible  <bruno@clisp.org>
27160
27161         * tests/test-avltree_list.c (main): Call set_program_name.
27162         * tests/test-avltree_oset.c (main): Likewise.
27163         * tests/test-obstack-printf.c: Include progname.h.
27164         (main): Call set_program_name.
27165         * tests/test-quotearg.c: Include progname.h.
27166         (main): Call set_program_name.
27167         * tests/test-xmemdup0.c: Include progname.h.
27168         (main): Call set_program_name.
27169
27170 2009-01-18  Bruno Haible  <bruno@clisp.org>
27171
27172         New module 'alphasort'.
27173         * lib/dirent.in.h (alphasort): New declaration.
27174         * lib/alphasort.c: New file, from glibc with modifications.
27175         * m4/alphasort.m4: New file.
27176         * modules/alphasort: New file.
27177         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
27178         HAVE_ALPHASORT.
27179         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
27180         HAVE_ALPHASORT.
27181         * doc/posix-functions/alphasort.texi: Mention the new module and the
27182         portability problems.
27183
27184 2009-01-18  Bruno Haible  <bruno@clisp.org>
27185
27186         New module 'scandir'.
27187         * lib/dirent.in.h (scandir): New declaration.
27188         * lib/scandir.c: New file, from glibc with modifications.
27189         * m4/scandir.m4: New file.
27190         * modules/scandir: New file.
27191         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
27192         HAVE_SCANDIR.
27193         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
27194         HAVE_SCANDIR.
27195         * doc/posix-functions/scandir.texi: Mention the new module and the
27196         portability problems.
27197
27198 2009-01-17  Bruno Haible  <bruno@clisp.org>
27199
27200         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
27201         Update documentation.
27202         (func_remove_suffix): Escape all dots in the suffix. Update
27203         documentation.
27204         (func_filter_filelist): Update documentation.
27205         Reported by Ralf Wildenhues.
27206
27207 2009-01-17  Bruno Haible  <bruno@clisp.org>
27208
27209         * modules/dprintf-posix-tests: New file.
27210         * tests/test-dprintf-posix.sh: New file.
27211         * tests/test-dprintf-posix.c: New file.
27212
27213         New modules 'dprintf', 'dprintf-posix'.
27214         * lib/stdio.in.h (dprintf): New declaration.
27215         * lib/dprintf.c: New file.
27216         * m4/dprintf.m4: New file.
27217         * m4/dprintf-posix.m4: New file.
27218         * modules/dprintf: New file.
27219         * modules/dprintf-posix: New file.
27220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
27221         HAVE_DPRINTF, REPLACE_DPRINTF.
27222         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
27223         HAVE_DPRINTF, REPLACE_DPRINTF.
27224         * doc/posix-functions/dprintf.texi: Mention the new modules.
27225
27226 2009-01-17  Bruno Haible  <bruno@clisp.org>
27227
27228         * modules/vdprintf-posix-tests: New file.
27229         * tests/test-vdprintf-posix.sh: New file.
27230         * tests/test-vdprintf-posix.c: New file.
27231
27232         New modules 'vdprintf', 'vdprintf-posix'.
27233         * lib/stdio.in.h (vdprintf): New declaration.
27234         * lib/vdprintf.c: New file.
27235         * m4/vdprintf.m4: New file.
27236         * m4/vdprintf-posix.m4: New file.
27237         * modules/vdprintf: New file.
27238         * modules/vdprintf-posix: New file.
27239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
27240         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27241         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
27242         HAVE_VDPRINTF, REPLACE_VDPRINTF.
27243         * doc/posix-functions/vdprintf.texi: Mention the new modules.
27244
27245 2009-01-17  Bruno Haible  <bruno@clisp.org>
27246
27247         Fix replacement of fopen on mingw.
27248         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
27249         mingw.
27250
27251 2009-01-17  Bruno Haible  <bruno@clisp.org>
27252
27253         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27254         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27255
27256 2009-01-17  Bruno Haible  <bruno@clisp.org>
27257
27258         Avoid test-fflush2.sh failure on mingw.
27259         * tests/test-fflush2.c: Include binary-io.h.
27260         (main): Put standard input into binary mode.
27261         * modules/fflush-tests (Depends-on): Add binary-io.
27262
27263 2009-01-17  Bruno Haible  <bruno@clisp.org>
27264
27265         * lib/wchar.in.h: In another particular situation, include only the
27266         system's <wchar.h> file.
27267         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27268         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27269         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27270
27271 2009-01-17  Bruno Haible  <bruno@clisp.org>
27272
27273         Support for stripping executables in --enable-relocatable.
27274         * build-aux/install-reloc: Expect one more argument, or an environment
27275         variable RELOC_STRIP_PROG. If set, strip the destination program and
27276         its wrapper.
27277         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27278         RELOC_STRIP_PROG.
27279         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27280         to set RELOCATABLE_STRIP.
27281         * NEWS: Mention the new Makefile requirement.
27282
27283 2009-01-17  Bruno Haible  <bruno@clisp.org>
27284
27285         * build-aux/install-reloc: Remove debugging information left over by
27286         C compiler on MacOS X.
27287
27288 2009-01-17  Bruno Haible  <bruno@clisp.org>
27289
27290         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27291         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27292         _NSGetExecutablePath.
27293
27294 2009-01-16  Jim Meyering  <meyering@redhat.com>
27295
27296         strerror: avoid warnings about discarding "const"
27297         * lib/strerror.c (rpl_strerror): Instead of returning a const
27298         string from each and every "case", use a variable, and add a single
27299         cast after the switch.
27300
27301 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27302
27303         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27304
27305 2009-01-16  Bruno Haible  <bruno@clisp.org>
27306
27307         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27308         array initializer syntax that also works in C++ mode.
27309         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27310
27311 2009-01-16  Jim Meyering  <meyering@redhat.com>
27312
27313         poll: suppress a warning
27314         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27315         to ignore "...unsigned expression < 0 is always false" warnings.
27316
27317 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27318
27319         poll: remove declarations of unused variables
27320         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27321         sockbuf and optlen.
27322
27323 2009-01-15  Bruno Haible  <bruno@clisp.org>
27324
27325         Make fflush-after-ungetc POSIX compliant on BSD systems.
27326         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27327         (clear_ungetc_buffer): Implement also for other systems.
27328         (rpl_fflush): On glibc systems, invoke
27329         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27330         clear_ungetc_buffer after fetching the stream's position, not before.
27331
27332 2009-01-15  Bruno Haible  <bruno@clisp.org>
27333
27334         Make fflush-after-ungetc POSIX compliant on glibc systems.
27335         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27336         after ungetc.
27337         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27338         (rpl_fflush): On glibc systems, simply call the system's fflush
27339         function after clearing the ungetc buffer.
27340         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27341         Instead, lseek only to the end of file, then use the system's fseeko
27342         for the rest. On glibc systems, reset the EOF indicator bit.
27343
27344 2009-01-15  Jim Meyering  <meyering@redhat.com>
27345
27346         openmp.m4: revert quote-adding change, for portability to older autoconf
27347         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27348         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27349         Simon Josefsson noticed the problem when using autoconf-2.61.
27350
27351 2009-01-15  Bruno Haible  <bruno@clisp.org>
27352
27353         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27354         * tests/test-fflush2.c (ASSERT): Always fail.
27355         (main): Add two tests for fflush() after ungetc(), taking into account
27356         the Austin Group's clarification.
27357         Suggested by Eric Blake.
27358
27359 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27360
27361         mktime.m4: remove K&R-style function prototypes
27362         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27363         for the Sun C++ compiler.
27364
27365 2009-01-14  Bruno Haible  <bruno@clisp.org>
27366
27367         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27368         while including <wchar.h>.
27369         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27370         the system's <wchar.h> file.
27371         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27372
27373 2009-01-14  Bruno Haible  <bruno@clisp.org>
27374
27375         * m4/csharp.m4: Don't mention gettext on the serial number line.
27376         * m4/csharpexec.m4: Likewise.
27377         * m4/eaccess.m4: Likewise.
27378         * m4/javaexec.m4: Likewise.
27379         * m4/sig_atomic_t.m4: Likewise.
27380         * m4/tmpdir.m4: Likewise.
27381         * m4/intldir.m4: Bump gettext version.
27382         * m4/lib-ld.m4: Likewise.
27383
27384 2009-01-14  Bruno Haible  <bruno@clisp.org>
27385
27386         * lib/progname.c (set_program_name): Add more comments.
27387         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27388
27389 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27390
27391         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27392         were sys/stat.h does not define it.
27393
27394 2009-01-14  Jim Meyering  <meyering@redhat.com>
27395
27396         many *.m4 files: improve m4 quoting
27397         99% of this change was performed by running the following commands:
27398         git ls-files | grep '\.m4$' | xargs perl -pi \
27399           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27400           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27401           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27402           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27403         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27404         The remainder were to add Copyright dates, increment serial numbers,
27405         undo some changes in comments, exclude m4/intl.m4, and add quotes
27406         around the "1" in ",1" where the unusual spacing prohibited the
27407         above regexps from doing the job.  For more details, see
27408         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27409         * m4/acl.m4: Modified.
27410         * m4/afs.m4: Likewise.
27411         * m4/alloca.m4: Likewise.
27412         * m4/argp.m4: Likewise.
27413         * m4/argz.m4: Likewise.
27414         * m4/atexit.m4: Likewise.
27415         * m4/bison-i18n.m4: Likewise.
27416         * m4/bison.m4: Likewise.
27417         * m4/byteswap.m4: Likewise.
27418         * m4/c-stack.m4: Likewise.
27419         * m4/c-strtod.m4: Likewise.
27420         * m4/calloc.m4: Likewise.
27421         * m4/canonicalize-lgpl.m4: Likewise.
27422         * m4/chown.m4: Likewise.
27423         * m4/clock_time.m4: Likewise.
27424         * m4/codeset.m4: Likewise.
27425         * m4/copy-file.m4: Likewise.
27426         * m4/csharp.m4: Likewise.
27427         * m4/csharpcomp.m4: Likewise.
27428         * m4/csharpexec.m4: Likewise.
27429         * m4/d-ino.m4: Likewise.
27430         * m4/d-type.m4: Likewise.
27431         * m4/dirfd.m4: Likewise.
27432         * m4/double-slash-root.m4: Likewise.
27433         * m4/eaccess.m4: Likewise.
27434         * m4/eealloc.m4: Likewise.
27435         * m4/environ.m4: Likewise.
27436         * m4/errno_h.m4: Likewise.
27437         * m4/euidaccess.m4: Likewise.
27438         * m4/execute.m4: Likewise.
27439         * m4/fatal-signal.m4: Likewise.
27440         * m4/fchdir.m4: Likewise.
27441         * m4/fcntl_h.m4: Likewise.
27442         * m4/fileblocks.m4: Likewise.
27443         * m4/filenamecat.m4: Likewise.
27444         * m4/findprog.m4: Likewise.
27445         * m4/flexmember.m4: Likewise.
27446         * m4/fnmatch.m4: Likewise.
27447         * m4/fopen.m4: Likewise.
27448         * m4/fpending.m4: Likewise.
27449         * m4/fprintf-posix.m4: Likewise.
27450         * m4/free.m4: Likewise.
27451         * m4/frexp.m4: Likewise.
27452         * m4/frexpl.m4: Likewise.
27453         * m4/fsusage.m4: Likewise.
27454         * m4/ftruncate.m4: Likewise.
27455         * m4/gc-camellia.m4: Likewise.
27456         * m4/gc-random.m4: Likewise.
27457         * m4/gc.m4: Likewise.
27458         * m4/getaddrinfo.m4: Likewise.
27459         * m4/getcwd-abort-bug.m4: Likewise.
27460         * m4/getcwd-path-max.m4: Likewise.
27461         * m4/getdate.m4: Likewise.
27462         * m4/getdomainname.m4: Likewise.
27463         * m4/getgroups.m4: Likewise.
27464         * m4/gethostname.m4: Likewise.
27465         * m4/gethrxtime.m4: Likewise.
27466         * m4/getline.m4: Likewise.
27467         * m4/getloadavg.m4: Likewise.
27468         * m4/getndelim2.m4: Likewise.
27469         * m4/getpass.m4: Likewise.
27470         * m4/gettext.m4: Likewise.
27471         * m4/gettime.m4: Likewise.
27472         * m4/gettimeofday.m4: Likewise.
27473         * m4/gnulib-common.m4: Likewise.
27474         * m4/group-member.m4: Likewise.
27475         * m4/host-os.m4: Likewise.
27476         * m4/iconv.m4: Likewise.
27477         * m4/iconv_open.m4: Likewise.
27478         * m4/inet_ntop.m4: Likewise.
27479         * m4/inet_pton.m4: Likewise.
27480         * m4/inline.m4: Likewise.
27481         * m4/intldir.m4: Likewise.
27482         * m4/intlmacosx.m4: Likewise.
27483         * m4/intmax.m4: Likewise.
27484         * m4/intmax_t.m4: Likewise.
27485         * m4/inttypes.m4: Likewise.
27486         * m4/inttypes_h.m4: Likewise.
27487         * m4/inttypes-pri.m4: Likewise.
27488         * m4/isapipe.m4: Likewise.
27489         * m4/isnand.m4: Likewise.
27490         * m4/isnanf.m4: Likewise.
27491         * m4/isnanl.m4: Likewise.
27492         * m4/javacomp.m4: Likewise.
27493         * m4/javaexec.m4: Likewise.
27494         * m4/jm-winsz1.m4: Likewise.
27495         * m4/jm-winsz2.m4: Likewise.
27496         * m4/lchown.m4: Likewise.
27497         * m4/lcmessage.m4: Likewise.
27498         * m4/ldexpl.m4: Likewise.
27499         * m4/lib-ld.m4: Likewise.
27500         * m4/lib-link.m4: Likewise.
27501         * m4/libsigsegv.m4: Likewise.
27502         * m4/link-follow.m4: Likewise.
27503         * m4/localcharset.m4: Likewise.
27504         * m4/locale-fr.m4: Likewise.
27505         * m4/locale-ja.m4: Likewise.
27506         * m4/locale-tr.m4: Likewise.
27507         * m4/locale-zh.m4: Likewise.
27508         * m4/lock.m4: Likewise.
27509         * m4/longlong.m4: Likewise.
27510         * m4/ls-mntd-fs.m4: Likewise.
27511         * m4/lstat.m4: Likewise.
27512         * m4/malloc.m4: Likewise.
27513         * m4/mathl.m4: Likewise.
27514         * m4/mbrtowc.m4: Likewise.
27515         * m4/mbstate_t.m4: Likewise.
27516         * m4/mbswidth.m4: Likewise.
27517         * m4/memchr.m4: Likewise.
27518         * m4/memcmp.m4: Likewise.
27519         * m4/memcpy.m4: Likewise.
27520         * m4/memmem.m4: Likewise.
27521         * m4/memmove.m4: Likewise.
27522         * m4/mempcpy.m4: Likewise.
27523         * m4/memrchr.m4: Likewise.
27524         * m4/memset.m4: Likewise.
27525         * m4/minmax.m4: Likewise.
27526         * m4/mkdir-slash.m4: Likewise.
27527         * m4/mkdtemp.m4: Likewise.
27528         * m4/mktime.m4: Likewise.
27529         * m4/mmap-anon.m4: Likewise.
27530         * m4/mountlist.m4: Likewise.
27531         * m4/nanosleep.m4: Likewise.
27532         * m4/nls.m4: Likewise.
27533         * m4/nocrash.m4: Likewise.
27534         * m4/open.m4: Likewise.
27535         * m4/openat.m4: Likewise.
27536         * m4/openmp.m4: Likewise.
27537         * m4/pathmax.m4: Likewise.
27538         * m4/perl.m4: Likewise.
27539         * m4/physmem.m4: Likewise.
27540         * m4/pipe.m4: Likewise.
27541         * m4/po.m4: Likewise.
27542         * m4/poll.m4: Likewise.
27543         * m4/posixtm.m4: Likewise.
27544         * m4/posixver.m4: Likewise.
27545         * m4/printf-frexp.m4: Likewise.
27546         * m4/printf-frexpl.m4: Likewise.
27547         * m4/printf-posix.m4: Likewise.
27548         * m4/printf-posix-rpl.m4: Likewise.
27549         * m4/printf.m4: Likewise.
27550         * m4/progtest.m4: Likewise.
27551         * m4/putenv.m4: Likewise.
27552         * m4/readline.m4: Likewise.
27553         * m4/readlink.m4: Likewise.
27554         * m4/readutmp.m4: Likewise.
27555         * m4/realloc.m4: Likewise.
27556         * m4/regex.m4: Likewise.
27557         * m4/relocatable.m4: Likewise.
27558         * m4/relocatable-lib.m4: Likewise.
27559         * m4/rename-dest-slash.m4: Likewise.
27560         * m4/rename.m4: Likewise.
27561         * m4/rmdir-errno.m4: Likewise.
27562         * m4/rmdir.m4: Likewise.
27563         * m4/roundf.m4: Likewise.
27564         * m4/roundl.m4: Likewise.
27565         * m4/rpmatch.m4: Likewise.
27566         * m4/save-cwd.m4: Likewise.
27567         * m4/selinux-selinux-h.m4: Likewise.
27568         * m4/setenv.m4: Likewise.
27569         * m4/settime.m4: Likewise.
27570         * m4/sig2str.m4: Likewise.
27571         * m4/sig_atomic_t.m4: Likewise.
27572         * m4/signalblocking.m4: Likewise.
27573         * m4/signbit.m4: Likewise.
27574         * m4/sigpipe.m4: Likewise.
27575         * m4/sockets.m4: Likewise.
27576         * m4/sockpfaf.m4: Likewise.
27577         * m4/st_dm_mode.m4: Likewise.
27578         * m4/stat-time.m4: Likewise.
27579         * m4/stdbool.m4: Likewise.
27580         * m4/stdint.m4: Likewise.
27581         * m4/stdint_h.m4: Likewise.
27582         * m4/stpcpy.m4: Likewise.
27583         * m4/stpncpy.m4: Likewise.
27584         * m4/strcase.m4: Likewise.
27585         * m4/strchrnul.m4: Likewise.
27586         * m4/strcspn.m4: Likewise.
27587         * m4/strdup.m4: Likewise.
27588         * m4/strftime.m4: Likewise.
27589         * m4/strndup.m4: Likewise.
27590         * m4/strnlen.m4: Likewise.
27591         * m4/strpbrk.m4: Likewise.
27592         * m4/strptime.m4: Likewise.
27593         * m4/strsep.m4: Likewise.
27594         * m4/strtod.m4: Likewise.
27595         * m4/strtoimax.m4: Likewise.
27596         * m4/strtok_r.m4: Likewise.
27597         * m4/strtol.m4: Likewise.
27598         * m4/strtoll.m4: Likewise.
27599         * m4/strtoul.m4: Likewise.
27600         * m4/strtoull.m4: Likewise.
27601         * m4/strtoumax.m4: Likewise.
27602         * m4/strverscmp.m4: Likewise.
27603         * m4/threadlib.m4: Likewise.
27604         * m4/timegm.m4: Likewise.
27605         * m4/tm_gmtoff.m4: Likewise.
27606         * m4/tmpdir.m4: Likewise.
27607         * m4/tmpfile.m4: Likewise.
27608         * m4/tzset.m4: Likewise.
27609         * m4/uintmax_t.m4: Likewise.
27610         * m4/unlinkdir.m4: Likewise.
27611         * m4/unlocked-io.m4: Likewise.
27612         * m4/uptime.m4: Likewise.
27613         * m4/userspec.m4: Likewise.
27614         * m4/utimbuf.m4: Likewise.
27615         * m4/utime.m4: Likewise.
27616         * m4/utimes-null.m4: Likewise.
27617         * m4/utimes.m4: Likewise.
27618         * m4/vararrays.m4: Likewise.
27619         * m4/vasnprintf.m4: Likewise.
27620         * m4/vfprintf-posix.m4: Likewise.
27621         * m4/vprintf-posix.m4: Likewise.
27622         * m4/wait-process.m4: Likewise.
27623         * m4/wchar_t.m4: Likewise.
27624         * m4/wint_t.m4: Likewise.
27625         * m4/write-any-file.m4: Likewise.
27626         * m4/yield.m4: Likewise.
27627
27628 2009-01-13  Bruno Haible  <bruno@clisp.org>
27629
27630         Avoid test-copy-file.sh failures when ACL support insufficient.
27631         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27632         TESTS_ENVIRONMENT.
27633         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27634         Reported by Jim Meyering.
27635
27636 2009-01-13  Bruno Haible  <bruno@clisp.org>
27637
27638         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27639         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27640         * modules/unistdio/u8-printf-parse (Files): Likewise.
27641         * modules/unistdio/u32-printf-parse (Files): Likewise.
27642         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27643
27644 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27645
27646         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27647         and m4/inttypes_h.m4 too.
27648
27649 2009-01-12  Eric Blake  <ebb9@byu.net>
27650
27651         tests: IRIX 6.2 cc can't compile -0.0 into .data
27652         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27653         rather than at compile-time.
27654         * tests/test-floorl.c (minus_zero): Likewise.
27655         * tests/test-frexpl.c (minus_zero): Likewise.
27656         * tests/test-isnan.c (minus_zerol): Likewise.
27657         * tests/test-isnanl.h (minus_zero): Likewise.
27658         * tests/test-ldexpl.c (minus_zero): Likewise.
27659         * tests/test-roundl.c (minus_zero): Likewise.
27660         * tests/test-signbit.c (minus_zerol): Likewise.
27661         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27662         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27663         * tests/test-truncl.c (minus_zero): Likewise.
27664         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27665         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27666         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27667
27668 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27669
27670         regex: fix glibc bug 9697
27671         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27672         handling.
27673
27674 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27675
27676         regex: fix glibc bug 697
27677         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27678         being NULL also if there are no backreferences.
27679
27680 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27681
27682         regex: merge glibc changes
27683         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27684         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27685         re_string_skip_chars, re_string_reconstruct): Likewise.
27686         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27687
27688 2009-01-07  Jim Meyering  <meyering@redhat.com>
27689
27690         poll: filter through cppi
27691         * lib/poll.c: Indent cpp directives to reflect nesting.
27692
27693 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27694
27695         poll: don't return uninitialized
27696         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27697
27698 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27699
27700         avoid compile failure on AIX 6.1
27701         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27702         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27703
27704 2009-01-04  Jim Meyering  <meyering@redhat.com>
27705
27706         remove duplicate inclusion of <stdio.h>
27707         * tests/test-fprintf-posix.c: Likewise.
27708         * tests/test-printf-posix.c: Likewise.
27709         * tests/test-snprintf-posix.c: Likewise.
27710         * tests/test-sprintf-posix.c: Likewise.
27711         * tests/test-vasprintf-posix.c: Likewise.
27712         * tests/test-vfprintf-posix.c: Likewise.
27713         * tests/test-vprintf-posix.c: Likewise.
27714         * tests/test-vsnprintf-posix.c: Likewise.
27715         * tests/test-vsprintf-posix.c: Likewise.
27716
27717 2009-01-03  Jim Meyering  <meyering@redhat.com>
27718
27719         gnulib-tool: fix sed-based filtering
27720         * gnulib-tool (func_filter_filelist): Remove extra backslash
27721         in sed_fff_filter definition.
27722
27723 2009-01-02  Jim Meyering  <meyering@redhat.com>
27724
27725         strftime: avoid compilation failure on Solaris 2.6
27726         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27727         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27728         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27729         be available.  Reported by Tom G. Christensen.  Details in
27730         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27731
27732 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27733             Bruno Haible  <bruno@clisp.org>
27734
27735         Speed up gnulib-tool by doing more string processing through shell
27736         built-ins.
27737         * gnulib-tool (fast_func_append): New variable.
27738         (func_remove_prefix, func_remove_suffix): New functions.
27739         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27740         (func_filter_filelist): New function.
27741         (func_get_dependencies): Use func_remove_suffix instead of sed.
27742         (func_get_automake_snippet): Use func_filter_filelist instead of a
27743         subshell and sed invocation.
27744
27745 2009-01-01  Bruno Haible  <bruno@clisp.org>
27746
27747         Fix a security bug.
27748         * gnulib-tool (func_import, import, update): Don't allow the characters
27749         '"', '$', '`', '\' in macro arguments that become part of commands that
27750         are evaluated.
27751
27752 2009-01-01  Bruno Haible  <bruno@clisp.org>
27753
27754         * gnulib-tool (func_reset_sigpipe): Add more comments.
27755
27756 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27757
27758         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27759         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27760         already know the answer.
27761
27762 2009-01-01  Jim Meyering  <meyering@redhat.com>
27763
27764         * lib/version-etc.c (version_etc_va): Update copyright year.
27765
27766 2008-12-30  Bruno Haible  <bruno@clisp.org>
27767
27768         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27769         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27770         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27771
27772 2008-12-29  Eric Blake  <ebb9@byu.net>
27773
27774         multiarch: avoid autoconf AC_REQUIRE bug
27775         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27776         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27777         2.63 and older.
27778         Reported by Bruno Haible, and analyzed in
27779         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27780
27781 2008-12-29  Bruno Haible  <bruno@clisp.org>
27782
27783         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27784         files in subdirectories correctly.
27785         Reported by Ralf Wildenhues.
27786
27787 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27788
27789         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27790         rather than 'join FILE -', for Solaris join.
27791
27792 2008-12-29  Bruno Haible  <bruno@clisp.org>
27793
27794         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27795         quoting.
27796         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27797         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27798         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27799         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27800         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27801         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27802         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27803         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27804         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27805         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27806         * m4/nls.m4 (AM_NLS): Likewise.
27807         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27808         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27809         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27810         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27811         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27812         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27813         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27814         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27815         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27816         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27817         * m4/xsize.m4 (gl_XSIZE): Likewise.
27818         Suggested by Jim Meyering.
27819
27820 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27821
27822         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27823         * lib/parse-duration.c: use a switch instead of cascading if's.
27824
27825 2008-12-29  Eric Blake  <ebb9@byu.net>
27826
27827         wchar.h: supply WEOF on Irix 5.3
27828         * lib/wchar.in.h (wint_t): Also supply WEOF.
27829         * lib/wctype.in.h (wint_t): Likewise.
27830         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27831         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27832         Reported by Tom G. Christensen.
27833
27834 2008-12-26  Bruno Haible  <bruno@clisp.org>
27835
27836         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27837         i486, i586, i686.
27838
27839 2008-12-26  Bruno Haible  <bruno@clisp.org>
27840
27841         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27842
27843 2008-12-26  Bruno Haible  <bruno@clisp.org>
27844
27845         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27846         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27847         not __STDC_CONSTANT_MACROS.
27848         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27849
27850 2008-12-25  Bruno Haible  <bruno@clisp.org>
27851
27852         Add support for universal builds to vasnprintf.
27853         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27854         universal builds, guess no.
27855         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27856         * modules/vasprintf-posix (Depends-on): Likewise.
27857         * modules/fprintf-posix (Depends-on): Likewise.
27858         * modules/vfprintf-posix (Depends-on): Likewise.
27859         * modules/snprintf-posix (Depends-on): Likewise.
27860         * modules/vsnprintf-posix (Depends-on): Likewise.
27861         * modules/sprintf-posix (Depends-on): Likewise.
27862         * modules/vsprintf-posix (Depends-on): Likewise.
27863         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27864         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27865         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27866         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27867         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27868         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27869         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27870
27871         Add support for universal builds to <inttypes.h>.
27872         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27873         _SCNu64_PREFIX): In Apple
27874         universal builds, define directly, using _LP64.
27875         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27876         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27877         * modules/inttypes (Depends-on): Add multiarch.
27878         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27879
27880         Add support for universal builds to <stdint.h>.
27881         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27882         universal builds, define directly, using _LP64.
27883         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27884         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27885         and size_t.
27886         * modules/stdint (Depends-on): Add multiarch.
27887         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27888
27889         New module 'multiarch'.
27890         * modules/multiarch: New file.
27891         * m4/multiarch.m4: New file.
27892
27893 2008-12-25  Bruno Haible  <bruno@clisp.org>
27894
27895         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27896
27897 2008-12-25  Bruno Haible  <bruno@clisp.org>
27898
27899         * modules/btowc (License): Relicense under LGPLv2+.
27900         * modules/mbsinit (License): Likewise.
27901         * modules/mbrtowc (License): Likewise.
27902         * modules/wcrtomb (License): Likewise.
27903         * modules/streq (License): Likewise.
27904         Reported by David Lutterkort <lutter@redhat.com>.
27905
27906 2008-12-23  Bruno Haible  <bruno@clisp.org>
27907
27908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27909
27910 2008-12-23  Bruno Haible  <bruno@clisp.org>
27911
27912         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27914         GETADDRINFO_LIB, not in LIBS.
27915         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27916         * modules/canon-host (Link): Likewise.
27917         * NEWS: Mention the change.
27918         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27919         GETADDRINFO_LIB.
27920
27921 2008-12-22  Bruno Haible  <bruno@clisp.org>
27922
27923         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27924         * doc/posix-functions/iswalpha_l.texi: Likewise.
27925         * doc/posix-functions/iswblank_l.texi: Likewise.
27926         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27927         * doc/posix-functions/iswctype_l.texi: Likewise.
27928         * doc/posix-functions/iswdigit_l.texi: Likewise.
27929         * doc/posix-functions/iswgraph_l.texi: Likewise.
27930         * doc/posix-functions/iswlower_l.texi: Likewise.
27931         * doc/posix-functions/iswprint_l.texi: Likewise.
27932         * doc/posix-functions/iswpunct_l.texi: Likewise.
27933         * doc/posix-functions/iswspace_l.texi: Likewise.
27934         * doc/posix-functions/iswupper_l.texi: Likewise.
27935         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27936         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27937         * doc/posix-functions/open_wmemstream.texi: Likewise.
27938         * doc/posix-functions/swscanf.texi: Likewise.
27939         * doc/posix-functions/towctrans_l.texi: Likewise.
27940         * doc/posix-functions/towlower.texi: Likewise.
27941         * doc/posix-functions/towlower_l.texi: Likewise.
27942         * doc/posix-functions/towupper.texi: Likewise.
27943         * doc/posix-functions/towupper_l.texi: Likewise.
27944         * doc/posix-functions/vfwprintf.texi: Likewise.
27945         * doc/posix-functions/vfwscanf.texi: Likewise.
27946         * doc/posix-functions/vswscanf.texi: Likewise.
27947         * doc/posix-functions/vwprintf.texi: Likewise.
27948         * doc/posix-functions/vwscanf.texi: Likewise.
27949         * doc/posix-functions/wcpcpy.texi: Likewise.
27950         * doc/posix-functions/wcpncpy.texi: Likewise.
27951         * doc/posix-functions/wcscasecmp.texi: Likewise.
27952         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27953         * doc/posix-functions/wcscoll_l.texi: Likewise.
27954         * doc/posix-functions/wcsdup.texi: Likewise.
27955         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27956         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27957         * doc/posix-functions/wcsnlen.texi: Likewise.
27958         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27959         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27960         * doc/posix-functions/wctrans_l.texi: Likewise.
27961         * doc/posix-functions/wctype_l.texi: Likewise.
27962         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27963         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27964         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27965         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27966         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27967         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27968         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27969         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27970         * doc/glibc-functions/wcschrnul.texi: Likewise.
27971         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27972         * doc/glibc-functions/wcstod_l.texi: Likewise.
27973         * doc/glibc-functions/wcstof_l.texi: Likewise.
27974         * doc/glibc-functions/wcstol_l.texi: Likewise.
27975         * doc/glibc-functions/wcstold_l.texi: Likewise.
27976         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27977         * doc/glibc-functions/wcstoq.texi: Likewise.
27978         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27979         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27980         * doc/glibc-functions/wcstouq.texi: Likewise.
27981         * doc/glibc-functions/wmempcpy.texi: Likewise.
27982
27983 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27984             Eric Blake  <ebb9@byu.net>
27985             Paolo Bonzini  <bonzini@gnu.org>
27986             Bruno Haible  <bruno@clisp.org>
27987
27988         Make c-stack work on Haiku.
27989         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27990         (c_stack_action): Use SA_ONSTACK flag.
27991
27992 2008-12-22  Bruno Haible  <bruno@clisp.org>
27993
27994         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27995
27996 2008-12-22  Bruno Haible  <bruno@clisp.org>
27997
27998         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27999         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
28000         being overridden.
28001         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
28002         New macros.
28003         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
28004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
28005         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
28006         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
28007
28008 2008-12-22  Bruno Haible  <bruno@clisp.org>
28009
28010         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
28011         from test code.
28012
28013 2008-12-22  Eric Blake  <ebb9@byu.net>
28014
28015         Avoid gcc warnings on cygwin.
28016         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
28017         Avoid unused variable.
28018         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
28019         Likewise.
28020
28021 2008-12-22  Bruno Haible  <bruno@clisp.org>
28022
28023         Remove HAVE_MBRTOWC conditionals.
28024         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28025         (mbscasecmp): Assume mbrtowc function.
28026         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
28027         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
28028         * lib/mbschr.c: Include mbuiter.h unconditionally.
28029         (mbschr): Assume mbrtowc function.
28030         * lib/mbscspn.c: Include mbuiter.h unconditionally.
28031         (mbscspn): Assume mbrtowc function.
28032         * lib/mbslen.c: Include mbuiter.h unconditionally.
28033         (mbslen): Assume mbrtowc function.
28034         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
28035         (mbsncasecmp): Assume mbrtowc function.
28036         * lib/mbsnlen.c: Include mbiter.h unconditionally.
28037         (mbsnlen): Assume mbrtowc function.
28038         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
28039         (mbspbrk): Assume mbrtowc function.
28040         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
28041         (mbspcasecmp): Assume mbrtowc function.
28042         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
28043         (mbsrchr): Assume mbrtowc function.
28044         * lib/mbssep.c: Include mbuiter.h unconditionally.
28045         (mbssep): Assume mbrtowc function.
28046         * lib/mbsspn.c: Include mbuiter.h unconditionally.
28047         (mbsspn): Assume mbrtowc function.
28048         * lib/mbsstr.c: Include mbuiter.h unconditionally.
28049         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
28050         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
28051         (mbstok_r): Assume mbrtowc function.
28052         * lib/propername.c: Include mbuiter.h unconditionally.
28053         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
28054         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
28055         (trim2): Assume mbrtowc function.
28056         * lib/mbswidth.c (mbsinit): Remove fallback definition.
28057         (mbsnwidth): Assume mbrtowc function.
28058         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
28059         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
28060         fallback definitions.
28061         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
28062
28063 2008-12-22  Bruno Haible  <bruno@clisp.org>
28064
28065         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
28066
28067 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
28068
28069         * modules/regex: Request emulations for the mb*/wc* functions we need.
28070         * m4/regex.m4: Don't look for those functions here.
28071         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
28072
28073 2008-12-22  Bruno Haible  <bruno@clisp.org>
28074
28075         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28076
28077 2008-12-21  Bruno Haible  <bruno@clisp.org>
28078
28079         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28080         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28081         (Include): Remove conditionalization.
28082         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28083         (Include): Remove conditionalization.
28084         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28085         (Include): Remove conditionalization.
28086         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28087         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28088         * NEWS: Mention the change.
28089         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28090         via Sergey Poznyakoff <gray@gnu.org.ua>.
28091
28092 2008-12-21  Bruno Haible  <bruno@clisp.org>
28093
28094         * MODULES.html.sh (Extended multibyte and wide character utilities
28095         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28096         wcrtomb, wcsrtombs.
28097         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28098         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28099         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28100         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28101
28102 2008-12-21  Bruno Haible  <bruno@clisp.org>
28103
28104         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28105
28106 2008-12-21  Bruno Haible  <bruno@clisp.org>
28107
28108         * modules/wcsnrtombs-tests: New file.
28109         * tests/test-wcsnrtombs1.sh: New file.
28110         * tests/test-wcsnrtombs2.sh: New file.
28111         * tests/test-wcsnrtombs3.sh: New file.
28112         * tests/test-wcsnrtombs4.sh: New file.
28113         * tests/test-wcsnrtombs.c: New file.
28114
28115         New module 'wcsnrtombs'.
28116         * lib/wchar.in.h (wcsnrtombs): New declaration.
28117         * lib/wcsnrtombs.c: New file.
28118         * lib/wcsrtombs-state.c: New file.
28119         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28120         (internal_state): Remove variable.
28121         * m4/wcsnrtombs.m4: New file.
28122         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28123         compilation units.
28124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28125         HAVE_WCSNRTOMBS.
28126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28127         HAVE_WCSNRTOMBS.
28128         * modules/wcsnrtombs: New file.
28129         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
28130         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
28131
28132 2008-12-21  Bruno Haible  <bruno@clisp.org>
28133
28134         * modules/wcsrtombs-tests: New file.
28135         * tests/test-wcsrtombs1.sh: New file.
28136         * tests/test-wcsrtombs2.sh: New file.
28137         * tests/test-wcsrtombs3.sh: New file.
28138         * tests/test-wcsrtombs4.sh: New file.
28139         * tests/test-wcsrtombs.c: New file.
28140
28141         New module 'wcsrtombs'.
28142         * lib/wchar.in.h (wcsrtombs): New declaration.
28143         * lib/wcsrtombs.c: New file.
28144         * m4/wcsrtombs.m4: New file.
28145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
28146         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
28148         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
28149         * modules/wcsrtombs: New file.
28150         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
28151         bugs.
28152
28153 2008-12-21  Bruno Haible  <bruno@clisp.org>
28154
28155         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
28156         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
28157         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
28158         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
28159         if not correct.
28160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
28161         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
28162         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28163         m4/locale-zh.m4, m4/codeset.m4.
28164         * doc/posix-functions/wcrtomb.texi: Document the bug.
28165
28166 2008-12-21  Bruno Haible  <bruno@clisp.org>
28167
28168         Work around a btowc() bug on IRIX 6.5.
28169         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
28170         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
28171         REPLACE_WTOBC if not.
28172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
28173         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
28174         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
28175
28176 2008-12-21  Bruno Haible  <bruno@clisp.org>
28177
28178         * modules/wcrtomb-tests: New file.
28179         * tests/test-wcrtomb.sh: New file.
28180         * tests/test-wcrtomb.c: New file.
28181
28182         New module 'wcrtomb'.
28183         * lib/wchar.in.h (wcrtomb): New declaration.
28184         * lib/wcrtomb.c: New file.
28185         * m4/wcrtomb.m4: New file.
28186         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
28187         HAVE_WCRTOMB.
28188         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
28189         HAVE_WCRTOMB.
28190         * modules/wcrtomb: New file.
28191         * doc/posix-functions/wcrtomb.texi: Mention the new module.
28192
28193 2008-12-21  Bruno Haible  <bruno@clisp.org>
28194
28195         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
28196         * modules/mbsrtowcs (Files): Likewise.
28197         * modules/wctob (Files): Likewise.
28198         * modules/c-strcase-tests (Files): Likewise.
28199         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28200         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28201         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28202         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28203         * modules/vasnprintf-posix-tests (Files): Likewise.
28204
28205 2008-12-21  William Pursell  <bill.pursell@gmail.com>
28206
28207         gitlog-to-changelog: pass all command-line arguments to git-log
28208         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
28209         it is sometimes convenient to filter the commits in various ways.
28210         gitlog-to-changelog only allows --since to specify a start date,
28211         but git-log itself supports many other filtering mechanisms.
28212         At the moment, I want to filter by branch name.  Rather than
28213         adding a --branch option to gitlog-to-changelog, it seems more
28214         flexible to simply pass all options directly to git-log and let
28215         git do the work.  Notice that this effectively makes --since a
28216         redundant option for gitlog-to-changelog, but removing it would
28217         require current usage to change since calls would then require
28218         an additional '--'.
28219
28220 2008-12-21  Bruno Haible  <bruno@clisp.org>
28221
28222         * modules/mbsnrtowcs-tests: New file.
28223         * tests/test-mbsnrtowcs1.sh: New file.
28224         * tests/test-mbsnrtowcs2.sh: New file.
28225         * tests/test-mbsnrtowcs3.sh: New file.
28226         * tests/test-mbsnrtowcs4.sh: New file.
28227         * tests/test-mbsnrtowcs.c: New file.
28228
28229         New module 'mbsnrtowcs'.
28230         * lib/wchar.in.h (mbsnrtowcs): New declaration.
28231         * lib/mbsnrtowcs.c: New file.
28232         * lib/mbsrtowcs-state.c: New file.
28233         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
28234         (internal_state): Remove variable.
28235         * m4/mbsnrtowcs.m4: New file.
28236         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
28237         compilation units.
28238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
28239         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28240         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
28241         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
28242         * modules/mbsnrtowcs: New file.
28243         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
28244         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
28245         portability problem.
28246
28247 2008-12-21  Bruno Haible  <bruno@clisp.org>
28248
28249         Work around mbsrtowcs bug.
28250         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
28251         (gl_FUNC_MBSRTOWCS): Invoke it.
28252         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28253         m4/locale-zh.m4.
28254         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28255
28256 2008-12-21  Bruno Haible  <bruno@clisp.org>
28257
28258         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28259
28260 2008-12-21  Bruno Haible  <bruno@clisp.org>
28261
28262         Update doc for AIX.
28263         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28264         16-bit wchar_t type.
28265         * doc/posix-functions/btowc.texi: Likewise.
28266         * doc/posix-functions/fgetwc.texi: Likewise.
28267         * doc/posix-functions/fgetws.texi: Likewise.
28268         * doc/posix-functions/fputwc.texi: Likewise.
28269         * doc/posix-functions/fputws.texi: Likewise.
28270         * doc/posix-functions/fwide.texi: Likewise.
28271         * doc/posix-functions/fwprintf.texi: Likewise.
28272         * doc/posix-functions/fwscanf.texi: Likewise.
28273         * doc/posix-functions/getwchar.texi: Likewise.
28274         * doc/posix-functions/getwc.texi: Likewise.
28275         * doc/posix-functions/iswalnum.texi: Likewise.
28276         * doc/posix-functions/iswalpha.texi: Likewise.
28277         * doc/posix-functions/iswblank.texi: Likewise.
28278         * doc/posix-functions/iswcntrl.texi: Likewise.
28279         * doc/posix-functions/iswctype.texi: Likewise.
28280         * doc/posix-functions/iswdigit.texi: Likewise.
28281         * doc/posix-functions/iswgraph.texi: Likewise.
28282         * doc/posix-functions/iswlower.texi: Likewise.
28283         * doc/posix-functions/iswprint.texi: Likewise.
28284         * doc/posix-functions/iswpunct.texi: Likewise.
28285         * doc/posix-functions/iswspace.texi: Likewise.
28286         * doc/posix-functions/iswupper.texi: Likewise.
28287         * doc/posix-functions/iswxdigit.texi: Likewise.
28288         * doc/posix-functions/mbrtowc.texi: Likewise.
28289         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28290         * doc/posix-functions/mbstowcs.texi: Likewise.
28291         * doc/posix-functions/mbtowc.texi: Likewise.
28292         * doc/posix-functions/putwchar.texi: Likewise.
28293         * doc/posix-functions/putwc.texi: Likewise.
28294         * doc/posix-functions/swprintf.texi: Likewise.
28295         * doc/posix-functions/tolower.texi: Likewise.
28296         * doc/posix-functions/toupper.texi: Likewise.
28297         * doc/posix-functions/towctrans.texi: Likewise.
28298         * doc/posix-functions/ungetwc.texi: Likewise.
28299         * doc/posix-functions/vswprintf.texi: Likewise.
28300         * doc/posix-functions/wcrtomb.texi: Likewise.
28301         * doc/posix-functions/wcscat.texi: Likewise.
28302         * doc/posix-functions/wcschr.texi: Likewise.
28303         * doc/posix-functions/wcscmp.texi: Likewise.
28304         * doc/posix-functions/wcscoll.texi: Likewise.
28305         * doc/posix-functions/wcscpy.texi: Likewise.
28306         * doc/posix-functions/wcscspn.texi: Likewise.
28307         * doc/posix-functions/wcsftime.texi: Likewise.
28308         * doc/posix-functions/wcslen.texi: Likewise.
28309         * doc/posix-functions/wcsncat.texi: Likewise.
28310         * doc/posix-functions/wcsncmp.texi: Likewise.
28311         * doc/posix-functions/wcsncpy.texi: Likewise.
28312         * doc/posix-functions/wcspbrk.texi: Likewise.
28313         * doc/posix-functions/wcsrchr.texi: Likewise.
28314         * doc/posix-functions/wcsrtombs.texi: Likewise.
28315         * doc/posix-functions/wcsspn.texi: Likewise.
28316         * doc/posix-functions/wcsstr.texi: Likewise.
28317         * doc/posix-functions/wcstod.texi: Likewise.
28318         * doc/posix-functions/wcstof.texi: Likewise.
28319         * doc/posix-functions/wcstoimax.texi: Likewise.
28320         * doc/posix-functions/wcstok.texi: Likewise.
28321         * doc/posix-functions/wcstold.texi: Likewise.
28322         * doc/posix-functions/wcstoll.texi: Likewise.
28323         * doc/posix-functions/wcstol.texi: Likewise.
28324         * doc/posix-functions/wcstombs.texi: Likewise.
28325         * doc/posix-functions/wcstoull.texi: Likewise.
28326         * doc/posix-functions/wcstoul.texi: Likewise.
28327         * doc/posix-functions/wcstoumax.texi: Likewise.
28328         * doc/posix-functions/wcswidth.texi: Likewise.
28329         * doc/posix-functions/wcsxfrm.texi: Likewise.
28330         * doc/posix-functions/wctob.texi: Likewise.
28331         * doc/posix-functions/wctomb.texi: Likewise.
28332         * doc/posix-functions/wctrans.texi: Likewise.
28333         * doc/posix-functions/wctype.texi: Likewise.
28334         * doc/posix-functions/wcwidth.texi: Likewise.
28335         * doc/posix-functions/wmemchr.texi: Likewise.
28336         * doc/posix-functions/wmemcmp.texi: Likewise.
28337         * doc/posix-functions/wmemcpy.texi: Likewise.
28338         * doc/posix-functions/wmemmove.texi: Likewise.
28339         * doc/posix-functions/wmemset.texi: Likewise.
28340         * doc/posix-functions/wprintf.texi: Likewise.
28341         * doc/posix-functions/wscanf.texi: Likewise.
28342
28343 2008-12-21  Bruno Haible  <bruno@clisp.org>
28344
28345         Update doc for HP-UX 11.11.
28346         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28347         in HP-UX version 11.00, not in all versions of HP-UX 11.
28348         * doc/posix-functions/fwide.texi: Likewise.
28349         * doc/posix-functions/fwprintf.texi: Likewise.
28350         * doc/posix-functions/fwscanf.texi: Likewise.
28351         * doc/posix-functions/inet_ntop.texi: Likewise.
28352         * doc/posix-functions/inet_pton.texi: Likewise.
28353         * doc/posix-functions/mbrlen.texi: Likewise.
28354         * doc/posix-functions/mbrtowc.texi: Likewise.
28355         * doc/posix-functions/mbsinit.texi: Likewise.
28356         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28357         * doc/posix-functions/swprintf.texi: Likewise.
28358         * doc/posix-functions/swscanf.texi: Likewise.
28359         * doc/posix-functions/towctrans.texi: Likewise.
28360         * doc/posix-functions/vfwprintf.texi: Likewise.
28361         * doc/posix-functions/vswprintf.texi: Likewise.
28362         * doc/posix-functions/vwprintf.texi: Likewise.
28363         * doc/posix-functions/wcrtomb.texi: Likewise.
28364         * doc/posix-functions/wcsrtombs.texi: Likewise.
28365         * doc/posix-functions/wcsstr.texi: Likewise.
28366         * doc/posix-functions/wctob.texi: Likewise.
28367         * doc/posix-functions/wctrans.texi: Likewise.
28368         * doc/posix-functions/wmemchr.texi: Likewise.
28369         * doc/posix-functions/wmemcmp.texi: Likewise.
28370         * doc/posix-functions/wmemcpy.texi: Likewise.
28371         * doc/posix-functions/wmemmove.texi: Likewise.
28372         * doc/posix-functions/wmemset.texi: Likewise.
28373         * doc/posix-functions/wprintf.texi: Likewise.
28374         * doc/posix-functions/wscanf.texi: Likewise.
28375
28376 2008-12-21  Bruno Haible  <bruno@clisp.org>
28377
28378         Work around a portability problem.
28379         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28380         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28381
28382 2008-12-20  Bruno Haible  <bruno@clisp.org>
28383
28384         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28385         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28386         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28388         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28389
28390         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28391         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28392         set.
28393         (GNULIB_defined_mbstate_t): New macro.
28394         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28395         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28396         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28397         reuses the system's mbrtowc function but works around the bugs.
28398         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28399         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28400         macros.
28401         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28402         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28403         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28404         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28405         REPLACE_MBSINIT if mbsinit needs to be overridden.
28406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28407         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28408         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28409         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28410         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28411         m4/locale-zh.m4.
28412         (Depends): Add mbsinit.
28413         * modules/mbsinit (Depends): Add mbrtowc.
28414         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28415
28416 2008-12-20  Bruno Haible  <bruno@clisp.org>
28417
28418         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28419         so that there are no conversion errors on AIX.
28420         * tests/test-mbsrtowcs.c (main): LIkewise.
28421
28422 2008-12-20  Bruno Haible  <bruno@clisp.org>
28423
28424         Work around wctob bug on Solaris <= 9.
28425         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28426         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28428         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28429         * modules/wctob (Files): Add m4/locale-fr.m4.
28430         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28431
28432 2008-12-20  Bruno Haible  <bruno@clisp.org>
28433
28434         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28435         /dev/null.
28436         * tests/test-select-in.sh: Likewise.
28437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28438
28439 2008-12-20  Bruno Haible  <bruno@clisp.org>
28440
28441         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28442         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28443         Cygwin 1.5.x.
28444
28445 2008-12-20  Bruno Haible  <bruno@clisp.org>
28446
28447         Ensure mbstate_t is defined on HP-UX 11.11.
28448         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28449         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28450         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28451         AC_USE_SYSTEM_EXTENSIONS.
28452         * modules/fnmatch (Depends-on): Add extensions.
28453         * modules/mbrlen (Depends-on): Likewise.
28454         * modules/mbrtowc (Depends-on): Likewise.
28455         * modules/mbsinit (Depends-on): Likewise.
28456         * modules/mbsrtowcs (Depends-on): Likewise.
28457         * modules/mbswidth (Depends-on): Likewise.
28458         * modules/quotearg (Depends-on): Likewise.
28459         * modules/strftime (Depends-on): Likewise.
28460
28461 2008-12-20  Bruno Haible  <bruno@clisp.org>
28462
28463         Ensure wctob is declared on IRIX 6.5.
28464         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28465         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28466         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28468         of HAVE_WCTOB.
28469         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28470         HAVE_WCTOB.
28471         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28472
28473 2008-12-19  Bruno Haible  <bruno@clisp.org>
28474
28475         * modules/mbsrtowcs-tests: New file.
28476         * tests/test-mbsrtowcs1.sh: New file.
28477         * tests/test-mbsrtowcs2.sh: New file.
28478         * tests/test-mbsrtowcs3.sh: New file.
28479         * tests/test-mbsrtowcs4.sh: New file.
28480         * tests/test-mbsrtowcs.c: New file.
28481
28482         New module 'mbsrtowcs'.
28483         * lib/wchar.in.h (mbsrtowcs): New declaration.
28484         * lib/mbsrtowcs.c: New file.
28485         * m4/mbsrtowcs.m4: New file.
28486         * modules/mbsrtowcs: New file.
28487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28488         HAVE_MBSRTOWCS.
28489         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28490         HAVE_MBSRTOWCS.
28491         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28492
28493 2008-12-19  Bruno Haible  <bruno@clisp.org>
28494
28495         New module 'mbrlen'.
28496         * lib/wchar.in.h (mbrlen): New declaration.
28497         * lib/mbrlen.c: New file.
28498         * m4/mbrlen.m4: New file.
28499         * modules/mbrlen: New file.
28500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28501         HAVE_MBRLEN.
28502         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28503         HAVE_MBRLEN.
28504         * doc/posix-functions/mbrlen.texi: Document the new module.
28505
28506 2008-12-19  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28509         * modules/mbrtowc (Depends-on): Add verify.
28510         Suggested by Paul Eggert.
28511
28512 2008-12-18  Bruno Haible  <bruno@clisp.org>
28513
28514         * modules/mbsinit-tests: New file.
28515         * tests/test-mbsinit.sh: New file.
28516         * tests/test-mbsinit.c: New file.
28517
28518 2008-12-18  Bruno Haible  <bruno@clisp.org>
28519
28520         * modules/mbrtowc-tests: New file.
28521         * tests/test-mbrtowc1.sh: New file.
28522         * tests/test-mbrtowc2.sh: New file.
28523         * tests/test-mbrtowc3.sh: New file.
28524         * tests/test-mbrtowc4.sh: New file.
28525         * tests/test-mbrtowc.c: New file.
28526
28527         New module 'mbrtowc'.
28528         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28529         mbsinit and mbrtowc.
28530         (mbrtowc): New declaration.
28531         * lib/mbrtowc.c: New file.
28532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28533         * modules/mbrtowc: New file.
28534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28535         HAVE_MBRTOWC.
28536         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28537         HAVE_MBRTOWC.
28538         * doc/posix-functions/mbrtowc.texi: Document the new module.
28539
28540 2008-12-18  Bruno Haible  <bruno@clisp.org>
28541
28542         New module 'wctob'.
28543         * lib/wchar.in.h (wctob): New declaration.
28544         * lib/wctob.c: New file.
28545         * m4/wctob.m4: New file.
28546         * modules/wctob: New file.
28547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28548         HAVE_WCTOB.
28549         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28550         * doc/posix-functions/wctob.texi: Document the new module.
28551
28552 2008-12-18  Bruno Haible  <bruno@clisp.org>
28553
28554         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28555         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28556
28557 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28558
28559         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28560         G. Christensen" <tgc@jupiterrise.com>.
28561
28562         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28563         G. Christensen" <tgc@jupiterrise.com>.
28564
28565         * lib/flock.c: Need to include string.h.  Reported by "Tom
28566         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28567         <ebb9@byu.net>.
28568
28569 2008-12-18  Bruno Haible  <bruno@clisp.org>
28570
28571         * m4/locale-ja.m4: New file, from GNU gettext.
28572
28573 2008-12-17  Bruno Haible  <bruno@clisp.org>
28574
28575         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28576         Suggested by Eric Blake.
28577
28578 2008-12-17  Bruno Haible  <bruno@clisp.org>
28579
28580         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28581
28582 2008-12-17  Bruno Haible  <bruno@clisp.org>
28583
28584         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28585         * modules/mbsinit (Depends-on): Add verify.
28586         Suggested by Paul Eggert.
28587
28588 2008-12-17  Bruno Haible  <bruno@clisp.org>
28589
28590         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28591         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28592         gl_FUNC_MBRTOWC.
28593         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28594         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28595         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28596         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28597         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28598         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28599         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28600         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28601         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28602         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28603         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28604         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28605         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28606         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28607         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28608         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28609         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28610         * modules/trim (configure.ac): Likewise.
28611
28612 2008-12-17  Bruno Haible  <bruno@clisp.org>
28613
28614         * modules/btowc-tests: New file.
28615         * tests/test-btowc1.sh: New file.
28616         * tests/test-btowc2.sh: New file.
28617         * tests/test-btowc.c: New file.
28618
28619         New module 'btowc'.
28620         * lib/wchar.in.h (btowc): New declaration.
28621         * lib/btowc.c: New file.
28622         * m4/btowc.m4: New file.
28623         * modules/btowc: New file.
28624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28625         HAVE_BTOWC.
28626         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28627         * doc/posix-functions/btowc.texi: Document the new module.
28628
28629 2008-12-17  Bruno Haible  <bruno@clisp.org>
28630
28631         New module 'mbsinit'.
28632         * lib/wchar.in.h (mbsinit): New declaration.
28633         * lib/mbsinit.c: New file.
28634         * m4/mbsinit.m4: New file.
28635         * modules/mbsinit: New file.
28636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28637         HAVE_MBSINIT.
28638         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28639         HAVE_MBSINIT.
28640         * doc/posix-functions/mbsinit.texi: Document the new module.
28641
28642 2008-12-16  Bruno Haible  <bruno@clisp.org>
28643
28644         * lib/unistd.in.h: Add comment.
28645         * tests/test-environ.c: Don't include <stdlib.h>.
28646
28647 2008-12-16  Bruno Haible  <bruno@clisp.org>
28648
28649         * lib/parse-duration.h (parse_duration): Document return value
28650         convention.
28651         * lib/parse-duration.c: Include specification header first. Add
28652         comments.
28653         (_): Remove macro.
28654         (parse_year_month_day, parse_hour_minute_second): Move side effects
28655         outside of strchr call.
28656         (parse_non_iso8601): Move side effects outside of isspace call.
28657         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28658         call.
28659
28660 2008-12-16  Bruno Haible  <bruno@clisp.org>
28661
28662         * tests/test-parse-duration.sh: Produce no output when the test
28663         succeeds.
28664
28665 2008-12-16  Bruno Haible  <bruno@clisp.org>
28666
28667         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28668         expressions.
28669
28670 2008-12-15  Bruno Haible  <bruno@clisp.org>
28671
28672         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28673         * doc/glibc-functions/flistxattr.texi: Likewise.
28674         * doc/glibc-functions/fopencookie.texi: Likewise.
28675         * doc/glibc-functions/fremovexattr.texi: Likewise.
28676         * doc/glibc-functions/fsetxattr.texi: Likewise.
28677         * doc/glibc-functions/getxattr.texi: Likewise.
28678         * doc/glibc-functions/lgetxattr.texi: Likewise.
28679         * doc/glibc-functions/listxattr.texi: Likewise.
28680         * doc/glibc-functions/llistxattr.texi: Likewise.
28681         * doc/glibc-functions/lremovexattr.texi: Likewise.
28682         * doc/glibc-functions/lsetxattr.texi: Likewise.
28683         * doc/glibc-functions/removexattr.texi: Likewise.
28684         * doc/glibc-functions/setxattr.texi: Likewise.
28685         * doc/posix-functions/open_memstream.texi: Likewise.
28686
28687 2008-12-15  Eric Blake  <ebb9@byu.net>
28688
28689         Update doc for cygwin 1.7.
28690         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28691         functions.
28692         * doc/posix-functions/fchmodat.texi: Likewise.
28693         * doc/posix-functions/fchownat.texi: Likewise.
28694         * doc/posix-functions/fdopendir.texi: Likewise.
28695         * doc/posix-functions/fmemopen.texi: Likewise.
28696         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28697         * doc/posix-functions/fstatat.texi: Likewise.
28698         * doc/posix-functions/futimens.texi: Likewise.
28699         * doc/posix-functions/gai_strerror.texi: Likewise.
28700         * doc/posix-functions/getaddrinfo.texi: Likewise.
28701         * doc/posix-functions/getnameinfo.texi: Likewise.
28702         * doc/posix-functions/if_freenameindex.texi: Likewise.
28703         * doc/posix-functions/if_indextoname.texi: Likewise.
28704         * doc/posix-functions/if_nameindex.texi: Likewise.
28705         * doc/posix-functions/if_nametoindex.texi: Likewise.
28706         * doc/posix-functions/insque.texi: Likewise.
28707         * doc/posix-functions/linkat.texi: Likewise.
28708         * doc/posix-functions/llrint.texi: Likewise.
28709         * doc/posix-functions/llrintf.texi: Likewise.
28710         * doc/posix-functions/llrintl.texi: Likewise.
28711         * doc/posix-functions/lockf.texi: Likewise.
28712         * doc/posix-functions/lrintl.texi: Likewise.
28713         * doc/posix-functions/mkdirat.texi: Likewise.
28714         * doc/posix-functions/mkfifoat.texi: Likewise.
28715         * doc/posix-functions/mknodat.texi: Likewise.
28716         * doc/posix-functions/mq_close.texi: Likewise.
28717         * doc/posix-functions/mq_getattr.texi: Likewise.
28718         * doc/posix-functions/mq_notify.texi: Likewise.
28719         * doc/posix-functions/mq_open.texi: Likewise.
28720         * doc/posix-functions/mq_receive.texi: Likewise.
28721         * doc/posix-functions/mq_send.texi: Likewise.
28722         * doc/posix-functions/mq_setattr.texi: Likewise.
28723         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28724         * doc/posix-functions/mq_timedsend.texi: Likewise.
28725         * doc/posix-functions/mq_unlink.texi: Likewise.
28726         * doc/posix-functions/open_memstream.texi: Likewise.
28727         * doc/posix-functions/openat.texi: Likewise.
28728         * doc/posix-functions/posix_fadvise.texi: Likewise.
28729         * doc/posix-functions/posix_fallocate.texi: Likewise.
28730         * doc/posix-functions/posix_madvise.texi: Likewise.
28731         * doc/posix-functions/posix_memalign.texi: Likewise.
28732         * doc/posix-functions/posix_openpt.texi: Likewise.
28733         * doc/posix-functions/readlinkat.texi: Likewise.
28734         * doc/posix-functions/remque.texi: Likewise.
28735         * doc/posix-functions/renameat.texi: Likewise.
28736         * doc/posix-functions/rintl.texi: Likewise.
28737         * doc/posix-functions/sem_unlink.texi: Likewise.
28738         * doc/posix-functions/shm_open.texi: Likewise.
28739         * doc/posix-functions/shm_unlink.texi: Likewise.
28740         * doc/posix-functions/signgam.texi: Likewise.
28741         * doc/posix-functions/sigset.texi: Likewise.
28742         * doc/posix-functions/stpcpy.texi: Likewise.
28743         * doc/posix-functions/stpncpy.texi: Likewise.
28744         * doc/posix-functions/strerror.texi: Likewise.
28745         * doc/posix-functions/strtod.texi: Likewise.
28746         * doc/posix-functions/symlinkat.texi: Likewise.
28747         * doc/posix-functions/unlinkat.texi: Likewise.
28748         * doc/posix-functions/utimensat.texi: Likewise.
28749         * doc/glibc-functions/bindresvport.texi: Likewise.
28750         * doc/glibc-functions/dn_expand.texi: Likewise.
28751         * doc/glibc-functions/exp10.texi: Likewise.
28752         * doc/glibc-functions/exp10f.texi: Likewise.
28753         * doc/glibc-functions/fgetxattr.texi: Likewise.
28754         * doc/glibc-functions/flistxattr.texi: Likewise.
28755         * doc/glibc-functions/fopencookie.texi: Likewise.
28756         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28757         * doc/glibc-functions/fremovexattr.texi: Likewise.
28758         * doc/glibc-functions/fsetxattr.texi: Likewise.
28759         * doc/glibc-functions/getifaddrs.texi: Likewise.
28760         * doc/glibc-functions/getxattr.texi: Likewise.
28761         * doc/glibc-functions/lgetxattr.texi: Likewise.
28762         * doc/glibc-functions/listxattr.texi: Likewise.
28763         * doc/glibc-functions/llistxattr.texi: Likewise.
28764         * doc/glibc-functions/lremovexattr.texi: Likewise.
28765         * doc/glibc-functions/lsetxattr.texi: Likewise.
28766         * doc/glibc-functions/pow10.texi: Likewise.
28767         * doc/glibc-functions/pow10f.texi: Likewise.
28768         * doc/glibc-functions/rcmd_af.texi: Likewise.
28769         * doc/glibc-functions/removexattr.texi: Likewise.
28770         * doc/glibc-functions/res_init.texi: Likewise.
28771         * doc/glibc-functions/res_mkquery.texi: Likewise.
28772         * doc/glibc-functions/res_query.texi: Likewise.
28773         * doc/glibc-functions/res_querydomain.texi: Likewise.
28774         * doc/glibc-functions/res_send.texi: Likewise.
28775         * doc/glibc-functions/rresvport_af.texi: Likewise.
28776         * doc/glibc-functions/setxattr.texi: Likewise.
28777         * doc/glibc-functions/strcasestr.texi: Likewise.
28778
28779 2008-12-15  Bruno Haible  <bruno@clisp.org>
28780
28781         Fix compilation error on OSF/1 4.0.
28782         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28783         <sys/time.h>, simply delegate to the system header.
28784         Reported by Daniel Richard G. <oss@teragram.com>.
28785
28786 2008-12-15  Bruno Haible  <bruno@clisp.org>
28787
28788         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28789         * doc/posix-functions/fchmodat.texi: Likewise.
28790         * doc/posix-functions/fchownat.texi: Likewise.
28791         * doc/posix-functions/fdopendir.texi: Likewise.
28792         * doc/posix-functions/fstatat.texi: Likewise.
28793         * doc/posix-functions/mkdirat.texi: Likewise.
28794         * doc/posix-functions/unlinkat.texi: Likewise.
28795
28796 2008-12-14  Bruno Haible  <bruno@clisp.org>
28797
28798         Update doc for POSIX:2008.
28799         * doc/posix-functions/faccessat.texi: New file.
28800         * doc/posix-functions/fchmodat.texi: New file.
28801         * doc/posix-functions/fchownat.texi: New file.
28802         * doc/posix-functions/fdopendir.texi: New file.
28803         * doc/posix-functions/fstatat.texi: New file.
28804         * doc/posix-functions/futimens.texi: New file.
28805         * doc/posix-functions/linkat.texi: New file.
28806         * doc/posix-functions/mkdirat.texi: New file.
28807         * doc/posix-functions/mkfifoat.texi: New file.
28808         * doc/posix-functions/mknodat.texi: New file.
28809         * doc/posix-functions/open_wmemstream.texi: New file.
28810         * doc/posix-functions/openat.texi: New file.
28811         * doc/posix-functions/psiginfo.texi: New file.
28812         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28813         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28814         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28815         * doc/posix-functions/readlinkat.texi: New file.
28816         * doc/posix-functions/renameat.texi: New file.
28817         * doc/posix-functions/strerror_l.texi: New file.
28818         * doc/posix-functions/symlinkat.texi: New file.
28819         * doc/posix-functions/unlinkat.texi: New file.
28820         * doc/posix-functions/utimensat.texi: New file.
28821         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28822
28823 2008-12-14  Bruno Haible  <bruno@clisp.org>
28824
28825         Update doc for POSIX:2008.
28826         * doc/posix-functions/alphasort.texi: Renamed from
28827         doc/glibc-functions/alphasort.texi.
28828         * doc/posix-functions/dirfd.texi: Renamed from
28829         doc/glibc-functions/dirfd.texi.
28830         * doc/posix-functions/dprintf.texi: Renamed from
28831         doc/glibc-functions/dprintf.texi.
28832         * doc/posix-functions/duplocale.texi: Renamed from
28833         doc/glibc-functions/duplocale.texi.
28834         * doc/posix-functions/fexecve.texi: Renamed from
28835         doc/glibc-functions/fexecve.texi.
28836         * doc/posix-functions/fmemopen.texi: Renamed from
28837         doc/glibc-functions/fmemopen.texi.
28838         * doc/posix-functions/freelocale.texi: Renamed from
28839         doc/glibc-functions/freelocale.texi.
28840         * doc/posix-functions/getdate_err.texi: Renamed from
28841         doc/glibc-functions/getdate_err.texi.
28842         * doc/posix-functions/isalnum_l.texi: Renamed from
28843         doc/glibc-functions/isalnum_l.texi.
28844         * doc/posix-functions/isalpha_l.texi: Renamed from
28845         doc/glibc-functions/isalpha_l.texi.
28846         * doc/posix-functions/isblank_l.texi: Renamed from
28847         doc/glibc-functions/isblank_l.texi.
28848         * doc/posix-functions/iscntrl_l.texi: Renamed from
28849         doc/glibc-functions/iscntrl_l.texi.
28850         * doc/posix-functions/isdigit_l.texi: Renamed from
28851         doc/glibc-functions/isdigit_l.texi.
28852         * doc/posix-functions/isgraph_l.texi: Renamed from
28853         doc/glibc-functions/isgraph_l.texi.
28854         * doc/posix-functions/islower_l.texi: Renamed from
28855         doc/glibc-functions/islower_l.texi.
28856         * doc/posix-functions/isprint_l.texi: Renamed from
28857         doc/glibc-functions/isprint_l.texi.
28858         * doc/posix-functions/ispunct_l.texi: Renamed from
28859         doc/glibc-functions/ispunct_l.texi.
28860         * doc/posix-functions/isspace_l.texi: Renamed from
28861         doc/glibc-functions/isspace_l.texi.
28862         * doc/posix-functions/isupper_l.texi: Renamed from
28863         doc/glibc-functions/isupper_l.texi.
28864         * doc/posix-functions/iswalnum_l.texi: Renamed from
28865         doc/glibc-functions/iswalnum_l.texi.
28866         * doc/posix-functions/iswalpha_l.texi: Renamed from
28867         doc/glibc-functions/iswalpha_l.texi.
28868         * doc/posix-functions/iswblank_l.texi: Renamed from
28869         doc/glibc-functions/iswblank_l.texi.
28870         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28871         doc/glibc-functions/iswcntrl_l.texi.
28872         * doc/posix-functions/iswctype_l.texi: Renamed from
28873         doc/glibc-functions/iswctype_l.texi.
28874         * doc/posix-functions/iswdigit_l.texi: Renamed from
28875         doc/glibc-functions/iswdigit_l.texi.
28876         * doc/posix-functions/iswgraph_l.texi: Renamed from
28877         doc/glibc-functions/iswgraph_l.texi.
28878         * doc/posix-functions/iswlower_l.texi: Renamed from
28879         doc/glibc-functions/iswlower_l.texi.
28880         * doc/posix-functions/iswprint_l.texi: Renamed from
28881         doc/glibc-functions/iswprint_l.texi.
28882         * doc/posix-functions/iswpunct_l.texi: Renamed from
28883         doc/glibc-functions/iswpunct_l.texi.
28884         * doc/posix-functions/iswspace_l.texi: Renamed from
28885         doc/glibc-functions/iswspace_l.texi.
28886         * doc/posix-functions/iswupper_l.texi: Renamed from
28887         doc/glibc-functions/iswupper_l.texi.
28888         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28889         doc/glibc-functions/iswxdigit_l.texi.
28890         * doc/posix-functions/isxdigit_l.texi: Renamed from
28891         doc/glibc-functions/isxdigit_l.texi.
28892         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28893         doc/glibc-functions/mbsnrtowcs.texi.
28894         * doc/posix-functions/mkdtemp.texi: Renamed from
28895         doc/glibc-functions/mkdtemp.texi.
28896         * doc/posix-functions/newlocale.texi: Renamed from
28897         doc/glibc-functions/newlocale.texi.
28898         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28899         doc/glibc-functions/nl_langinfo_l.texi.
28900         * doc/posix-functions/open_memstream.texi: Renamed from
28901         doc/glibc-functions/open_memstream.texi.
28902         * doc/posix-functions/opterr.texi: Renamed from
28903         doc/glibc-functions/opterr.texi.
28904         * doc/posix-functions/optind.texi: Renamed from
28905         doc/glibc-functions/optind.texi.
28906         * doc/posix-functions/optopt.texi: Renamed from
28907         doc/glibc-functions/optopt.texi.
28908         * doc/posix-functions/psignal.texi: Renamed from
28909         doc/glibc-functions/psignal.texi.
28910         * doc/posix-functions/scandir.texi: Renamed from
28911         doc/glibc-functions/scandir.texi.
28912         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28913         doc/glibc-functions/sched_get_priority_min.texi.
28914         * doc/posix-functions/signgam.texi: Renamed from
28915         doc/glibc-functions/signgam.texi.
28916         * doc/posix-functions/stpcpy.texi: Renamed from
28917         doc/glibc-functions/stpcpy.texi.
28918         * doc/posix-functions/stpncpy.texi: Renamed from
28919         doc/glibc-functions/stpncpy.texi.
28920         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28921         doc/glibc-functions/strcasecmp_l.texi.
28922         * doc/posix-functions/strcoll_l.texi: Renamed from
28923         doc/glibc-functions/strcoll_l.texi.
28924         * doc/posix-functions/strfmon_l.texi: Renamed from
28925         doc/glibc-functions/strfmon_l.texi.
28926         * doc/posix-functions/strftime_l.texi: Renamed from
28927         doc/glibc-functions/strftime_l.texi.
28928         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28929         doc/glibc-functions/strncasecmp_l.texi.
28930         * doc/posix-functions/strndup.texi: Renamed from
28931         doc/glibc-functions/strndup.texi.
28932         * doc/posix-functions/strnlen.texi: Renamed from
28933         doc/glibc-functions/strnlen.texi.
28934         * doc/posix-functions/strsignal.texi: Renamed from
28935         doc/glibc-functions/strsignal.texi.
28936         * doc/posix-functions/strxfrm_l.texi: Renamed from
28937         doc/glibc-functions/strxfrm_l.texi.
28938         * doc/posix-functions/timer_gettime.texi: Renamed from
28939         doc/glibc-functions/timer_gettime.texi.
28940         * doc/posix-functions/tolower_l.texi: Renamed from
28941         doc/glibc-functions/tolower_l.texi.
28942         * doc/posix-functions/toupper_l.texi: Renamed from
28943         doc/glibc-functions/toupper_l.texi.
28944         * doc/posix-functions/towctrans_l.texi: Renamed from
28945         doc/glibc-functions/towctrans_l.texi.
28946         * doc/posix-functions/towlower_l.texi: Renamed from
28947         doc/glibc-functions/towlower_l.texi.
28948         * doc/posix-functions/towupper_l.texi: Renamed from
28949         doc/glibc-functions/towupper_l.texi.
28950         * doc/posix-functions/uselocale.texi: Renamed from
28951         doc/glibc-functions/uselocale.texi.
28952         * doc/posix-functions/vdprintf.texi: Renamed from
28953         doc/glibc-functions/vdprintf.texi.
28954         * doc/posix-functions/wcpcpy.texi:
28955         Renamed from doc/glibc-functions/wcpcpy.texi.
28956         * doc/posix-functions/wcpncpy.texi: Renamed from
28957         doc/glibc-functions/wcpncpy.texi.
28958         * doc/posix-functions/wcscasecmp.texi: Renamed from
28959         doc/glibc-functions/wcscasecmp.texi.
28960         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28961         doc/glibc-functions/wcscasecmp_l.texi.
28962         * doc/posix-functions/wcscoll_l.texi: Renamed from
28963         doc/glibc-functions/wcscoll_l.texi.
28964         * doc/posix-functions/wcsdup.texi: Renamed from
28965         doc/glibc-functions/wcsdup.texi.
28966         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28967         doc/glibc-functions/wcsncasecmp.texi.
28968         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28969         doc/glibc-functions/wcsncasecmp_l.texi.
28970         * doc/posix-functions/wcsnlen.texi: Renamed from
28971         doc/glibc-functions/wcsnlen.texi.
28972         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28973         doc/glibc-functions/wcsnrtombs.texi.
28974         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28975         doc/glibc-functions/wcsxfrm_l.texi.
28976         * doc/posix-functions/wctrans_l.texi: Renamed from
28977         doc/glibc-functions/wctrans_l.texi.
28978         * doc/posix-functions/wctype_l.texi: Renamed from
28979         doc/glibc-functions/wctype_l.texi.
28980         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28981         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28982         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28983         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28984         these subsections.
28985         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28986         Remove sections.
28987
28988 2008-12-14  Bruno Haible  <bruno@clisp.org>
28989
28990         Update doc for POSIX:2008.
28991         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28992
28993 2008-12-14  Bruno Haible  <bruno@clisp.org>
28994
28995         Update doc for POSIX:2008.
28996         * doc/pastposix-functions/bcmp.texi: Renamed from
28997         doc/posix-functions/bcmp.texi.
28998         * doc/pastposix-functions/bcopy.texi: Renamed from
28999         doc/posix-functions/bcopy.texi.
29000         * doc/pastposix-functions/bsd_signal.texi: Renamed from
29001         doc/posix-functions/bsd_signal.texi.
29002         * doc/pastposix-functions/bzero.texi: Renamed from
29003         doc/posix-functions/bzero.texi.
29004         * doc/pastposix-functions/ecvt.texi: Renamed from
29005         doc/posix-functions/ecvt.texi.
29006         * doc/pastposix-functions/fcvt.texi: Renamed from
29007         doc/posix-functions/fcvt.texi.
29008         * doc/pastposix-functions/ftime.texi: Renamed from
29009         doc/posix-functions/ftime.texi.
29010         * doc/pastposix-functions/gcvt.texi: Renamed from
29011         doc/posix-functions/gcvt.texi.
29012         * doc/pastposix-functions/getcontext.texi: Renamed from
29013         doc/posix-functions/getcontext.texi.
29014         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
29015         doc/posix-functions/gethostbyaddr.texi.
29016         * doc/pastposix-functions/gethostbyname.texi: Renamed from
29017         doc/posix-functions/gethostbyname.texi.
29018         * doc/pastposix-functions/getwd.texi: Renamed from
29019         doc/posix-functions/getwd.texi.
29020         * doc/pastposix-functions/h_errno.texi: Renamed from
29021         doc/posix-functions/h_errno.texi.
29022         * doc/pastposix-functions/index.texi: Renamed from
29023         doc/posix-functions/index.texi.
29024         * doc/pastposix-functions/makecontext.texi: Renamed from
29025         doc/posix-functions/makecontext.texi.
29026         * doc/pastposix-functions/mktemp.texi: Renamed from
29027         doc/posix-functions/mktemp.texi.
29028         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
29029         doc/posix-functions/pthread_attr_getstackaddr.texi.
29030         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
29031         doc/posix-functions/pthread_attr_setstackaddr.texi.
29032         * doc/pastposix-functions/rindex.texi: Renamed from
29033         doc/posix-functions/rindex.texi.
29034         * doc/pastposix-functions/scalb.texi: Renamed from
29035         doc/posix-functions/scalb.texi.
29036         * doc/pastposix-functions/setcontext.texi: Renamed from
29037         doc/posix-functions/setcontext.texi.
29038         * doc/pastposix-functions/swapcontext.texi: Renamed from
29039         doc/posix-functions/swapcontext.texi.
29040         * doc/pastposix-functions/ualarm.texi: Renamed from
29041         doc/posix-functions/ualarm.texi.
29042         * doc/pastposix-functions/usleep.texi: Renamed from
29043         doc/posix-functions/usleep.texi.
29044         * doc/pastposix-functions/vfork.texi: Renamed from
29045         doc/posix-functions/vfork.texi.
29046         * doc/pastposix-functions/wcswcs.texi: Renamed from
29047         doc/posix-functions/wcswcs.texi.
29048         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
29049         (Function Substitutes): Update.
29050
29051 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29052
29053         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
29054         m4/strerror.m4.
29055
29056 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29057             Bruno Haible  <bruno@clisp.org>
29058
29059         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
29060
29061 2008-12-13  Bruno Haible  <bruno@clisp.org>
29062
29063         * modules/strtoull (Depends-on): Remove unistd.
29064
29065 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29066
29067         * modules/strtoull (Depends-on): Add stdlib.
29068
29069 2008-12-11  Simon Josefsson  <simon@josefsson.org>
29070
29071         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
29072
29073 2008-12-10  Jim Meyering  <meyering@redhat.com>
29074
29075         gl_ASSERT: don't say assertions are disabled when they're not
29076         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29077         "checking whether to enable assertions... no", when they are in
29078         fact enabled.  This is solely a bug in the output of configure.
29079         In spite of saying "no", NDEBUG was not defined in that case.
29080         Also, as noted by Eric Blake, leave assertions enabled upon
29081         --enable-assert=INVALID.
29082
29083 2008-12-10  Bruno Haible  <bruno@clisp.org>
29084
29085         Change MODULES.html to refer to POSIX:2008 where possible.
29086         * MODULES.html.sh (POSIX2008_URL): New variable.
29087         (posix_headers): Remove sys/timeb, ucontext.
29088         (posix2001_headers): New variable.
29089         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29090         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29091         index, makecontext, mktemp, pthread_attr_getstackaddr,
29092         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29093         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29094         (posix2001_functions): New variable.
29095         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29096         otherwise.
29097
29098 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29099
29100         add missing include to parse-duration.c
29101         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29102         * modules/parse-duration (Depends-on): Add xalloc.
29103
29104         fix sed script reading maint.mk
29105         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29106         (syntax-check-rules): Use it.
29107
29108 2008-12-09  Bruno Haible  <bruno@clisp.org>
29109
29110         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29111         MacOS X 10.4/PowerPC.
29112         Reported by Simon Josefsson.
29113
29114 2008-12-08  Jim Meyering  <meyering@redhat.com>
29115
29116         work around mingw's lack of some S_IF definitions
29117         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29118         Reported by Simon Josefsson.
29119
29120 2008-12-08  Bruno Haible  <bruno@clisp.org>
29121
29122         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29123         applied to variables. Needed on MacOS X 10.4/PowerPC.
29124         Reported by Simon Josefsson.
29125
29126 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29127         and Eric Blake  <ebb9@byu.net>
29128
29129         assert: honor --enable-assert
29130         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
29131         order to honor --enable-assert, rather than treating it as a
29132         synonym for --disable-assert.
29133
29134 2008-12-08  Jim Meyering  <meyering@redhat.com>
29135
29136         * lib/posixtm.c: Remove now-useless declaration of mktime.
29137
29138         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
29139
29140 2008-12-07  Bruno Haible  <bruno@clisp.org>
29141
29142         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
29143         test_once): Mark functions as static.
29144         * tests/test-tls.c (test_tls): Likewise.
29145
29146 2008-12-07  Bruno Haible  <bruno@clisp.org>
29147
29148         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
29149         iconv_register_autodetect.
29150
29151 2008-12-07  Jim Meyering  <meyering@redhat.com>
29152
29153         posixtm.c: avoid a warning
29154         * lib/posixtm.c (posixtime): Don't initialize tm0.
29155         It's no longer needed to placate gcc4's -Wuninitialized,
29156         and the attempt to placate would elicit a new warning.
29157
29158         unicodeio.c: mark unused parameters
29159         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29160         (fallback_failure_callback): Likewise.
29161
29162 2008-12-07  Bruno Haible  <bruno@clisp.org>
29163
29164         * gnulib-tool (func_create_testdir): When building the tests
29165         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
29166         Reported by Simon Josefsson.
29167
29168 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29169
29170         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
29171
29172 2008-12-06  Bruno Haible  <bruno@clisp.org>
29173
29174         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
29175         Suggested by Eric Blake.
29176
29177 2008-12-06  Bruno Haible  <bruno@clisp.org>
29178
29179         Fix a c-stack test failure on MacOS X.
29180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
29181         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
29182         handler for SIGBUS as well.
29183         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
29184         install a signal handler for SIGBUS as well.
29185         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
29186
29187 2008-12-06  Bruno Haible  <bruno@clisp.org>
29188
29189         Advocacy documentation.
29190         * doc/gnulib-intro.texi (Benefits): New section.
29191         * doc/gnulib.texi: Update.
29192
29193 2008-12-06  Bruno Haible  <bruno@clisp.org>
29194
29195         Document the 'manywarnings' module.
29196         * doc/manywarnings.texi: New file.
29197         * doc/gnulib.texi: Include it.
29198
29199 2008-12-05  Eric Blake  <ebb9@byu.net>
29200
29201         tests: silence some gcc warnings
29202         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
29203         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
29204         type mismatches.
29205
29206 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29207             Bruno Haible  <bruno@clisp.org>
29208
29209         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
29210
29211 2008-11-29  Jim Meyering  <meyering@redhat.com>
29212
29213         unicodeio.c: mark unused parameters
29214         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
29215         (fallback_failure_callback): Likewise.
29216
29217         fts: fix a thinko
29218         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
29219         (set_stat_type): Return S_IF*-valued "type" directly.
29220         Prompted by James Youngman's spotting a related bug.
29221         Confirmed by further testing through find.
29222
29223         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
29224         * lib/fts.c (D_TYPE): Define.
29225         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
29226         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
29227         (s_ifmt_shift_bits): New function.
29228         (set_stat_type): New function.
29229         (fts_build): When not calling fts_stat, call set_stat_type
29230         to propagate dirent.d_type info to fts_read caller.
29231         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
29232         fts_statp->st_mode type information may be valid.
29233
29234 2008-11-28  Simon Josefsson  <simon@josefsson.org>
29235
29236         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
29237         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
29238         <sds@gnu.org>.
29239
29240 2008-11-20  Bruno Haible  <bruno@clisp.org>
29241
29242         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
29243         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
29244         INCLUDE_NEXT.
29245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
29246         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
29247         * modules/math (Makefile.am): Substitute
29248         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
29249         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29250
29251 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29252             Bruno Haible  <bruno@clisp.org>
29253
29254         * lib/stdint.in.h: Define all type macros so that their expansion is
29255         a single typedef'ed token. Fixes a compilation failure in Boost which
29256         does "using ::int8_t;".
29257
29258 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29259
29260         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29261         gl_MANYWARN_ALL_GCC.
29262         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29263         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29264         * modules/manywarnings: New file.
29265         * MODULES.html.sh: Mention manywarnings module.
29266
29267 2008-11-18  Bruno Haible  <bruno@clisp.org>
29268
29269         * doc/gnulib-tool.texi (Unit tests): New section.
29270
29271 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29272
29273         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29274         paths like 'lib/po/foo.po'.
29275
29276 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29277
29278         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29279         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29280
29281 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29282
29283         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29284         parameter works.
29285
29286 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29287
29288         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29289
29290 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29291
29292         * modules/parse-duration-tests: New file.
29293         * tests/test-parse-duration.sh: New file.
29294         * tests/test-parse-duration.c: New file.
29295
29296         New module 'parse-duration'.
29297         * lib/parse-duration.h: New file.
29298         * lib/parse-duration.c: New file.
29299         * modules/parse-duration: New file.
29300
29301 2008-11-17  Bruno Haible  <bruno@clisp.org>
29302
29303         * tests/test-select-out.sh: Comment out the first pipe test.
29304         Reported by Simon Josefsson.
29305
29306 2008-11-17  Bruno Haible  <bruno@clisp.org>
29307
29308         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29310         gl_HOSTENT.
29311
29312 2008-11-17  Bruno Haible  <bruno@clisp.org>
29313
29314         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29315         -lnetwork and -lnet. Needed for Haiku and BeOS.
29316
29317 2008-11-16  Bruno Haible  <bruno@clisp.org>
29318
29319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29320
29321 2008-11-16  Bruno Haible  <bruno@clisp.org>
29322
29323         Avoid test failure on Haiku.
29324         * tests/test-fsync.c: Include <errno.h>.
29325         (main): Don't require that fsync (0) fails.
29326
29327 2008-11-15  Bruno Haible  <bruno@clisp.org>
29328
29329         New module 'hostent'.
29330         * modules/hostent: New file.
29331         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29332
29333 2008-11-15  Bruno Haible  <bruno@clisp.org>
29334
29335         New module 'servent'.
29336         * modules/servent: New file.
29337         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29338
29339 2008-11-15  Bruno Haible  <bruno@clisp.org>
29340
29341         Avoid generating same test program with two different rules.
29342         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29343         test-frexp to test-frexp-nolibm.
29344         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29345         test-frexpl to test-frexpl-nolibm.
29346
29347 2008-11-15  Bruno Haible  <bruno@clisp.org>
29348
29349         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29350         $(FREXPL_LIBM).
29351
29352 2008-11-15  Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/netdb.in.h: Activate the definitions also when the system's
29355         <netdb.h> has 'struct addrinfo'.
29356         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29357         EAI_OVERFLOW or AI_NUMERICSERV.
29358         * doc/posix-headers/netdb.texi: Document the problem.
29359
29360 2008-11-15  Bruno Haible  <bruno@clisp.org>
29361
29362         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29363
29364         Make the 'sched' module work on platforms where <sched.h> exists but
29365         is incomplete (such as Haiku).
29366         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29367         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29368         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29369         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29370         HAVE_STRUCT_SCHED_PARAM.
29371         * modules/sched (Depends-on): Add include_next.
29372         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29373         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29374         * doc/posix-headers/sched.texi: Document the issue.
29375
29376 2008-11-13  Jim Meyering  <meyering@redhat.com>
29377
29378         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29379         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29380         test would fail due to the difference in the Report bugs to ...
29381         line.  The expected address is empty, "<>", while the actual
29382         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29383
29384 2008-11-12  Bruno Haible  <bruno@clisp.org>
29385
29386         lstat: don't compile lstat.c on systems lacking lstat
29387         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29388         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29389         Reported by Daniel P. Berrange via Jim Meyering.
29390
29391 2008-11-12  Jim Meyering  <meyering@redhat.com>
29392
29393         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29394
29395 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29396
29397         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29398         instead.
29399
29400 2008-11-12  Bruno Haible  <bruno@clisp.org>
29401
29402         * lib/unicodeio.c: Include unistr.h.
29403         (utf8_wctomb): Remove function.
29404         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29405
29406 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29407
29408         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29409         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29410         <bruno@clisp.org>.
29411         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29412
29413 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29414
29415         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29416         * doc/gnulib.texi: Add section for warnings.
29417
29418 2008-11-11  Bruno Haible  <bruno@clisp.org>
29419
29420         * lib/sockets.h: Add a comment.
29421
29422 2008-11-11  Karl Berry  <karl@gnu.org>
29423
29424         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29425
29426 2008-11-11  Eric Blake  <ebb9@byu.net>
29427
29428         fdl.texi: avoid git symlinks
29429         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29430
29431 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29432
29433         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29434
29435 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29436
29437         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29438         (gl_WARN_ADD): Substitute $2 if literal.
29439
29440 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29441
29442         * m4/warning.m4: Remove.
29443
29444 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29445
29446         * m4/warnings.m4: Almost complete rewrite. :-)
29447
29448 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29449
29450         * modules/warnings: New module.
29451         * m4/warnings.m4: New file.
29452         * MODULES.html.sh: Mention warnings module.
29453         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29454         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29455
29456 2008-11-10  Eric Blake  <ebb9@byu.net>
29457
29458         fdl.texi: make a symlink to the latest version
29459         * doc/standards.texi: Revert today's earlier change.
29460         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29461         * doc/fdl.texi: ...and replace this with a symlink to the newer
29462         fdl-1.3.texi.
29463
29464 2008-11-10  Bruno Haible  <bruno@clisp.org>
29465
29466         * tests/test-select-fd.c (main): Accept the result file name as fourth
29467         argument.
29468         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29469         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29470
29471 2008-11-10  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29474         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29475         as autoconf-substituted macros.
29476         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29478         gl_NETDB_H_DEFAULTS. Set these variables.
29479         * modules/netdb (Makefile.am): Substitute these variables.
29480
29481 2008-11-10  Eric Blake  <ebb9@byu.net>
29482
29483         standards.texi: include correct file for FDL 1.3
29484         * doc/standards.texi (GNU Free Documentation License): Change
29485         include file to pull in FDL 1.3, not 1.2.
29486
29487         fdl.texi: revert accidental change to license
29488         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29489
29490 2008-11-10  Bruno Haible  <bruno@clisp.org>
29491
29492         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29493         cross-compiling guesses also when the native compile gives no result.
29494
29495 2008-11-10  Bruno Haible  <bruno@clisp.org>
29496
29497         * lib/spawni.c (__spawni): Force variable into the stack.
29498
29499 2008-11-10  Bruno Haible  <bruno@clisp.org>
29500
29501         Add support for Haiku.
29502         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29503         glibc and BeOS, but also on Haiku.
29504         * lib/fpurge.c (fpurge): Likewise.
29505         * lib/freadable.c (freadable): Likewise.
29506         * lib/freadahead.c (freadahead): Likewise.
29507         * lib/freading.c (freading): Likewise.
29508         * lib/freadptr.c (freadptr): Likewise.
29509         * lib/freadseek.c (freadptrinc): Likewise.
29510         * lib/fseeko.c (rpl_fseeko): Likewise.
29511         * lib/fseterr.c (fseterr): Likewise.
29512         * lib/fwritable.c (fwritable): Likewise.
29513         * lib/fwriting.c (fwriting): Likewise.
29514         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29515
29516 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29517
29518         * lib/config.charset: Treat Haiku like BeOS.
29519
29520 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29521
29522         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29523         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29524
29525 2008-11-08  Bruno Haible  <bruno@clisp.org>
29526
29527         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29528         AC_CACHE_CHECK.
29529
29530 2008-11-08  Bruno Haible  <bruno@clisp.org>
29531
29532         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29533
29534 2008-11-08  Bruno Haible  <bruno@clisp.org>
29535
29536         * tests/test-select-fd.c: New file.
29537         * tests/test-select-in.sh: New file.
29538         * tests/test-select-out.sh: New file.
29539         * tests/test-select-stdin.c: New file.
29540         * modules/select-tests (Files): Add the new files.
29541         (Depends-on): Add gettimeofday.
29542         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29543         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29544         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29545
29546 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29547             Bruno Haible  <bruno@clisp.org>
29548
29549         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29550
29551 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29552
29553         * build-aux/pmccabe2html: Added support for C++ source files.
29554
29555 2008-11-05  Ben Pfaff  <blp@gnu.org>
29556
29557         Fix lib/close.c build on Windows.
29558         * modules/close (Files): Add lib/w32sock.h.
29559
29560 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29561
29562         Accept Bison's NEWS format.
29563         * build-aux/announce-gen (print_news_deltas): Tweak
29564         $re_prefix.
29565
29566 2008-11-04  Bruno Haible  <bruno@clisp.org>
29567
29568         * modules/random_r (Maintainer): Add glibc.
29569
29570 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29571
29572         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29573         by karl@freefriends.org (Karl Berry).
29574         * doc/alloca.texi: Likewise.
29575         * doc/c-ctype.texi: Likewise.
29576         * doc/c-strcase.texi: Likewise.
29577         * doc/c-strcaseeq.texi: Likewise.
29578         * doc/c-strcasestr.texi: Likewise.
29579         * doc/c-strstr.texi: Likewise.
29580         * doc/c-strtod.texi: Likewise.
29581         * doc/c-strtold.texi: Likewise.
29582         * doc/ctime.texi: Likewise.
29583         * doc/error.texi: Likewise.
29584         * doc/fdl.texi: Likewise.
29585         * doc/gcd.texi: Likewise.
29586         * doc/getdate.texi: Likewise.
29587         * doc/gnulib-intro.texi: Likewise.
29588         * doc/gnulib-tool.texi: Likewise.
29589         * doc/gnulib.texi: Likewise.
29590         * doc/inet_ntoa.texi: Likewise.
29591         * doc/maintain.texi: Likewise.
29592         * doc/make-stds.texi: Likewise.
29593         * doc/quote.texi: Likewise.
29594         * doc/regexprops-generic.texi: Likewise.
29595         * doc/standards.texi: Likewise.
29596         * doc/verify.texi: Likewise.
29597         * doc/visibility.texi: Likewise.
29598         * doc/gnulib.texi (GNU Free Documentation License): Include
29599         fdl-1.3.texi instead of fdl.texi.
29600
29601 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29602
29603         * doc/fdl-1.3.texi: New file, from
29604         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29605         * modules/fdl-1.3: Add.
29606         * MODULES.html.sh: Add fdl-1.3.
29607
29608 2008-11-03  Bruno Haible  <bruno@clisp.org>
29609
29610         Make determination of absolute name of header file work with AIX xlc.
29611         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29612         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29613         preprocessing.
29614         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29615         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29616
29617 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29618
29619         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29620         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29621         <ludo@gnu.org>.
29622
29623 2008-11-02  Bruno Haible  <bruno@clisp.org>
29624
29625         Mark 'strpbrk' obsolete.
29626         * modules/strpbrk (Status, Notice): New sections.
29627         * modules/strtok_r (Depends-on): Add strpbrk.
29628
29629 2008-11-02  Bruno Haible  <bruno@clisp.org>
29630
29631         Mark 'strdup' obsolete.
29632         * modules/strdup (Status, Notice): New sections.
29633         * modules/findprog (Depends-on): Add strdup.
29634         * modules/getaddrinfo (Depends-on): Likewise.
29635         * modules/localename (Depends-on): Likewise.
29636         * modules/relocatable-lib (Depends-on): Likewise.
29637         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29638         * modules/relocatable-prog (Depends-on): Likewise.
29639         * modules/trim (Depends-on): Likewise.
29640         * modules/unictype/gen-ctype (Depends-on): Likewise.
29641         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29642
29643 2008-11-02  Bruno Haible  <bruno@clisp.org>
29644
29645         Mark 'strcspn' obsolete.
29646         * modules/strcspn (Status, Notice): New sections.
29647
29648 2008-11-02  Bruno Haible  <bruno@clisp.org>
29649
29650         Mark 'rmdir' obsolete.
29651         * modules/rmdir (Status, Notice): New sections.
29652         * modules/clean-temp (Depends-on): Add rmdir.
29653         * modules/openat (Depends-on): Likewise.
29654
29655 2008-11-02  Bruno Haible  <bruno@clisp.org>
29656
29657         Mark 'raise' obsolete.
29658         * modules/raise (Status, Notice): New sections.
29659         (Include): Specify <signal.h>.
29660         * modules/stdio (Depends-on): Add raise.
29661         * modules/write (Depends-on): Likewise.
29662
29663 2008-11-02  Bruno Haible  <bruno@clisp.org>
29664
29665         Mark 'memset' obsolete.
29666         * modules/memset (Status, Notice): New sections.
29667
29668 2008-11-02  Bruno Haible  <bruno@clisp.org>
29669
29670         Mark 'memmove' obsolete.
29671         * modules/memmove (Status, Notice): New sections.
29672         * modules/argp (Depends-on): Add memmove.
29673         * modules/argz (Depends-on): Likewise.
29674         * modules/canonicalize (Depends-on): Likewise.
29675         * modules/canonicalize-lgpl (Depends-on): Likewise.
29676         * modules/fts (Depends-on): Likewise.
29677         * modules/getcwd (Depends-on): Likewise.
29678         * modules/human (Depends-on): Likewise.
29679         * modules/regex (Depends-on): Likewise.
29680         * modules/striconveh (Depends-on): Likewise.
29681         * modules/trim (Depends-on): Likewise.
29682         * modules/unistr/u8-move (Depends-on): Likewise.
29683         * modules/unistr/u16-move (Depends-on): Likewise.
29684         * modules/unistr/u32-move (Depends-on): Likewise.
29685
29686 2008-11-02  Bruno Haible  <bruno@clisp.org>
29687
29688         Mark 'memcpy' obsolete.
29689         * modules/memcpy (Status, Notice): New sections.
29690
29691 2008-11-02  Bruno Haible  <bruno@clisp.org>
29692
29693         Mark 'memcmp' obsolete.
29694         * modules/memcmp (Status, Notice): New sections.
29695         * modules/argmatch (Depends-on): Add memchr.
29696         * modules/backupfile (Depends-on): Likewise.
29697         * modules/c-strcasestr (Depends-on): Likewise.
29698         * modules/crypto/des (Depends-on): Likewise.
29699         * modules/csharpcomp (Depends-on): Likewise.
29700         * modules/fnmatch (Depends-on): Likewise.
29701         * modules/git-merge-changelog (Depends-on): Likewise.
29702         * modules/isnand (Depends-on): Likewise.
29703         * modules/isnand-nolibm (Depends-on): Likewise.
29704         * modules/isnanf (Depends-on): Likewise.
29705         * modules/isnanf-nolibm (Depends-on): Likewise.
29706         * modules/isnanl (Depends-on): Likewise.
29707         * modules/isnanl-nolibm (Depends-on): Likewise.
29708         * modules/mbchar (Depends-on): Likewise.
29709         * modules/memcoll (Depends-on): Likewise.
29710         * modules/quotearg (Depends-on): Likewise.
29711         * modules/regex (Depends-on): Likewise.
29712         * modules/relocatable-prog (Depends-on): Likewise.
29713         * modules/same (Depends-on): Likewise.
29714         * modules/signbit (Depends-on): Likewise.
29715         * modules/strcasestr-simple (Depends-on): Likewise.
29716         * modules/unictype/gen-ctype (Depends-on): Likewise.
29717         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29718         * modules/uniname/uniname (Depends-on): Likewise.
29719         * modules/unistr/u8-cmp (Depends-on): Likewise.
29720
29721 2008-11-02  Bruno Haible  <bruno@clisp.org>
29722
29723         Mark 'memchr' obsolete.
29724         * modules/memchr (Status, Notice): New sections.
29725         * modules/argp (Depends-on): Add memchr.
29726         * modules/base64 (Depends-on): Likewise.
29727         * modules/c-strcasestr (Depends-on): Likewise.
29728         * modules/chdir-long (Depends-on): Likewise.
29729         * modules/fnmatch (Depends-on): Likewise.
29730         * modules/getsubopt (Depends-on): Likewise.
29731         * modules/git-merge-changelog (Depends-on): Likewise.
29732         * modules/glob (Depends-on): Likewise.
29733         * modules/strcasestr-simple (Depends-on): Likewise.
29734         * modules/strnlen (Depends-on): Likewise.
29735
29736 2008-11-02  Bruno Haible  <bruno@clisp.org>
29737
29738         Mark 'atexit' obsolete.
29739         * modules/atexit (Status, Notice): New sections.
29740         * modules/chdir-long (Depends-on): Add atexit.
29741         * modules/wait-process (Depends-on): Likewise.
29742
29743 2008-11-02  Bruno Haible  <bruno@clisp.org>
29744
29745         * gnulib-tool: New option --with-obsolete.
29746         (func_usage): Document it.
29747         (func_modules_transitive_closure): Drop obsolete dependencies if
29748         incobsolete is not true.
29749         (func_import): Read and save the incobsolete variable to the cache.
29750
29751 2008-11-02  Bruno Haible  <bruno@clisp.org>
29752
29753         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29754         * gnulib-tool: New option --extract-status.
29755         (func_usage): Document it.
29756         (sed_extract_prog): Recognize it.
29757         (func_get_status): New function.
29758
29759 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29760
29761         * modules/sockets (License): Change from LGPL to LGPLv2+.
29762
29763 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29764
29765         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29766
29767 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29768
29769         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29770         Mention times and sys_times.
29771         * modules/sys_times, modules/sys_times-tests: New modules.
29772         * modules/times, modules/times-tests: Likewise
29773         * m4/sys_times_h.m4: New file.
29774         * lib/sys_times.in.h: Likewise
29775         * lib/times.c: Likewise.
29776         * tests/test-sys_times.c: Likewise.
29777         * tests/test-times.c: Likewise.
29778         * doc/posix-headers/sys_times.texi: Update.
29779         * doc/posix-functions/times.texi: Update.
29780
29781 2008-10-28  Jim Meyering  <meyering@redhat.com>
29782
29783         * modules/tempname (Depends-on): Add lstat.
29784
29785         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29786
29787 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29788
29789         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29790         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29791         using idiom used elsewhere in gnulib.
29792
29793 2008-10-27  Jim Meyering  <meyering@redhat.com>
29794
29795         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29796
29797 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29798
29799         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29800         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29801         programs.
29802         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29803
29804 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29805
29806         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29807
29808 2008-10-27  Bruno Haible  <bruno@clisp.org>
29809
29810         * tests/test-lstat.c: Include <stdio.h>.
29811
29812 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29813
29814         * modules/lstat-tests: New module.
29815         * tests/test-lstat.c: New file.
29816
29817 2008-10-26  Jim Meyering  <meyering@redhat.com>
29818
29819         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29820
29821 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29822             Bruno Haible  <bruno@clisp.org>
29823
29824         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29825         * modules/configmake (Include): Add a note that the include must come
29826         after all system headers.
29827         * lib/javaversion.c: Include configmake.h after all other includes.
29828
29829 2008-10-26  Bruno Haible  <bruno@clisp.org>
29830
29831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29832         HAVE_STRUCT_RANDOM_DATA to 1.
29833         (gl_STDLIB_H): Simplify.
29834
29835 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29836
29837         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29838         substitute HAVE_STRUCT_RANDOM_DATA.
29839         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29840         random_data.
29841         * modules/stdlib (Makefile.am): Substitute
29842         HAVE_STRUCT_RANDOM_DATA.
29843
29844 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29845
29846         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29847         * doc/gnulib-intro.texi (Copyright): Likewise.
29848
29849 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29850
29851         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29852         findings.
29853
29854 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29855             Bruno Haible  <bruno@clisp.org>
29856
29857         * lib/unistd.in.h: Include <winsock2.h>.
29858         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29859         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29860         Provide dummy declarations.
29861         (gethostname): Override.
29862         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29864         gl_PREREQ_SYS_H_WINSOCK2.
29865         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29866         * doc/posix-functions/gethostname.texi: More details.
29867
29868 2008-10-25  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29871         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29872         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29873
29874         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29875         here ...
29876         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29877         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29878         gl_UNISTD_H_DEFAULTS.
29879
29880 2008-10-25  Eric Blake  <ebb9@byu.net>
29881
29882         signbit: avoid spurious compiler failure
29883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29884         declarations inside function.
29885
29886 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29887             Bruno Haible  <bruno@clisp.org>
29888
29889         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29890         * modules/random_r (Depends-on): Add stdint.
29891
29892 2008-10-24  Bruno Haible  <bruno@clisp.org>
29893
29894         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29895         Eggert.
29896         * modules/strerror (License): Likewise.
29897
29898 2008-10-24  Jim Meyering  <meyering@redhat.com>
29899
29900         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29901         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29902
29903 2008-10-24  Eric Blake  <ebb9@byu.net>
29904
29905         getgroups: fix compilation when getgroups is available
29906         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29907         but with <config.h> override of getgroups disabled.
29908
29909 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29910
29911         * doc/gnulib.texi (Header files): Add note about C++ problems.
29912         Explained by Bruno Haible <bruno@clisp.org>.
29913
29914 2008-10-23  Bruno Haible  <bruno@clisp.org>
29915
29916         Define a dummy SA_NODEFER macro on Interix.
29917         * lib/signal.in.h (SA_NODEFER): Define fallback.
29918         Reported by Aleksey Cheusov <cheusov@tut.by> via
29919         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29920
29921 2008-10-23  Bruno Haible  <bruno@clisp.org>
29922
29923         * modules/freadahead (License): Change to LGPLv2+.
29924         Suggested by Simon Josefsson.
29925
29926 2008-10-23  Jim Meyering  <meyering@redhat.com>
29927
29928         random_r: new module
29929         * modules/random_r: New file.
29930         * m4/random_r.m4: New file.
29931         * lib/random_r.c: New file, from glibc.
29932         * modules/random_r-tests: New file.
29933         * tests/test-random_r.c: New file.
29934         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29935          Declare.
29936         (RAND_MAX): Define.
29937         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29938         * modules/stdlib: Substitute them, too.
29939         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29940         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29941         * doc/glibc-functions/random_r.texi: Likewise.
29942         * doc/glibc-functions/setstate_r.texi: Likewise.
29943         * doc/glibc-functions/srandom_r.texi: Likewise.
29944         * config/srclist.txt: Mention it.
29945
29946 2008-10-23  David Lutterkort  <lutter@redhat.com>
29947
29948         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29949         link requirement
29950
29951 2008-10-23  Jim Meyering  <meyering@redhat.com>
29952
29953         selinux-h: mark parameters of stub functions as intentionally unused
29954         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29955         * lib/se-context.in.h: Likewise.
29956
29957 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29958
29959         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29960
29961 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29962
29963         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29964
29965 2008-10-22  Eric Blake  <ebb9@byu.net>
29966
29967         glthread/thread: avoid compiler warning
29968         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29969         Add unreachable abort to silence compiler.
29970
29971 2008-10-22  Eric Blake  <ebb9@byu.net>
29972
29973         netdb: also supply struct addrinfo for cygwin 1.5.x
29974         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29975         older cygwin.
29976         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29977         cygwin.
29978         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29979
29980 2008-10-22  Bruno Haible  <bruno@clisp.org>
29981
29982         * users.txt: Update entry about pspp.
29983
29984 2008-10-21  Bruno Haible  <bruno@clisp.org>
29985
29986         Simplification.
29987         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29988         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29989
29990         Simplification.
29991         * lib/ioctl.c (ioctl): Don't undefine.
29992         * lib/socket.c (socket): Don't undefine.
29993
29994         Remove unused module indicator macros.
29995         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29996         GNULIB_$1 as a C macro.
29997
29998         * doc/posix-functions/close.texi: Undo last change.
29999         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
30000         Windows platforms.
30001
30002 2008-10-21  Bruno Haible  <bruno@clisp.org>
30003
30004         Add gethostname() declaration to <unistd.h>.
30005         * lib/unistd.in.h (gethostname): New declaration.
30006         * lib/gethostname.c: Include <unistd.h>.
30007         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
30008         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
30009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
30010         and HAVE_GETHOSTNAME.
30011         * modules/gethostname (Depends-on): Add unistd.
30012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30013         (Include): Specify <unistd.h>.
30014         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
30015         HAVE_GETHOSTNAME.
30016         * tests/test-gethostname.c: Include <unistd.h> first.
30017
30018 2008-10-21  Bruno Haible  <bruno@clisp.org>
30019
30020         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
30021         * modules/select-tests (Depends-on): Likewise.
30022         Reported by Simon Josefsson.
30023
30024 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30025
30026         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
30027         * lib/accept.c: New file, based on winsock.c.
30028         * lib/bind.c: New file, based on winsock.c.
30029         * lib/connect.c: New file, based on winsock.c.
30030         * lib/getpeername.c: New file, based on winsock.c.
30031         * lib/getsockname.c: New file, based on winsock.c.
30032         * lib/getsockopt.c: New file, based on winsock.c.
30033         * lib/ioctl.c: New file, based on winsock.c.
30034         * lib/listen.c: New file, based on winsock.c.
30035         * lib/recv.c: New file, based on winsock.c.
30036         * lib/recvfrom.c: New file, based on winsock.c.
30037         * lib/send.c: New file, based on winsock.c.
30038         * lib/sendto.c: New file, based on winsock.c.
30039         * lib/setsockopt.c: New file, based on winsock.c.
30040         * lib/shutdown.c: New file, based on winsock.c.
30041         * lib/socket.c: New file, based on winsock.c.
30042         * lib/w32sock.h: New file, based on winsock.c.
30043         * lib/winsock.c: Remove file.
30044         * modules/accept: Likewise.
30045         * modules/bind: Likewise.
30046         * modules/connect: Likewise.
30047         * modules/getpeername: Likewise.
30048         * modules/getsockname: Likewise.
30049         * modules/getsockopt: Likewise.
30050         * modules/ioctl: Likewise.
30051         * modules/listen: Likewise.
30052         * modules/recv: Likewise.
30053         * modules/recvfrom: Likewise.
30054         * modules/send: Likewise.
30055         * modules/sendto: Likewise.
30056         * modules/setsockopt: Likewise.
30057         * modules/shutdown: Likewise.
30058         * modules/socket: Use socket.c instead of winsock.c.
30059         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
30060         * doc/posix-functions/accept.texi: Doc fix.
30061         * doc/posix-functions/bind.texi: Doc fix.
30062         * doc/posix-functions/close.texi: Doc fix.
30063         * doc/posix-functions/connect.texi: Doc fix.
30064         * doc/posix-functions/getpeername.texi: Doc fix.
30065         * doc/posix-functions/getsockname.texi: Doc fix.
30066         * doc/posix-functions/getsockopt.texi: Doc fix.
30067         * doc/posix-functions/ioctl.texi: Doc fix.
30068         * doc/posix-functions/listen.texi: Doc fix.
30069         * doc/posix-functions/recv.texi: Doc fix.
30070         * doc/posix-functions/recvfrom.texi: Doc fix.
30071         * doc/posix-functions/send.texi: Doc fix.
30072         * doc/posix-functions/sendto.texi: Doc fix.
30073         * doc/posix-functions/setsockopt.texi: Doc fix.
30074         * doc/posix-functions/shutdown.texi: Doc fix.
30075         * doc/posix-functions/socket.texi: Doc fix.
30076
30077 2008-10-20  Bruno Haible  <bruno@clisp.org>
30078
30079         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30080         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30081         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30082         as an alias for SIGABRT.
30083         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30084         (sigaction): Map it to SIGABRT.
30085         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30086
30087 2008-10-20  Bruno Haible  <bruno@clisp.org>
30088
30089         * lib/fts.c: Don't include lstat.h.
30090         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30091
30092         Move the lstat() declaration to <sys/stat.h>.
30093         * lib/lstat.h: Remove file.
30094         * lib/sys_stat.in.h: Add special invocation convention.
30095         (lstat): New declaration.
30096         * lib/lstat.c (orig_lstat): New function.
30097         (rpl_lstat): Use orig_lstat instead of lstat.
30098         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30099         AC_C_INLINE. Set REPLACE_LSTAT.
30100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30101         and REPLACE_LSTAT.
30102         * modules/lstat (Files): Remove lib/lstat.h.
30103         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30104         (Include): Specify <sys/stat.h> instead of lstat.h.
30105         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30106         REPLACE_LSTAT.
30107         * NEWS: Mention the change.
30108
30109 2008-10-20  Bruno Haible  <bruno@clisp.org>
30110
30111         * modules/posix_spawn-tests: New file.
30112         * tests/test-posix_spawn3.c: New file.
30113
30114 2008-10-20  Bruno Haible  <bruno@clisp.org>
30115
30116         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30117         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30118         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30119         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30120         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30121
30122 2008-10-20  Bruno Haible  <bruno@clisp.org>
30123
30124         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30125         of posix_spawn on AIX 5.3.
30126
30127 2008-10-20  Bruno Haible  <bruno@clisp.org>
30128
30129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
30130
30131 2008-10-20  Bruno Haible  <bruno@clisp.org>
30132
30133         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
30134         of AC_LANG_PROGRAM.
30135
30136 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30137
30138         * lib/netdb.in.h: Don't define GNU specific constants until they
30139         are supported or needed.  Reported by Bruno Haible
30140         <bruno@clisp.org>.
30141
30142 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30143
30144         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
30145
30146 2008-10-20  Simon Josefsson  <simon@josefsson.org>
30147
30148         * lib/getaddrinfo.h: Remove file.
30149         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
30150         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
30151         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
30152         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
30153         * modules/netdb: Substitute GNULIB_GETADDRINFO.
30154         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
30155         * tests/test-getaddrinfo.c: Likewise.
30156         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
30157         * NEWS: Mention change.
30158
30159 2008-10-19  Bruno Haible  <bruno@clisp.org>
30160
30161         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
30162
30163 2008-10-19  Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/wait-process.c: Include simply <sys/wait.h>.
30166         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
30167         WIFSTOPPED): Remove fallback definitions.
30168         * modules/wait-process (Depends-on): Add sys_wait.
30169
30170         New module 'sys_wait'.
30171         * modules/sys_wait: New file.
30172         * lib/sys_wait.in.h: New file, partially copied from
30173         lib/wait-process.c.
30174         * m4/sys_wait_h.m4: New file.
30175         * doc/posix-headers/sys_wait.texi: Mention the new module.
30176
30177 2008-10-19  Bruno Haible  <bruno@clisp.org>
30178
30179         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
30180
30181 2008-10-19  Bruno Haible  <bruno@clisp.org>
30182
30183         Assume that waitpid() fills an 'int' status, not a 'union wait'.
30184         * lib/wait-process.c (WAIT_T): Remove type.
30185         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
30186         (wait_subprocess): Update.
30187
30188 2008-10-19  Bruno Haible  <bruno@clisp.org>
30189
30190         New module 'atoll'.
30191         * modules/atoll: New file.
30192         * lib/stdlib.in.h (atoll): New declaration.
30193         * lib/atoll.c: New file, from glibc with modifications.
30194         * m4/atoll.m4: New file.
30195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
30196         HAVE_ATOLL.
30197         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
30198         * doc/posix-functions/atoll.texi: Mention the new module.
30199
30200 2008-10-19  Bruno Haible  <bruno@clisp.org>
30201
30202         Add strtoull() declaration to <stdlib.h>.
30203         * lib/stdlib.in.h (strtoull): New declaration.
30204         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30205         Set HAVE_STRTOULL.
30206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
30207         HAVE_STRTOULL.
30208         * modules/strtoull (Depends-on): Add stdlib.
30209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30210         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
30211         HAVE_STRTOULL.
30212
30213 2008-10-19  Bruno Haible  <bruno@clisp.org>
30214
30215         Add strtoll() declaration to <stdlib.h>.
30216         * lib/stdlib.in.h (strtoll): New declaration.
30217         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
30218         Set HAVE_STRTOLL.
30219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
30220         HAVE_STRTOLL.
30221         * modules/strtoll (Depends-on): Add stdlib.
30222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30223         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
30224
30225 2008-10-19  Bruno Haible  <bruno@clisp.org>
30226
30227         * modules/bcopy (Depends-on): Add strings.
30228         (Include): Specify <strings.h>.
30229
30230 2008-10-19  Bruno Haible  <bruno@clisp.org>
30231
30232         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
30233
30234 2008-10-19  Bruno Haible  <bruno@clisp.org>
30235
30236         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
30237         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
30238         mingw.
30239
30240 2008-10-19  Bruno Haible  <bruno@clisp.org>
30241
30242         * lib/atanl.c: Don't include isnanl.h.
30243         * lib/cosl.c: Likewise.
30244         * lib/ldexpl.c: Likewise.
30245         * lib/logl.c: Likewise.
30246         * lib/sinl.c: Likewise.
30247         * lib/sqrtl.c: Likewise.
30248         * lib/tanl.c: Likewise.
30249
30250         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
30251         * lib/isnanf.h: Remove file.
30252         * lib/isnand.h: Remove file.
30253         * lib/isnanl.h: Remove file.
30254         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30255         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30256         macros.
30257         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30258         HAVE_ISNANF, don't define it as a C macro.
30259         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30260         HAVE_ISNAND, don't define it as a C macro.
30261         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30262         HAVE_ISNANL, don't define it as a C macro.
30263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30264         HAVE_ISNAN[FDL].
30265         * modules/isnanf (Files): Remove lib/isnanf.h.
30266         (Depends-on): Add math.
30267         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30268         (Include): Specify <math.h> instead of isnanf.h.
30269         * modules/isnand (Files): Remove lib/isnand.h.
30270         (Depends-on): Add math.
30271         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30272         (Include): Specify <math.h> instead of isnand.h.
30273         * modules/isnanl (Files): Remove lib/isnanl.h.
30274         (Depends-on): Add math.
30275         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30276         (Include): Specify <math.h> instead of isnanl.h.
30277         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30278         HAVE_ISNAN[FDL].
30279         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30280         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30281         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30282         * NEWS: Mention the change.
30283
30284 2008-10-18  Bruno Haible  <bruno@clisp.org>
30285
30286         Add getusershell(), setusershell(), endusershell() declarations to
30287         <unistd.h>.
30288         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30289         declarations.
30290         * lib/getusershell.c: Include unistd.h.
30291         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30292         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30293         HAVE_GETUSERSHELL.
30294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30295         and HAVE_GETUSERSHELL.
30296         * modules/getusershell (Depends-on): Add unistd, extensions.
30297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30298         (Include): Specify <unistd.h>.
30299         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30300         HAVE_GETUSERSHELL.
30301
30302 2008-10-18  Bruno Haible  <bruno@clisp.org>
30303
30304         Add a getloadavg() declaration to <stdlib.h>.
30305         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30306         getloadavg declaration.
30307         (getloadavg): New declaration.
30308         * lib/getloadavg.c: Include <stdlib.h> first.
30309         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30310         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30311         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30313         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30314         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30316         (Include): Specify <stdlib.h>.
30317         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30318         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30319
30320 2008-10-18  Bruno Haible  <bruno@clisp.org>
30321
30322         * lib/dirchownmod.c: Don't include lchmod.h.
30323
30324         Move the lchmod() declaration to <sys/stat.h>.
30325         * lib/lchmod.h: Remove file.
30326         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30327         (lchmod): New declaration, moved here from lib/lchown.h.
30328         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30329         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30330         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30331         and HAVE_LCHMOD.
30332         * modules/lchmod (Files): Remove lib/lchmod.h.
30333         (Depends-on): Add sys_stat, extensions.
30334         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30335         (Include): Specify <sys/stat.h> instead of lchmod.h.
30336         * modules/sys_stat (Depends-on): Add link-warning.
30337         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30338         definition of GL_LINK_WARNING.
30339         * NEWS: Mention the change.
30340
30341 2008-10-18  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/fchdir.c: Don't include dirfd.h.
30344         * lib/fts.c: Likewise.
30345         * lib/getcwd.c: Likewise.
30346         * lib/glob.c: Likewise.
30347
30348         Move the dirfd() declaration to <dirent.h>.
30349         * lib/dirfd.h: Remove file.
30350         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30351         (dirfd): New declaration.
30352         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30354         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30355         HAVE_DECL_DIRFD.
30356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30357         HAVE_DECL_DIRFD.
30358         * modules/dirfd (Files): Remove lib/dirfd.h.
30359         (Depends-on): Add dirent, extensions.
30360         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30361         (Include): Specify <dirent.h> instead of dirfd.h.
30362         * modules/dirent (Depends-on): Add link-warning.
30363         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30364         definition of GL_LINK_WARNING.
30365         * NEWS: Mention the change.
30366
30367 2008-10-18  Bruno Haible  <bruno@clisp.org>
30368
30369         Move the euidaccess() declaration to <unistd.h>.
30370         * lib/euidaccess.h: Remove file.
30371         * lib/unistd.in.h (euidaccess): New declaration.
30372         * lib/euidaccess.c: Don't include euidaccess.h.
30373         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30374         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30376         and HAVE_EUIDACCESS.
30377         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30378         (Depends-on): Add unistd.
30379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30380         (Include): Specify <unistd.h> instead of euidaccess.h.
30381         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30382         HAVE_EUIDACCESS.
30383         * NEWS: Mention the change.
30384
30385 2008-10-18  Bruno Haible  <bruno@clisp.org>
30386
30387         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30388
30389         Move the getdomainname() declaration to <unistd.h>.
30390         * lib/getdomainname.h: Remove file.
30391         * lib/unistd.in.h (getdomainname): New declaration.
30392         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30393         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30394         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30395         HAVE_GETDOMAINNAME.
30396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30397         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30398         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30399         (Depends-on): Add unistd, extensions.
30400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30401         (Includes): Specify <unistd.h> instead of getdomainname.h.
30402         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30403         HAVE_GETDOMAINNAME.
30404         * NEWS: Mention the change.
30405
30406 2008-10-18  Bruno Haible  <bruno@clisp.org>
30407
30408         * modules/dirent: New file.
30409         * m4/dirent_h.m4: New file.
30410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30411         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30412         * modules/fchdir (Files): Remove lib/dirent.in.h.
30413         (Depends-on): Add dirent.
30414         (Makefile.am): Move rules to modules/dirent.
30415         * doc/posix-headers/dirent.texi: Mention the new module.
30416
30417 2008-10-18  Bruno Haible  <bruno@clisp.org>
30418
30419         Avoid -Wunused-parameter warnings in public gnulib header files.
30420         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30421         macro.
30422         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30423
30424 2008-10-18  Bruno Haible  <bruno@clisp.org>
30425
30426         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30427         * doc/glibc-functions/error.texi: Mention the module 'error'.
30428         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30429         * doc/glibc-functions/getdomainname.texi: Mention the module
30430         'getdomainname'.
30431         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30432         * doc/glibc-functions/getpagesize.texi: Mention the module
30433         'getpagesize'.
30434         * doc/glibc-functions/getusershell.texi: Mention the module
30435         'getusershell'.
30436         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30437         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30438         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30439         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30440         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30441         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30442         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30443         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30444         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30445         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30446         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30447         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30448         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30449         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30450
30451 2008-10-17  Bruno Haible  <bruno@clisp.org>
30452
30453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30454         HP-UX and IRIX, use -0.0L.
30455         * tests/test-ceill.c (minus_zero): Likewise.
30456         * tests/test-floorl.c (minus_zero): Likewise.
30457         * tests/test-frexpl.c (minus_zero): Likewise.
30458         * tests/test-isnan.c (minus_zerol): Likewise.
30459         * tests/test-isnanl.h (minus_zero): Likewise.
30460         * tests/test-ldexpl.c (minus_zero): Likewise.
30461         * tests/test-roundl.c (minus_zero): Likewise.
30462         * tests/test-signbit.c (minus_zerol): Likewise.
30463         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30464         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30465         * tests/test-truncl.c (minus_zero): Likewise.
30466         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30467         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30468         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30469         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30470
30471 2008-10-17  Bruno Haible  <bruno@clisp.org>
30472
30473         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30474         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30475         that it gets activated only for gcc >= 3.0.
30476         * lib/dirent.in.h: Likewise.
30477         * lib/errno.in.h: Likewise.
30478         * lib/fcntl.in.h: Likewise.
30479         * lib/float.in.h: Likewise.
30480         * lib/iconv.in.h: Likewise.
30481         * lib/inttypes.in.h: Likewise.
30482         * lib/locale.in.h: Likewise.
30483         * lib/math.in.h: Likewise.
30484         * lib/netdb.in.h: Likewise.
30485         * lib/netinet_in.in.h: Likewise.
30486         * lib/search.in.h: Likewise.
30487         * lib/signal.in.h: Likewise.
30488         * lib/spawn.in.h: Likewise.
30489         * lib/stdarg.in.h: Likewise.
30490         * lib/stdint.in.h: Likewise.
30491         * lib/stdio.in.h: Likewise.
30492         * lib/stdlib.in.h: Likewise.
30493         * lib/string.in.h: Likewise.
30494         * lib/strings.in.h: Likewise.
30495         * lib/sys_file.in.h: Likewise.
30496         * lib/sys_ioctl.in.h: Likewise.
30497         * lib/sys_select.in.h: Likewise.
30498         * lib/sys_socket.in.h: Likewise.
30499         * lib/sys_stat.in.h: Likewise.
30500         * lib/sys_time.in.h: Likewise.
30501         * lib/sysexits.in.h: Likewise.
30502         * lib/time.in.h: Likewise.
30503         * lib/unistd.in.h: Likewise.
30504         * lib/wchar.in.h: Likewise.
30505         * lib/wctype.in.h: Likewise.
30506         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30507
30508 2008-10-17  Jim Meyering  <meyering@redhat.com>
30509
30510         ignore-value: don't depend on inline module
30511         * modules/ignore-value (Depends-on): Remove 'inline'.
30512         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30513         Suggestion from Bruno Haible.
30514
30515 2008-10-17  Bruno Haible  <bruno@clisp.org>
30516
30517         New implementation of condition variables for Win32.
30518         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30519         (gl_linked_waitqueue_t): New type.
30520         (gl_cond_t): Use it.
30521         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30522         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30523         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30524         (glthread_cond_init_func, glthread_cond_wait_func,
30525         glthread_cond_timedwait_func, glthread_cond_signal_func,
30526         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30527         Reimplemented on the basis of gl_linked_waitqueue_t.
30528         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30529         gl_waitqueue_t.
30530         (gl_rwlock_t): Update.
30531         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30532
30533 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30534
30535         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30536         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30537
30538 2008-10-17  Jim Meyering  <meyering@redhat.com>
30539
30540         ignore-value: new module
30541         * modules/ignore-value: New file.
30542         * lib/ignore-value.h: New file.
30543         * MODULES.html.sh (Compiler warning management): New section,
30544         just for this module.  More to come.
30545
30546 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30547
30548         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30549         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30550         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30551
30552 2008-10-16  Jim Meyering  <meyering@redhat.com>
30553
30554         openat-die.c: avoid 'no previous prototype' warning
30555         * lib/openat-die.c: Include "openat.h".
30556         Reported by Reuben Thomas <rrt@sc3d.org>.
30557
30558 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30559
30560         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30561         * lib/netdb.in.h: Fix typo.
30562         Reported by Bruno Haible  <bruno@clisp.org>
30563
30564         * lib/netdb.in.h: Include sys/socket.h for platforms without
30565         netdb.h, to get structures like hostent on MinGW.
30566         * modules/netdb (Depends-on): Add sys_socket.
30567
30568 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30569
30570         * modules/netdb, modules/netdb-tests: New file.
30571         * m4/netdb_h.m4: New file.
30572         * lib/netdb.in.h: Add, currently just an empty file pending
30573         definitions.
30574         * tests/test-netdb.c: New file.
30575         * doc/posix-headers/netdb.texi: Mention that we replace it if
30576         needed.
30577         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30578         netdb.
30579
30580 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30581
30582         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30583         with code.
30584
30585 2008-10-13  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/glthread/cond.c (glthread_cond_wait_func,
30588         glthread_cond_timedwait_func): Add a comment.
30589
30590 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30591
30592         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30593         * tests/test-select.c: Likewise,
30594
30595 2008-10-13  Bruno Haible  <bruno@clisp.org>
30596
30597         * lib/glthread/cond.c (glthread_cond_wait_func,
30598         glthread_cond_timedwait_func): Fix variable name.
30599         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30600
30601 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30602
30603         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30605         struct sockaddr.sa_len.
30606         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30607
30608 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30609
30610         * build-aux/pmccabe2html: Add css and css_url parameters.
30611
30612 2008-10-12  Bruno Haible  <bruno@clisp.org>
30613
30614         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30615         calling aclx_get.
30616         Reported by Rainer Tammer <tammer@tammer.net>.
30617
30618 2008-10-12  Bruno Haible  <bruno@clisp.org>
30619
30620         Use msvcrt aware primitives for creation/termination of Win32 threads.
30621         * lib/glthread/thread.c: Include <process.h>.
30622         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30623         (wrapper_func): Update signature.
30624         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30625
30626 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30627             Bruno Haible  <bruno@clisp.org>
30628
30629         Provide a Win32 implementation of the 'cond' module.
30630         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30631         * lib/glthread/cond.c (glthread_cond_init_func,
30632         glthread_cond_wait_func, glthread_cond_timedwait_func,
30633         glthread_cond_signal_func, glthread_cond_broadcast_func,
30634         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30635         * modules/cond (Dependencies): Add gettimeofday.
30636
30637 2008-10-11  Bruno Haible  <bruno@clisp.org>
30638
30639         Make sleep work on older versions of mingw.
30640         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30641         only whether it exists.
30642         * doc/posix-functions/sleep.texi: Mention the problem with older
30643         versions of mingw.
30644
30645 2008-10-11  Bruno Haible  <bruno@clisp.org>
30646
30647         New module 'shutdown'.
30648         * modules/shutdown: New file.
30649         * lib/sys_socket.in.h (shutdown): New declaration.
30650         * lib/winsock.c (shutdown): New function.
30651         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30652         GNULIB_SHUTDOWN.
30653         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30654         * doc/posix-functions/shutdown.texi: Document the new module.
30655
30656 2008-10-11  Jim Meyering  <meyering@redhat.com>
30657
30658         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30659
30660 2008-10-11  Bruno Haible  <bruno@clisp.org>
30661
30662         New module 'fclose'.
30663         * modules/fclose: New file.
30664         * lib/stdio.in.h (fclose): New declaration.
30665         * lib/fclose.c: New file.
30666         * m4/fclose.m4: New file.
30667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30668         REPLACE_FCLOSE.
30669         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30670         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30671         REPLACE_FCLOSE.
30672         * modules/close (Depends-on): fclose.
30673         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30674
30675 2008-10-11  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30678         set errno and don't call _close.
30679
30680 2008-10-10  Bruno Haible  <bruno@clisp.org>
30681
30682         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30683         ACL, not afterwards. Fixes test failure on Cygwin.
30684
30685 2008-10-09  Ben Pfaff  <blp@gnu.org>
30686
30687         * build-aux/announce-gen: Fix gnulib version related part of usage
30688         message.  Die with a useful error message if no tarballs are
30689         found.
30690
30691 2008-10-10  Jim Meyering  <meyering@redhat.com>
30692
30693         bootstrap: use git's --depth=N option only if it's supported
30694         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30695         recognize the --depth option.  Reported by Pádraig Brady.
30696
30697 2008-10-09  Bruno Haible  <bruno@clisp.org>
30698
30699         New module 'ioctl'.
30700         * modules/ioctl: New file.
30701         * lib/sys_socket.in.h (ioctl): Remove declaration.
30702         * lib/winsock.c: Include <sys/ioctl.h>.
30703         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30704         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30705         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30706         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30707         * doc/posix-functions/ioctl.texi: Mention the new module.
30708
30709 2008-10-09  Bruno Haible  <bruno@clisp.org>
30710
30711         New module 'sys_ioctl'.
30712         * lib/sys_ioctl.in.h: New file.
30713         * m4/sys_ioctl_h.m4: New file.
30714         * modules/sys_ioctl: New file.
30715         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30716
30717 2008-10-09  Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30720         * lib/winsock.c: Include <stdarg.h>.
30721         (rpl_ioctl): Change to second argument 'int' and then varargs.
30722
30723 2008-10-09  Bruno Haible  <bruno@clisp.org>
30724
30725         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30726         when the sys_socket module is present and the system has <winsock2.h>.
30727
30728 2008-10-09  Bruno Haible  <bruno@clisp.org>
30729
30730         * doc/posix-functions/close.texi: Mention module 'close' instead of
30731         module 'sys_socket'.
30732
30733 2008-10-09  Bruno Haible  <bruno@clisp.org>
30734
30735         * doc/glibc-headers/sys_ioctl.texi: New file.
30736         * doc/gnulib.texi: Include it.
30737
30738 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30739             Bruno Haible  <bruno@clisp.org>
30740
30741         Combine the two replacements of 'close'.
30742         * lib/sys_socket.in.h (close): Define to a reminder to include
30743         <unistd.h>.
30744         (_gl_close_fd_maybe_socket): New declaration.
30745         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30746         * lib/winsock.c (close): Remove undefinition.
30747         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30748         needed for the gnulib module 'close'.
30749         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30750         define to an error symbol or to a warning, if suitable.
30751         * lib/close.c: Include <sys/socket.h>.
30752         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30753         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30754         UNISTD_H_HAVE_WINSOCK2_H.
30755         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30757         UNISTD_H_HAVE_WINSOCK2_H.
30758         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30759         (configure.ac): Set a module indicator.
30760         (Makefile.am): Substitute GNULIB_CLOSE.
30761         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30762         * modules/poll-tests (Depends-on): Add close.
30763         * modules/select-tests (Depends-on): Likewise.
30764
30765 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30766             Bruno Haible  <bruno@clisp.org>
30767
30768         New module 'close'.
30769         * modules/close: New file.
30770         * lib/unistd.in.h (close): Move declaration out of the
30771         FCHDIR_REPLACEMENT scope.
30772         (_gl_unregister_fd): New declaration.
30773         * lib/close.c: New file.
30774         * lib/fchdir.c (rpl_close): Remove function.
30775         * m4/close.m4: New file.
30776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30777         close.
30778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30779         REPLACE_CLOSE.
30780         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30781         REPLACE_CLOSE.
30782         * modules/fchdir (Depends-on): Add close.
30783
30784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30785             Bruno Haible  <bruno@clisp.org>
30786
30787         * lib/fcntl.in.h (open): Simplify conditionals.
30788         (_gl_register_fd): New declaration.
30789         * lib/fchdir.c (rpl_open): Remove function.
30790         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30791         also.
30792         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30794         open.
30795
30796 2008-10-09  Jim Meyering  <meyering@redhat.com>
30797
30798         GNUmakefile: use the more name-space-friendly "_version"
30799         * top/GNUmakefile (_dummy): Update.
30800         (_version): Rename from "version".
30801
30802 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30803             Bruno Haible  <bruno@clisp.org>
30804
30805         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30806         rpl_close.
30807         (_gl_register_fd): New function, extracted from rpl_open.
30808         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30809         (rpl_open, rpl_opendir): Use _gl_register_fd.
30810
30811 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30812
30813         Fix organization of 'open' replacement.
30814         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30815         (gl_FUNC_OPEN): Use it.
30816         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30817
30818 2008-10-08  Bruno Haible  <bruno@clisp.org>
30819
30820         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30821
30822 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30823
30824         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30825         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30826         listen).
30827
30828 2008-10-08  Eric Blake  <ebb9@byu.net>
30829
30830         GNUmakefile: add 'make version' target
30831         * top/GNUmakefile (_curr-ver): Split version update rules...
30832         (version): ...into a target.
30833
30834 2008-10-07  Bruno Haible  <bruno@clisp.org>
30835
30836         Use a more portable replacement expression for -0.0L.
30837         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30838         instead of -0.0L. Fix m4 quotation.
30839
30840         * tests/test-signbit.c: Include <float.h>.
30841         (minus_zero): New variable.
30842         (test_signbitl): Use minus_zero instead of -zero.
30843         * modules/signbit-tests (Depends-on): Add float.
30844
30845         * tests/test-ceill.c: Include <float.h>.
30846         (zero): Remove variable.
30847         (minus_zero): New variable.
30848         (main): Use minus_zero instead of -zero.
30849         * modules/ceill-tests (Depends-on): Add float.
30850
30851         * tests/test-floorl.c: Include <float.h>.
30852         (zero): Remove variable.
30853         (minus_zero): New variable.
30854         (main): Use minus_zero instead of -zero.
30855         * modules/floorl-tests (Depends-on): Add float.
30856
30857         * tests/test-roundl.c: Include <float.h>.
30858         (zero): Remove variable.
30859         (minus_zero): New variable.
30860         (main): Use minus_zero instead of -zero.
30861         * modules/roundl-tests (Depends-on): Add float.
30862
30863         * tests/test-truncl.c: Include <float.h>.
30864         (zero): Remove variable.
30865         (minus_zero): New variable.
30866         (main): Use minus_zero instead of -zero.
30867         * modules/truncl-tests (Depends-on): Add float.
30868
30869         * tests/test-frexpl.c (zero): Remove variable.
30870         (minus_zero): New variable.
30871         (main): Use minus_zero instead of -zero.
30872         * modules/frexpl-tests (Depends-on): Add float.
30873
30874         * tests/test-isnan.c (zerol): Remove variable.
30875         (minus_zerol): New variable.
30876         (test_long_double): Use minus_zerol instead of -zerol.
30877         * modules/isnan-tests (Depends-on): Add float.
30878
30879         * tests/test-isnanl.h (zero): Remove variable.
30880         (minus_zero): New variable.
30881         (main): Use minus_zero instead of -zero.
30882         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30883         * modules/isnanl-tests (Depends-on): Add float.
30884
30885         * tests/test-ldexpl.c (zero): Remove variable.
30886         (minus_zero): New variable.
30887         (main): Use minus_zero instead of -zero.
30888         * modules/ldexpl-tests (Depends-on): Add float.
30889
30890         * tests/test-snprintf-posix.h (zerol): Remove variable.
30891         (minus_zerol): New variable.
30892         (test_function): Use minus_zerol instead of -zerol.
30893         * modules/snprintf-posix-tests (Depends-on): Add float.
30894         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30895
30896         * tests/test-sprintf-posix.h (zerol): Remove variable.
30897         (minus_zerol): New variable.
30898         (test_function): Use minus_zerol instead of -zerol.
30899         * modules/sprintf-posix-tests (Depends-on): Add float.
30900         * modules/vsprintf-posix-tests (Depends-on): Add float.
30901
30902         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30903         (minus_zerol): New variable.
30904         (test_function): Use minus_zerol instead of -zerol.
30905         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30906
30907         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30908         (minus_zerol): New variable.
30909         (test_function): Use minus_zerol instead of -zerol.
30910         * modules/vasprintf-posix-tests (Depends-on): Add float.
30911
30912 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30913
30914         * MODULES.html.sh (Support for building documentation): Mention
30915         pmccabe2html.  Sort entries.
30916
30917         Add pmccabe2html module, from gnupdf.
30918         * build-aux/pmccabe.css: New file.
30919         * build-aux/pmccabe2html: New file.
30920         * m4/pmccabe2html.m4: New file.
30921         * modules/pmccabe2html: New file.
30922
30923 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30924
30925         flock: new module
30926         * MODULES.html.sh: Add to list of modules.
30927         * lib/flock.c: flock implementation for Windows and Unix systems
30928         which have fcntl.
30929         * doc/glibc-functions/flock.texi: Update documentation.
30930         * lib/sys_file.in.h: <sys/file.h> header file.
30931         * m4/flock.m4: M4 macros.
30932         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30933         * modules/flock: flock module.
30934         * modules/flock-tests: flock tests module.
30935         * modules/sys_file: sys/file.h module.
30936         * tests/test-flock.c: test suite for flock.
30937
30938 2008-10-06  Jim Meyering  <meyering@redhat.com>
30939
30940         bootstrap: check for LT_INIT more portably still ;-)
30941         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30942         Spotted by Bruno Haible.
30943
30944 2008-10-06  Eric Blake  <ebb9@byu.net>
30945
30946         test-signbit: avoid tripping Irix cc bug on -0.0L
30947         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30948         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30949         entire testsuite consistent and avoids an Irix 6.2 bug.
30950
30951 2008-10-05  Bruno Haible  <bruno@clisp.org>
30952             Jim Meyering  <jim@meyering.net>
30953
30954         Add an option for ignoring EPIPE during close_stdout.
30955         * lib/closeout.h: Include <stdbool.h>.
30956         (close_stdout_set_ignore_EPIPE): New declaration.
30957         * lib/closeout.c: Include <stdbool.h>.
30958         (ignore_EPIPE): New variable.
30959         (close_stdout_set_ignore_EPIPE): New function.
30960         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30961         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30962         failure.
30963         * modules/closeout (Depends-on): Add stdbool.
30964
30965 2008-10-05  Bruno Haible  <bruno@clisp.org>
30966
30967         * modules/accept: New file.
30968         * modules/bind: New file.
30969         * modules/connect: New file.
30970         * modules/getpeername: New file.
30971         * modules/getsockname: New file.
30972         * modules/getsockopt: New file.
30973         * modules/listen: New file.
30974         * modules/recv: New file.
30975         * modules/recvfrom: New file.
30976         * modules/send: New file.
30977         * modules/sendto: New file.
30978         * modules/setsockopt: New file.
30979         * modules/socket: New file.
30980         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30981         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30982         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30983         the particular module is requested. Add a link warning when the
30984         particular module is not requested.
30985         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30986         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30987         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30988         the particular module is requested.
30989         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30990         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30991         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30992         * modules/sys_socket (Depends-on): Add link-warning.
30993         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30994         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30995         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30996         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30997         GL_LINK_WARNING.
30998         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30999         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
31000         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
31001         * doc/posix-functions/getpeername.texi: Mention the new module
31002         'getpeername'.
31003         * doc/posix-functions/getsockname.texi: Mention the new module
31004         'getsockname'.
31005         * doc/posix-functions/getsockopt.texi: Mention the new module
31006         'getsockopt'.
31007         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
31008         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
31009         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
31010         * doc/posix-functions/send.texi: Mention the new module 'send'.
31011         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
31012         * doc/posix-functions/setsockopt.texi: Mention the new module
31013         'setsockopt'.
31014         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
31015         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
31016         listen, connect, accept.
31017         * modules/select-tests (Depends-on): Likewise.
31018
31019 2008-10-05  Bruno Haible  <bruno@clisp.org>
31020
31021         * lib/winsock.c (strerror): Remove unused #undef.
31022         (rpl_close): Remove unused local variable.
31023
31024         * modules/sys_socket (Depends-on); Add errno.
31025
31026 2008-10-05  Bruno Haible  <bruno@clisp.org>
31027
31028         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
31029         (select): Add a link warning when the 'select' module is not used.
31030         * modules/sys_select (Depends-on): Add link-warning.
31031         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
31032         Suggested by Paolo Bonzini.
31033
31034 2008-10-05  Jim Meyering  <meyering@redhat.com>
31035
31036         bootstrap: check for LT_INIT more portably
31037         * build-aux/bootstrap: Avoid using grep -E, since it's not
31038         portable enough.  Suggestion from Bruno Haible.
31039
31040 2008-10-05  Bruno Haible  <bruno@clisp.org>
31041
31042         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
31043         as being fixed by gnulib.
31044
31045 2008-10-05  Bruno Haible  <bruno@clisp.org>
31046
31047         * modules/select-tests: New file, mostly copied from
31048         modules/sys_select-tests.
31049         * tests/test-select.c: New file, mostly copied from
31050         tests/test-sys_select.c.
31051         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
31052         * modules/sys_select-tests (Depends-on): Remove all dependencies.
31053         (Makefile.am): Remove test_sys_select_LDADD.
31054
31055         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
31056         to an undefined symbol, for an error message.
31057         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
31058         (gl_SYS_SELECT_H_DEFAULTS): New macro.
31059         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
31060         winsock-select.c here.
31061         * modules/sys_select (Files): Remove lib/winsock-select.c.
31062         (Depends-on): Remove alloca.
31063         (Makefile.am): Substitute GNULIB_SELECT.
31064         * modules/select: New file.
31065         * doc/posix-functions/select.texi: Update.
31066
31067 2008-10-05  Bruno Haible  <bruno@clisp.org>
31068
31069         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
31070         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
31071         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
31072         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
31073         getdtablesize.
31074         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31075         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31076
31077 2008-10-05  Bruno Haible  <bruno@clisp.org>
31078
31079         * modules/getdtablesize-tests: New file.
31080         * tests/test-getdtablesize.c: New file.
31081
31082         New module 'getdtablesize'.
31083         * lib/unistd.in.h (getdtablesize): New declaration.
31084         * lib/getdtablesize.c: New file.
31085         * m4/getdtablesize.m4: New file.
31086         * modules/getdtablesize: New file.
31087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31088         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31089         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31090         HAVE_GETDTABLESIZE.
31091         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31092
31093 2008-10-05  Bruno Haible  <bruno@clisp.org>
31094
31095         * modules/sched (Makefile.am): Fix typo.
31096         Reported by Simon Josefsson.
31097
31098 2008-10-05  Jim Meyering  <meyering@redhat.com>
31099
31100         bootstrap: check for LT_INIT, too
31101         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31102         are deprecated.  Suggestion from Ralf Wildenhues.
31103
31104 2008-10-05  Bruno Haible  <bruno@clisp.org>
31105
31106         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31107         overriding them by ours.
31108         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31109
31110 2008-10-05  Jim Meyering  <meyering@redhat.com>
31111
31112         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31113         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31114         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31115
31116 2008-10-04  Bruno Haible  <bruno@clisp.org>
31117
31118         * modules/dup2 (License): Change to LGPLv2+.
31119         * modules/sleep (License): Likewise.
31120         * modules/perror (License): Likewise.
31121         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31122         Blake.
31123         * modules/signal (License): Likewise.
31124         * modules/sigprocmask (License): Likewise.
31125         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31126         Meyering.
31127
31128 2008-10-04  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
31131         Reported by Rainer Tammer <tammer@tammer.net>.
31132
31133 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
31134             Bruno Haible  <bruno@clisp.org>
31135
31136         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
31137         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
31138         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
31139
31140 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
31141
31142         filevercmp: new module
31143         * lib/filevercmp.h: New function filevercmp comparing version strings.
31144         * lib/filevercmp.c: Implementation of filevercmp function.
31145         * modules/filevercmp: Module metadata.
31146         * tests/test-filevercmp.c: Unit test for new module.
31147         * modules/filevercmp-tests: Unit test metadata.
31148         * MODULES.html.sh: Add filevercmp module.
31149
31150 2008-10-03  Bruno Haible  <bruno@clisp.org>
31151
31152         * lib/c-ctype.h: Add comment.
31153         Reported by Jim Meyering.
31154
31155 2008-10-02  Bruno Haible  <bruno@clisp.org>
31156
31157         * modules/posix_spawn-internal (Depends-on): Add 'open'.
31158
31159 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31160
31161         * build-aux/bootstrap: Allow renaming bootstrap, and change the
31162         name of bootstrap.conf accordingly.
31163
31164 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31165
31166         * build-aux/bootstrap: Install git-merge-changelog configuration
31167         items into .gitconfig if needed.
31168
31169 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
31170
31171         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
31172         git repository, and initialize/update it accordingly.
31173
31174 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
31175
31176         * modules/fsync-tests: New file.
31177         * tests/test-fsync.c: New file.
31178
31179         New module 'fsync'.
31180         * lib/fsync.c: New file.
31181         * m4/fsync.m4: New file.
31182         * modules/fsync: New file.
31183         * lib/unistd.in.h (fsync): New declaration.
31184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
31185         GNULIB_FSYNC and HAVE_FSYNC.
31186         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
31187         * MODULES.html.sh (posix_functions): Add fsync.
31188         * doc/posix-functions/fsync.texi: Mention the new module.
31189
31190 2008-10-02  Jim Meyering  <meyering@redhat.com>
31191
31192         fts.c: sync with similar code from coreutils' remove.c
31193         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
31194         Guard also with "#if defined __linux__", since for now at least,
31195         this code is Linux-kernel-specific.
31196
31197 2008-10-02  Jim Meyering  <meyering@redhat.com>
31198
31199         fts: bug fixes
31200         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
31201         Include <sys/vfs.h>, not <sys/statfs.h>.
31202
31203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
31204         Include <sys/vfs.h>, not <sys/statfs.h>.
31205
31206 2008-10-01  Bruno Haible  <bruno@clisp.org>
31207
31208         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
31209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
31210         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
31211         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
31212         * doc/posix-functions/posix_spawnp.texi: Likewise.
31213         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
31214         whether posix_spawn actually works.
31215         * m4/pipe.m4 (gl_PIPE): Likewise.
31216         * modules/execute (Files): Add m4/posix_spawn.m4.
31217         * modules/pipe (Files): Add m4/posix_spawn.m4.
31218         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
31219
31220 2008-10-01  Jim Meyering  <meyering@redhat.com>
31221
31222         remove trailing spaces
31223         * NEWS: Likewise.
31224         * lib/poll.c (poll): Likewise.
31225         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
31226         * lib/winsock.c (rpl_close): Likewise.
31227         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
31228         * modules/yield: Likewise.
31229         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
31230         * tests/test-sys_select.c (connect_to_socket): Likewise.
31231
31232         fts.c: adjust a new interface to be more generally useful
31233         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
31234         (fts_build): Adjust caller.
31235
31236 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31237
31238         * modules/cond-tests: New file.
31239         * tests/test-cond.c: New file.
31240
31241 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31242             Bruno Haible  <bruno@clisp.org>
31243
31244         * modules/cond (Dependencies): Add errno, time.
31245         * lib/glthread/cond.h: Include <time.h>.
31246         (gl_cond_define, gl_cond_define_initialized): Use the same definition
31247         across platforms.
31248
31249 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31250             Bruno Haible  <bruno@clisp.org>
31251
31252         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
31253
31254 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31255             Bruno Haible  <bruno@clisp.org>
31256
31257         * modules/tls-tests (Depends-on): Add thread, yield.
31258         (configure.ac): Remove all checks.
31259         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31260         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31261         gl_thread_self): Remove definitions. Include glthread/thread.h and
31262         glthread/yield.h instead.
31263         (test_tls): Pass an additional NULL argument to gl_thread_join.
31264
31265 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31266             Bruno Haible  <bruno@clisp.org>
31267
31268         * modules/lock-tests (Depends-on): Add thread, yield.
31269         (configure.ac): Remove all checks.
31270         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31271         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31272         gl_thread_self): Remove definitions. Include glthread/thread.h and
31273         glthread/yield.h instead.
31274         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31275         additional NULL argument to gl_thread_join.
31276
31277 2008-09-30  Bruno Haible  <bruno@clisp.org>
31278
31279         Fix the Win32 implementation of the 'thread' module.
31280         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31281         pointer type.
31282         (gl_thread_self): Invoke gl_thread_self_func.
31283         (gl_thread_self_func): New declaration.
31284         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31285         (do_init_self_key, init_self_key): New functions.
31286         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31287         Remove some fields.
31288         (running_threads, running_lock): Remove variables.
31289         (get_current_thread_handle): New function.
31290         (gl_thread_self_func, wrapper_func, glthread_create_func,
31291         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31292         simplified.
31293
31294 2008-09-30  Bruno Haible  <bruno@clisp.org>
31295
31296         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31297         files.
31298
31299 2008-09-30  Jim Meyering  <meyering@redhat.com>
31300
31301         fts.m4: correct the test for statfs.f_type
31302         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31303         when checking for statfs.f_type.
31304
31305 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31306
31307         tests: avoid some compiler warnings
31308         * tests/test-memchr.c (main): Pass NULL indirectly.
31309         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31310
31311 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
31312
31313         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31314         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31315         exactly specified dayshifts.
31316         (dayshift): New rule.
31317         (rel): Add dayshift.
31318         (relative_time_table) [tomorrow, yesterday, today, now]:
31319         Use tDAY_SHIFT in place of tDAY_UNIT.
31320         * tests/test-getdate.c: Add tests for now-disallowed countable
31321         dayshifts, e.g., "4 yesterday ago".
31322
31323 2008-09-29  Bruno Haible  <bruno@clisp.org>
31324
31325         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31326         * tests/test-posix_spawn1.in.sh: Renamed from
31327         tests/test-posix_spawn.in.sh.
31328         * tests/test-posix_spawn2.c: New file.
31329         * tests/test-posix_spawn2.in.sh: New file.
31330         * modules/posix_spawnp-tests (Files): Update.
31331         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31332
31333 2008-09-29  Bruno Haible  <bruno@clisp.org>
31334
31335         Propagate effects of putenv/setenv/unsetenv to child processes.
31336         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31337         * lib/pipe.c (create_pipe): Likewise.
31338
31339 2008-09-29  Bruno Haible  <bruno@clisp.org>
31340
31341         Enable use of shell scripts as executables in mingw.
31342         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31343         run the program as a shell script.
31344         * lib/pipe.c (create_pipe): Likewise.
31345         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31346         resulting array.
31347
31348 2008-09-29  Eric Blake  <ebb9@byu.net>
31349
31350         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31351
31352 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31353
31354         * doc/posix-functions/accept.texi: Update mingw problems.
31355         * doc/posix-functions/bind.texi: Update mingw problems.
31356         * doc/posix-functions/close.texi: Update mingw problems.
31357         * doc/posix-functions/connect.texi: Update mingw problems.
31358         * doc/posix-functions/getpeername.texi: Update mingw problems.
31359         * doc/posix-functions/getsockname.texi: Update mingw problems.
31360         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31361         * doc/posix-functions/ioctl.texi: Update mingw problems.
31362         * doc/posix-functions/listen.texi: Update mingw problems.
31363         * doc/posix-functions/recv.texi: Update mingw problems.
31364         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31365         * doc/posix-functions/select.texi: Update mingw problems.
31366         * doc/posix-functions/send.texi: Update mingw problems.
31367         * doc/posix-functions/sendto.texi: Update mingw problems.
31368         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31369         * doc/posix-functions/socket.texi: Update mingw problems.
31370
31371 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31372             Bruno Haible  <bruno@clisp.org>
31373
31374         * lib/sys_select.in.h: Include sys/time.h.
31375         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31376         * modules/sys_select: Depend on sys_time.
31377         * tests/test-sys_select.c: Test that sys/select.h defines struct
31378         timeval fully.
31379
31380 2008-09-29  Bruno Haible  <bruno@clisp.org>
31381
31382         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31383         * lib/sys_select.in.h: Likewise.
31384
31385 2008-09-29  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31388
31389 2008-09-29  Bruno Haible  <bruno@clisp.org>
31390
31391         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31392         Set LIBSOCKET instead of augmenting LIBS.
31393         * modules/sockets (Link): New section.
31394         * modules/sockets-tests (test_sockets_LDADD): New variable.
31395         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31396         * modules/poll-tests (test_poll_LDADD): New variable.
31397         * NEWS: Document the change.
31398
31399 2008-09-29  Bruno Haible  <bruno@clisp.org>
31400
31401         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31402         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31403         ARPA_INET_H directly.
31404         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31405
31406 2008-09-28  Bruno Haible  <bruno@clisp.org>
31407
31408         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31409         from gl_HEADER_SYS_SOCKET.
31410         (gl_HEADER_SYS_SOCKET): Invoke it.
31411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31412
31413 2008-09-28  Bruno Haible  <bruno@clisp.org>
31414
31415         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31416         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31417         Needed on OSF/1 4.0.
31418
31419 2008-09-28  Bruno Haible  <bruno@clisp.org>
31420
31421         Override open more carefully.
31422         * lib/open.c (orig_open): New function.
31423         (rpl_open): Use orig_open instead of open.
31424         * lib/fcntl.in.h: Add special invocation convention.
31425         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31426         (gl_FUNC_OPEN): Invoke it.
31427
31428         Override freopen more carefully.
31429         * lib/freopen.c (orig_freopen): New function.
31430         (rpl_freopen): Use orig_freopen instead of freopen.
31431         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31432         (gl_FUNC_FREOPEN): Invoke it.
31433
31434         Override fopen more carefully.
31435         * lib/fopen.c (orig_fopen): New function.
31436         (rpl_fopen): Use orig_fopen instead of fopen.
31437         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31438         (gl_FUNC_FOPEN): Invoke it.
31439         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31440
31441 2008-09-28  Bruno Haible  <bruno@clisp.org>
31442
31443         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31444         SIGPIPE.
31445
31446 2008-09-28  Bruno Haible  <bruno@clisp.org>
31447
31448         * tests/test-sigaction.c (handler, main): Disable the check whether
31449         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31450         glibc systems with LinuxThreads.
31451
31452 2008-09-28  Bruno Haible  <bruno@clisp.org>
31453
31454         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31455
31456         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31457         with AIX xlc.
31458         * lib/fcntl.in.h (open): Likewise.
31459         Reported by Rainer Tammer <tammer@tammer.net>.
31460
31461 2008-09-28  Bruno Haible  <bruno@clisp.org>
31462
31463         * modules/posix_spawnp-tests: New file.
31464         * tests/test-posix_spawn.c: New file.
31465         * tests/test-posix_spawn.in.sh: New file.
31466
31467         New module 'posix_spawnp'.
31468         * modules/posix_spawnp: New file.
31469         * lib/spawnp.c: New file, from GNU libc with modifications.
31470         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31471
31472         New module 'posix_spawn'.
31473         * modules/posix_spawn: New file.
31474         * lib/spawn.c: New file, from GNU libc with modifications.
31475         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31476
31477         New module 'posix_spawnattr_destroy'.
31478         * modules/posix_spawnattr_destroy: New file.
31479         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31480         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31481         module.
31482
31483         New module 'posix_spawnattr_setsigmask'.
31484         * modules/posix_spawnattr_setsigmask: New file.
31485         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31486         modifications.
31487         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31488         new module.
31489
31490         New module 'posix_spawnattr_getsigmask'.
31491         * modules/posix_spawnattr_getsigmask: New file.
31492         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31493         modifications.
31494         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31495         new module.
31496
31497         New module 'posix_spawnattr_setsigdefault'.
31498         * modules/posix_spawnattr_setsigdefault: New file.
31499         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31500         modifications.
31501         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31502         new module.
31503
31504         New module 'posix_spawnattr_getsigdefault'.
31505         * modules/posix_spawnattr_getsigdefault: New file.
31506         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31507         modifications.
31508         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31509         new module.
31510
31511         New module 'posix_spawnattr_setschedpolicy'.
31512         * modules/posix_spawnattr_setschedpolicy: New file.
31513         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31514         modifications.
31515         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31516         new module.
31517
31518         New module 'posix_spawnattr_getschedpolicy'.
31519         * modules/posix_spawnattr_getschedpolicy: New file.
31520         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31521         modifications.
31522         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31523         new module.
31524
31525         New module 'posix_spawnattr_setschedparam'.
31526         * modules/posix_spawnattr_setschedparam: New file.
31527         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31528         modifications.
31529         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31530         new module.
31531
31532         New module 'posix_spawnattr_getschedparam'.
31533         * modules/posix_spawnattr_getschedparam: New file.
31534         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31535         modifications.
31536         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31537         new module.
31538
31539         New module 'posix_spawnattr_setpgroup'.
31540         * modules/posix_spawnattr_setpgroup: New file.
31541         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31542         modifications.
31543         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31544         module.
31545
31546         New module 'posix_spawnattr_getpgroup'.
31547         * modules/posix_spawnattr_getpgroup: New file.
31548         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31549         modifications.
31550         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31551         module.
31552
31553         New module 'posix_spawnattr_setflags'.
31554         * modules/posix_spawnattr_setflags: New file.
31555         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31556         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31557         module.
31558
31559         New module 'posix_spawnattr_getflags'.
31560         * modules/posix_spawnattr_getflags: New file.
31561         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31562         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31563         module.
31564
31565         New module 'posix_spawnattr_init'.
31566         * modules/posix_spawnattr_init: New file.
31567         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31568         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31569         module.
31570
31571         New module 'posix_spawn_file_actions_destroy'.
31572         * modules/posix_spawn_file_actions_destroy: New file.
31573         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31574         modifications.
31575         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31576         the new module.
31577
31578         New module 'posix_spawn_file_actions_addopen'.
31579         * modules/posix_spawn_file_actions_addopen: New file.
31580         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31581         modifications.
31582         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31583         the new module.
31584
31585         New module 'posix_spawn_file_actions_adddup2'.
31586         * modules/posix_spawn_file_actions_adddup2: New file.
31587         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31588         modifications.
31589         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31590         the new module.
31591
31592         New module 'posix_spawn_file_actions_addclose'.
31593         * modules/posix_spawn_file_actions_addclose: New file.
31594         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31595         modifications.
31596         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31597         the new module.
31598
31599         New module 'posix_spawn_file_actions_init'.
31600         * modules/posix_spawn_file_actions_init: New file.
31601         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31602         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31603         new module.
31604
31605         New module 'posix_spawn-internal'.
31606         * modules/posix_spawn-internal: New file.
31607         * lib/spawn_int.h: New file, from GNU libc with modifications.
31608         * lib/spawni.c: New file, from GNU libc with modifications.
31609         * m4/posix_spawn.m4: New file.
31610
31611         New module 'spawn'.
31612         * modules/spawn: New file.
31613         * lib/spawn.in.h: New file, from GNU libc with modifications.
31614         * m4/spawn_h.m4: New file.
31615         * doc/posix-headers/spawn.texi: Mention the new module.
31616
31617 2008-09-28  Bruno Haible  <bruno@clisp.org>
31618
31619         * modules/sched-tests: New file.
31620         * tests/test-sched.c: New file.
31621
31622         New module 'sched'.
31623         * modules/sched: New file.
31624         * lib/sched.in.h: New file.
31625         * m4/sched_h.m4: New file.
31626         * doc/posix-headers/sched.texi: Mention the new module.
31627
31628 2008-09-27  Eric Blake  <ebb9@byu.net>
31629
31630         Fix previous patch, and tweak references to $0.
31631         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31632         (func_version, func_gnulib_dir): Don't call this program
31633         gnulib-tool.
31634         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31635         with using $0 in function.
31636         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31637         (func_fatal_error): Reuse the name the user invoked us with.
31638
31639 2008-09-27  Bruno Haible  <bruno@clisp.org>
31640
31641         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31642         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31643         (gl_ICONV_H): Not here.
31644         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31645         instead of assigning ICONV_H directly.
31646
31647         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31649         WCHAR_H directly.
31650
31651 2008-09-27  Bruno Haible  <bruno@clisp.org>
31652
31653         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31654         * modules/arpa_inet (Depends-on): Add link-warning.
31655         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31656         * modules/unistd (Makefile.am): Likewise.
31657
31658 2008-09-26  Bruno Haible  <bruno@clisp.org>
31659
31660         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31661         variables.
31662         (func_version): Essentially copied from gnulib-tool.
31663         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31664         func_readlink): Copied from gnulib-tool.
31665
31666 2008-09-26  Bruno Haible  <bruno@clisp.org>
31667
31668         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31669         invoking git-version-gen.
31670
31671 2008-09-26  Bruno Haible  <bruno@clisp.org>
31672
31673         * posix-modules: Update to directory names changed on 2008-01-19.
31674         Remove commas in output before splitting into words. No more need to
31675         avoid 'ftruncate' since 2007-02-19.
31676
31677 2008-09-26  Bruno Haible  <bruno@clisp.org>
31678
31679         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31680
31681 2008-09-26  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31684         * modules/fwriteerror (Depends-on): Add errno.
31685
31686 2008-09-26  Bruno Haible  <bruno@clisp.org>
31687
31688         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31689         * tests/test-vc-list-files-cvs.sh: Likewise.
31690
31691 2008-09-26  Bruno Haible  <bruno@clisp.org>
31692
31693         * doc/posix-headers/sys_resource.texi: Reorder items.
31694
31695 2008-09-26  Jim Meyering  <meyering@redhat.com>
31696
31697         fts: tweak inode comparison function
31698         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31699         inode numbers, as documented.
31700
31701         fts: sort dirent entries on inode number before traversing
31702         This avoids a quadratic, seek-related performance penalty when
31703         operating on a directory containing many entries (measurable at 10k;
31704         3.5 hours at 2 million entries with a cold cache) on certain types
31705         of file systems, including ext3 and ext4, but not tmpfs.
31706         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31707         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31708         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31709         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31710         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31711         (fts_build): Set the stat.st_ino member from D_INO.
31712         If it is likely to be useful, sort dirent entries on inode number.
31713
31714         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31715         and the struct statfs.f_type member.
31716         * modules/fts (Depends-on): Add d-ino.
31717
31718 2008-09-26  Bruno Haible  <bruno@clisp.org>
31719
31720         * modules/sigpipe-die (Depends-on): Add sigpipe.
31721
31722         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31723         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31724         and GNULIB_STDIO_H_SIGPIPE are set.
31725         * lib/stdio-write.c: New file.
31726         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31727         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31728         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31729         REPLACE_STDIO_WRITE_FUNCS.
31730         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31731         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31732         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31733         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31734         * modules/stdio (Files): Add lib/stdio-write.c.
31735         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31736         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31737         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31738         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31739         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31740         REPLACE_FPRINTF_POSIX.
31741         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31742         REPLACE_PRINTF_POSIX.
31743         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31744         REPLACE_VFPRINTF_POSIX.
31745         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31746         REPLACE_VPRINTF_POSIX.
31747         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31748         SIGPIPE issue.
31749         * doc/posix-functions/fputc.texi: Likewise.
31750         * doc/posix-functions/fputs.texi: Likewise.
31751         * doc/posix-functions/fwrite.texi: Likewise.
31752         * doc/posix-functions/printf.texi: Likewise.
31753         * doc/posix-functions/putc.texi: Likewise.
31754         * doc/posix-functions/putchar.texi: Likewise.
31755         * doc/posix-functions/puts.texi: Likewise.
31756         * doc/posix-functions/vfprintf.texi: Likewise.
31757         * doc/posix-functions/vprintf.texi: Likewise.
31758
31759         * modules/safe-write (Depends-on): Add write.
31760
31761         * modules/sigpipe-tests: New file.
31762         * tests/test-sigpipe.c: New file.
31763         * tests/test-sigpipe.sh: New file.
31764
31765         * modules/write: New file.
31766         * lib/unistd.in.h: Include <sys/types.h>.
31767         (write): New declaration.
31768         * lib/write.c: New file.
31769         * m4/write.m4: New file.
31770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31771         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31772         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31773         GNULIB_WRITE, REPLACE_WRITE.
31774         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31775         and the SIGPIPE issue.
31776
31777         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31778         (raise): New declaration.
31779         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31780         (ext_signal): New function.
31781         (rpl_raise): New function.
31782         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31783         GNULIB_SIGNAL_H_SIGPIPE.
31784         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31785         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31786
31787         * modules/sigpipe: New file.
31788         * m4/sigpipe.m4: New file.
31789
31790 2008-09-25  Derek Price  <derek@ximbiot.com>
31791             Bruno Haible  <bruno@clisp.org>
31792
31793         * gnulib-tool (func_import): Report all license incompatibilities, not
31794         just the first one.
31795
31796 2008-09-25  Bruno Haible  <bruno@clisp.org>
31797
31798         * gnulib-tool (func_import): When computing the edits, consider not
31799         only the Makefile.ams that exist but also those that will be generated.
31800
31801 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31802
31803         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31804         fixes gnulib-tool --test warning about duplicate dependency.
31805
31806 2008-09-25  Bruno Haible  <bruno@clisp.org>
31807
31808         * gnulib-tool: Don't ask the user to perform edits in the generated
31809         Makefile.ams.
31810         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31811         apply to the Makefile.am being generated.
31812         (func_emit_tests_Makefile_am): Execute edits that apply to the
31813         Makefile.am being generated.
31814         (func_import): Setup list of Makefile.am edits before emitting the
31815         Makefile.ams, not at the end.
31816         (func_create_testdir): Update.
31817         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31818
31819 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31820
31821         * gnulib-tool (func_import): Store the --tests-base option in the
31822         comment in gnulib-cache.m4.
31823
31824 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31825
31826         * NEWS: Document increased portability that sys_select now provides.
31827
31828         * lib/sys_select.in.h: Install select wrapper.
31829         * lib/sys_socket.in.h: Use more descriptive name when there is no
31830         select wrapper.
31831         * lib/winsock-select.c: New.
31832         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31833         Require gl_HEADER_SYS_SOCKET.
31834         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31835         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31836         * tests/test-sys_select.c: Add functional tests.
31837
31838 2008-09-24  Eric Blake  <ebb9@byu.net>
31839
31840         open, fopen: close fd leak in last patch
31841         * lib/open.c (rpl_open): Close fd before returning error.
31842         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31843         * doc/posix-functions/open.texi (open): Document that Irix also
31844         has the bug.
31845         * doc/posix-functions/fopen.texi (fopen): Likewise.
31846         Reported by Paolo Bonzini.
31847
31848 2008-09-24  Bruno Haible  <bruno@clisp.org>
31849
31850         Ensure that a filename ending in a slash cannot be used to access a
31851         non-directory.
31852         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31853         to check whether it's really a directory.
31854         * lib/fopen.c: Include fcntl.h, unistd.h.
31855         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31856         and fdopen().
31857         * modules/fopen (Depends-on): Add unistd.
31858         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31859         * tests/test-fopen.c (main): Likewise.
31860         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31861         * doc/posix-functions/fopen.texi: Likewise.
31862         Reported by Eric Blake.
31863
31864 2008-09-23  Eric Blake  <ebb9@byu.net>
31865
31866         c-stack: avoid compiler optimizations when provoking overflow
31867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31868         recursion harder to optimize, to ensure a stack overflow occurs.
31869         * tests/test-c-stack.c (recurse): Likewise.
31870         Borrowed from libsigsegv.
31871
31872         c-stack: work around Irix sigaltstack bug
31873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31874         whether sigaltstack uses wrong end of stack_t (copied in part from
31875         libsigsegv).
31876         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31877         Irix bug, without requiring an over-allocation.
31878         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31879         bug.
31880
31881         fopen: document mingw bug on directories
31882         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31883         not allowing a stream visiting a directory, even though reading
31884         from such a stream is not portable.
31885
31886 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31887
31888         * lib/poll.c: Rewrite.
31889         * modules/poll: Depend on alloca.
31890
31891 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31892
31893         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31894         instead define prototypes for a full set of wrappers.  Ensure
31895         that Cygwin does not use the compatibility code, which is only
31896         for MinGW.
31897         * lib/winsock.c: New.
31898         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31899         * modules/sys_socket: Add lib/winsock.c.
31900
31901         * modules/poll-tests: Add errno and perror.
31902         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31903
31904 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31905
31906         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31907
31908 2008-09-23  Bruno Haible  <bruno@clisp.org>
31909
31910         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31911         * doc/glibc-functions/*: Likewise.
31912
31913 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31914
31915         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31916         success.
31917
31918 2008-09-22  Eric Blake  <ebb9@byu.net>
31919             Bruno Haible  <bruno@clisp.org>
31920
31921         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31922         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31923         supply %A but mishandle pseudo-NaN.
31924         Reported by Simon Josefsson.
31925
31926 2008-09-21  Bruno Haible  <bruno@clisp.org>
31927
31928         * tests/test-lock.c (main): Tweak skip message.
31929         * tests/test-tls.c (main): Likewise.
31930
31931 2008-09-21  Bruno Haible  <bruno@clisp.org>
31932
31933         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31934         whether 'struct sigaction' has sa_sigaction here...
31935         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31936         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31937
31938 2008-09-21  Bruno Haible  <bruno@clisp.org>
31939
31940         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31941         section.
31942         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31943         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31944         the new section.
31945         (Support for obsolete systems lacking POSIX:2001): New section.
31946         (String handling <string.h>): Move strdup to the new section.
31947         Suggested by Simon Josefsson and Paolo Bonzini.
31948
31949 2008-09-21  Bruno Haible  <bruno@clisp.org>
31950
31951         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31952         exponents in %e and %g results on 'long double'. Needed for mingw's
31953         improved *printf functions.
31954         * tests/test-vasprintf-posix.c (test_function): Likewise.
31955         * tests/test-snprintf-posix.h (test_function): Likewise.
31956         * tests/test-sprintf-posix.h (test_function): Likewise.
31957         Reported by Eric Blake.
31958
31959 2008-09-21  Bruno Haible  <bruno@clisp.org>
31960
31961         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31962         * tests/test-sprintf-posix.h (test_function): Likewise.
31963
31964 2008-09-21  Bruno Haible  <bruno@clisp.org>
31965
31966         * modules/getpass (Depends-on): Add strdup-posix.
31967
31968         New module 'strdup-posix'.
31969         * modules/strdup-posix: New file.
31970         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31971         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31973         REPLACE_STRDUP.
31974         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31975         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31977         strdup-posix.
31978
31979         * modules/strdup (Depends-on): Remove malloc-posix.
31980
31981 2008-09-20  Bruno Haible  <bruno@clisp.org>
31982
31983         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31984         Wildenhues.
31985
31986 2008-09-20  Bruno Haible  <bruno@clisp.org>
31987
31988         Ensure that wint_t gets defined on IRIX 5.3.
31989         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31990         * lib/wctype.in.h (wint_t): Likewise.
31991         (__wctype_wint_t): Remove type.
31992         (isw*): Use wint_t instead of __wctype_wint_t.
31993         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31994         * modules/wchar (Files): Add m4/wint_t.m4.
31995         (Makefile.am): Substitute HAVE_WINT_T.
31996         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31997         * tests/test-wctype.c: Check that wint_t is defined.
31998         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31999         * doc/posix-headers/wctype.texi: Likewise.
32000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32001
32002 2008-09-18  Bruno Haible  <bruno@clisp.org>
32003
32004         * gnulib-tool (func_exit): Update comment.
32005
32006 2008-09-18  Simon Josefsson  <simon@josefsson.org>
32007
32008         * modules/getaddrinfo (Depends-on): Remove strdup, this module
32009         assumes strdup exists and does not depend on strdup to return
32010         ENOMEM on out of memory conditions.
32011
32012 2008-09-18  Bruno Haible  <bruno@clisp.org>
32013
32014         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
32015         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
32016         digits for the exponent.
32017
32018 2008-09-18  Jim Meyering  <meyering@redhat.com>
32019             Bruno Haible  <bruno@clisp.org>
32020
32021         * lib/vasnprintf.c (decimal_point_char): Define also if
32022         NEED_PRINTF_INFINITE_LONG_DOUBLE.
32023
32024 2008-09-16  Bruno Haible  <bruno@clisp.org>
32025         and Eric Blake  <ebb9@byu.net>
32026
32027         vasnprintf: support Irix 5.3
32028         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
32029         that mishandle long double infinity.
32030         Reported by Tom G. Christensen.
32031
32032 2008-09-16  Bruno Haible  <bruno@clisp.org>
32033
32034         * doc/glibc-functions/scandir.texi: Mention the function is missing on
32035         Solaris 9.
32036         * doc/glibc-functions/alphasort.texi: Likewise.
32037         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
32038
32039 2008-09-16  Jim Meyering  <meyering@redhat.com>
32040
32041         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
32042         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
32043         a umask modification leak out of a subshell.  Otherwise, the
32044         opensolaris /bin/sh would be accepted and thus cause unwarranted
32045         failures in the coreutils test suite.
32046
32047 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
32048
32049         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
32050         to succeed.
32051
32052 2008-09-16  Jim Meyering  <meyering@redhat.com>
32053
32054         avoid spurious test failure when library is built without ACL support
32055         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
32056         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
32057         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
32058         * tests/test-copy-acl.sh: Likewise.
32059
32060 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32061
32062         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
32063         based on character occurrence counts.
32064
32065 2008-09-15  Eric Blake  <ebb9@byu.net>
32066
32067         tests: avoid some compiler warnings
32068         * tests/test-memchr.c (main): Pass NULL indirectly.
32069         * tests/test-closein.c (main): Avoid unused variable.
32070
32071 2008-09-15  Bruno Haible  <bruno@clisp.org>
32072
32073         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
32074         are missing on OpenBSD 4.0 individually.
32075         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32076
32077 2008-09-15  Bruno Haible  <bruno@clisp.org>
32078
32079         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32080         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32081         * doc/posix-functions/perror.texi: Likewise.
32082         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32083         is missing.
32084         Reported by Eric Blake.
32085
32086         * lib/errno.in.h: Use replacement values >= 2000.
32087         Reported by Eric Blake.
32088
32089 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32090
32091         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32092         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32093         limit.
32094         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32095         compareseq was aborted.
32096
32097 2008-09-14  Bruno Haible  <bruno@clisp.org>
32098
32099         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32100         yvec_edit_count.
32101         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32102         (fstrcmp_bounded): Simplify result computation accordingly.
32103
32104 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32105
32106         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32107         (fstrcmp): Define in terms of fstrcmp_bounded.
32108         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32109         lower_bound argument.
32110         Return quickly if the result is certainly < lower_bound.
32111         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32112
32113 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32114
32115         * lib/diffseq.h (EARLY_ABORT): New macro.
32116         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32117         evaluates to true.
32118
32119 2008-09-14  Bruno Haible  <bruno@clisp.org>
32120
32121         * modules/perror-tests: New file.
32122         * tests/test-perror.sh: New file.
32123         * tests/test-perror.c: New file.
32124
32125         New module 'perror'.
32126         * lib/stdio.in.h (perror): New declaration.
32127         * lib/perror.c: New file.
32128         * m4/perror.m4: New file.
32129         * modules/perror: New file.
32130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
32131         * doc/posix-functions/perror.texi: Mention the perror module.
32132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
32133         REPLACE_PERROR.
32134         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
32135         REPLACE_PERROR.
32136
32137 2008-09-14  Bruno Haible  <bruno@clisp.org>
32138
32139         * modules/stdio (Makefile.am): Reorder to match the order in
32140         lib/stdio.in.h.
32141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32142
32143 2008-09-13  Bruno Haible  <bruno@clisp.org>
32144
32145         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
32146
32147 2008-09-13  Bruno Haible  <bruno@clisp.org>
32148
32149         Extend strerror to cover the added errno values.
32150         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
32151         (rpl_strerror): Provide error messages for the added errno values and
32152         for the WSA* values.
32153         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
32154         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
32155         strerror.
32156         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
32157         * modules/strerror (Depends-on): Add errno.
32158         * doc/posix-functions/strerror.texi: Document the change.
32159         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
32160         and EOVERFLOW.
32161
32162 2008-09-13  Bruno Haible  <bruno@clisp.org>
32163
32164         * modules/EOVERFLOW: Remove file.
32165         * m4/eoverflow.m4: Remove file.
32166         * modules/EOVERFLOW-tests: Remove file.
32167         * tests/test-EOVERFLOW.c: Remove file.
32168         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
32169         * modules/ftell (Depends-on): Likewise.
32170         * modules/getdelim (Depends-on): Likewise.
32171         * modules/getugroups (Depends-on): Likewise.
32172         * modules/poll (Depends-on): Likewise.
32173         * modules/snprintf (Depends-on): Likewise.
32174         * modules/sprintf-posix (Depends-on): Likewise.
32175         * modules/vasnprintf (Depends-on): Likewise.
32176         * modules/vasprintf (Depends-on): Likewise.
32177         * modules/vfprintf-posix (Depends-on): Likewise.
32178         * modules/vsnprintf (Depends-on): Likewise.
32179         * modules/vsprintf-posix (Depends-on): Likewise.
32180         * modules/xvasprintf (Depends-on): Likewise.
32181         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32182         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
32183         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
32184         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
32185         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32186         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
32187         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
32188         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
32189         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32190         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
32191         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
32192         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
32193         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32194         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
32195         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
32196         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
32197         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32198         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
32199         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
32200         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
32201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32202         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
32203         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
32204         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
32205         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
32206         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32207         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
32208         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
32209         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
32210         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
32211         * MODULES.html.sh: Remove EOVERFLOW.
32212         * NEWS: Mention the change.
32213
32214 2008-09-13  Bruno Haible  <bruno@clisp.org>
32215
32216         * modules/errno-tests: New file.
32217         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
32218
32219         * lib/errno.in.h: New file.
32220         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
32221         * modules/errno: New file.
32222         * doc/posix-headers/errno.texi: Update documentation.
32223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
32224
32225 2008-09-13  Bruno Haible  <bruno@clisp.org>
32226
32227         * tests/test-poll.c: Use #if for native Windows, rather than testing
32228         __MSVCRT__.
32229
32230 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32231             Bruno Haible  <bruno@clisp.org>
32232
32233         * lib/glob.c: Don't include <pwd.h> on native Windows.
32234         (WINDOWS32): New macro.
32235         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
32236
32237 2008-09-13  Bruno Haible  <bruno@clisp.org>
32238
32239         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
32240         (ETIMEDOUT): Remove macro.
32241         (glthread_cond_timedwait_multithreaded): New declaration.
32242         (glthread_cond_timedwait): Use it.
32243         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
32244         (glthread_cond_timedwait_multithreaded): New function.
32245
32246 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32247
32248         * modules/poll-tests: Do not check for io.h.
32249         * tests/test-poll.c: Check for __MSVCRT__ instead.
32250
32251 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32252
32253         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32254         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32255         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32256
32257 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32258
32259         * modules/poll-tests: New.
32260         * tests/test-poll.c: New.
32261
32262 2008-09-12  Eric Blake  <ebb9@byu.net>
32263
32264         frexp: test for NetBSD failure on -0.0
32265         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32266         not all, bugs from NetBSD 3.0 have been fixed.
32267         * doc/posix-functions/frexp.texi (frexp): Document bug.
32268         Reported by Thomas Klausner.
32269
32270         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32271         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32272         literal -0.0.
32273         Reported by Jonathan C. Patschke <jp@centtech.com>.
32274
32275 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32276
32277         * lib/glthread/cond.h: Use dummy implementation also if
32278         USE_WIN32_THREADS.
32279
32280 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32281
32282         * modules/fnmatch-posix (License): Change to LGPLv2+.
32283         * modules/fnmatch-gnu (License): Likewise.
32284
32285 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32286
32287         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32288
32289 2008-09-11  Jim Meyering  <meyering@redhat.com>
32290
32291         * users.txt: Add gtk-vnc.
32292
32293 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32294
32295         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32296         rotate amounts.
32297
32298         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32299         required for 16-bit and 8-bit rotates.
32300         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32301         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32302         UINT8_MAX instead of hard-coded constants.
32303         Suggested by Paul Eggert.
32304
32305 2008-09-07  Bruno Haible  <bruno@clisp.org>
32306
32307         * tests/test-striconveh.c (main): Check behaviour when converting from
32308         UTF-7.
32309
32310         Make striconveh work better with stateful encodings.
32311         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32312         that iconv does not increment the inptr when returning -1/EINVAL.
32313
32314 2008-09-07  Bruno Haible  <bruno@clisp.org>
32315
32316         * build-aux/config.rpath: Update according to libtool-2.2.6.
32317         * build-aux/config.libpath: Likewise.
32318
32319 2008-09-06  Bruno Haible  <bruno@clisp.org>
32320
32321         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32322         * lib/freadptr.c (freadptr): Likewise.
32323         * lib/freadseek.c (freadptrinc): Likewise.
32324         Reported by Simon Josefsson.
32325
32326 2008-09-06  Bruno Haible  <bruno@clisp.org>
32327
32328         * modules/freadptr (License): Change to LGPLv2+.
32329         * modules/freadseek (License): Likewise.
32330         Suggested by Eric Blake.
32331
32332         * modules/memchr2 (License): Change to LGPLv2+.
32333         Approved by Eric Blake.
32334
32335 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32336             Bruno Haible  <bruno@clisp.org>
32337
32338         Make gnulib-tool work with native 'sed' on AIX.
32339         * gnulib-tool (sed_noop): New variable.
32340         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32341         func_add_or_update, func_create_testdir): Use it to initialize sed
32342         script variables.
32343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32344
32345 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32346             Bruno Haible  <bruno@clisp.org>
32347
32348         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32349         also works after #include directives.
32350
32351 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
32352
32353         getdate.y: reject an out-of-range timezone value
32354         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32355         the range [-24...+24].  When specified with only one or two digits,
32356         * tests/test-getdate.c: Tests for the fix.
32357         * doc/getdate.texi: Document this change.
32358
32359 2008-09-03  Bruno Haible  <bruno@clisp.org>
32360
32361         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32362
32363 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32364
32365         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32366         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32367         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32368         Blake <ebb9@byu.net>.
32369
32370         * tests/test-bitrotate.c: Add more test vectors.
32371
32372 2008-09-02  Eric Blake  <ebb9@byu.net>
32373
32374         vasnprintf-posix: handle large precision via %.*d
32375         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32376         when handling it ourselves.
32377         * tests/test-vasnprintf-posix.c (test_function): Add test.
32378         * tests/test-snprintf-posix.h (test_function): Likewise.
32379         * tests/test-sprintf-posix.h (test_function): Likewise.
32380         * tests/test-vasprintf-posix.c (test_function): Likewise.
32381         Reported by Alain Guibert.
32382
32383 2008-09-01  Eric Blake  <ebb9@byu.net>
32384
32385         c-stack: make configure-time check more robust
32386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32387         successful sigaction call.
32388         Reported by Tom G. Christensen.
32389
32390 2008-09-01  Bruno Haible  <bruno@clisp.org>
32391
32392         New module 'findprog-lgpl'.
32393         * modules/findprog-lgpl: New file.
32394         * lib/findprog-lgpl.c: New file.
32395         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32396         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32397         to decide whether to use strdup or xstrdup, concatenated_filename or
32398         xconcatenated_filename.
32399
32400 2008-09-01  Bruno Haible  <bruno@clisp.org>
32401
32402         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32403         'xconcat-filename' (GPL).
32404         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32405         (License): Change to LGPLv2+.
32406         * modules/xconcat-filename: New file.
32407         * lib/concat-filename.h (concatenated_filename): Change specification.
32408         (xconcatenated_filename): New declaration.
32409         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32410         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32411         memory situations.
32412         * lib/xconcat-filename.c: New file.
32413         * NEWS: Mention the change.
32414         * lib/findprog.c: Include concat-filename.h, not filename.h.
32415         (find_in_path): Use xconcatenated_filename instead of
32416         concatenated_filename.
32417         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32418         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32419         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32420         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32421         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32422         instead of concatenated_filename.
32423         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32424         (execute_java_class): Use xconcatenated_filename instead of
32425         concatenated_filename.
32426         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32427         * modules/javacomp (Depends-on): Likewise.
32428         * modules/javaexec (Depends-on): Likewise.
32429
32430 2008-09-01  Bruno Haible  <bruno@clisp.org>
32431
32432         Split module 'filename' into 'filename' and 'concat-filename'.
32433         * modules/filename: Keep only lib/filename.h.
32434         (License): Change to LGPLv2+.
32435         * modules/concat-filename: New file, extracted from modules/filename.
32436         * lib/filename.h (concatenated_filename): Remove declaration.
32437         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32438         * lib/concat-filename.c: Include concat-filename.h.
32439         * NEWS: Mention the change.
32440
32441 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32442
32443         * lib/bitrotate.h (rotl8, rotr8): Add.
32444
32445         * modules/bitrotate (configure.ac): Need
32446         AC_REQUIRE([AC_C_INLINE]).
32447         (Description): Mention stdint.h.  Reported by Bruno Haible
32448         <bruno@clisp.org>.
32449
32450         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32451         Paolo Bonzini <bonzini@gnu.org>.
32452
32453 2008-08-31  Bruno Haible  <bruno@clisp.org>
32454
32455         Assume Solaris specific bi-arch conventions on Solaris systems.
32456         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32457         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32459         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32460         like acl_libdirstem.
32461         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32462         acl_libdirstem.
32463         * NEWS: Mention the change.
32464         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32465
32466 2008-08-31  Jim Meyering  <meyering@redhat.com>
32467
32468         * lib/strftime.h: Add comments describing the two added arguments.
32469
32470         remove duplicate #include directives
32471         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32472         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32473
32474 2008-08-31  Bruno Haible  <bruno@clisp.org>
32475
32476         New module 'sigpipe-die'.
32477         * modules/sigpipe-die: New file.
32478         * lib/sigpipe-die.h: New file.
32479         * lib/sigpipe-die.c: New file.
32480         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32481
32482 2008-08-31  Bruno Haible  <bruno@clisp.org>
32483
32484         Don't override previously installed signal handlers.
32485         * lib/fatal-signal.c (saved_sigactions): New variable.
32486         (uninstall_handlers): Reset the signal to the saved handler, not
32487         to SIG_DFL (except when ignored).
32488         (install_handlers): Save the previous handlers.
32489
32490 2008-08-30  Bruno Haible  <bruno@clisp.org>
32491
32492         * gnulib-tool (func_reset_sigpipe): New function.
32493         (func_get_automake_snippet, func_modules_transitive_closure,
32494         func_import): Invoke it before a join command that reads from stdin,
32495         to avoid "echo: write error: Broken pipe" error messages on stderr.
32496         Reported by Sam Steingold <sds@gnu.org>.
32497
32498 2008-08-30  Bruno Haible  <bruno@clisp.org>
32499
32500         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32501         Code copied from m4/open.m4.
32502         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32503         access and the filename ends in a slash. Code copied from lib/open.c.
32504         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32505         * tests/test-fopen.c (main): Check against bug with trailing slash.
32506
32507 2008-08-29  Bruno Haible  <bruno@clisp.org>
32508
32509         Avoid some "gcc -pedantic" warnings.
32510         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32511         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32512         * lib/dirent.in.h: Likewise.
32513         * lib/fcntl.in.h: Likewise.
32514         * lib/float.in.h: Likewise.
32515         * lib/iconv.in.h: Likewise.
32516         * lib/inttypes.in.h: Likewise.
32517         * lib/locale.in.h: Likewise.
32518         * lib/math.in.h: Likewise.
32519         * lib/netinet_in.in.h: Likewise.
32520         * lib/search.in.h: Likewise.
32521         * lib/signal.in.h: Likewise.
32522         * lib/stdarg.in.h: Likewise.
32523         * lib/stdint.in.h: Likewise.
32524         * lib/stdio.in.h: Likewise.
32525         * lib/stdlib.in.h: Likewise.
32526         * lib/string.in.h: Likewise.
32527         * lib/strings.in.h: Likewise.
32528         * lib/sys_select.in.h: Likewise.
32529         * lib/sys_socket.in.h: Likewise.
32530         * lib/sys_stat.in.h: Likewise.
32531         * lib/sys_time.in.h: Likewise.
32532         * lib/sysexits.in.h: Likewise.
32533         * lib/time.in.h: Likewise.
32534         * lib/unistd.in.h: Likewise.
32535         * lib/wchar.in.h: Likewise.
32536         * lib/wctype.in.h: Likewise.
32537         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32538         * modules/fchdir (Makefile.am): Likewise.
32539         * modules/fcntl (Makefile.am): Likewise.
32540         * modules/float (Makefile.am): Likewise.
32541         * modules/iconv_open (Makefile.am): Likewise.
32542         * modules/inttypes (Makefile.am): Likewise.
32543         * modules/locale (Makefile.am): Likewise.
32544         * modules/math (Makefile.am): Likewise.
32545         * modules/netinet_in (Makefile.am): Likewise.
32546         * modules/search (Makefile.am): Likewise.
32547         * modules/signal (Makefile.am): Likewise.
32548         * modules/stdarg (Makefile.am): Likewise.
32549         * modules/stdint (Makefile.am): Likewise.
32550         * modules/stdio (Makefile.am): Likewise.
32551         * modules/stdlib (Makefile.am): Likewise.
32552         * modules/string (Makefile.am): Likewise.
32553         * modules/strings (Makefile.am): Likewise.
32554         * modules/sys_select (Makefile.am): Likewise.
32555         * modules/sys_socket (Makefile.am): Likewise.
32556         * modules/sys_stat (Makefile.am): Likewise.
32557         * modules/sys_time (Makefile.am): Likewise.
32558         * modules/sysexits (Makefile.am): Likewise.
32559         * modules/time (Makefile.am): Likewise.
32560         * modules/unistd (Makefile.am): Likewise.
32561         * modules/wchar (Makefile.am): Likewise.
32562         * modules/wctype (Makefile.am): Likewise.
32563         Reported by Reuben Thomas <rrt@sc3d.org>.
32564
32565 2008-08-29  Bruno Haible  <bruno@clisp.org>
32566
32567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32568         any more.
32569
32570 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32571
32572         * MODULES.html.sh (Misc): Add bitrotate.
32573
32574         * modules/bitrotate: New file.
32575
32576         * lib/bitrotate.h: New file.
32577
32578         * modules/bitrotate-tests: New file.
32579
32580         * tests/test-bitrotate.c: New file.
32581
32582         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32583         on the bitrotate module.
32584
32585         * lib/arctwo.c: Use new bitrotate module.
32586
32587 2008-08-29  Jim Meyering  <meyering@redhat.com>
32588
32589         bootstrap: merge changes from coreutils
32590         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32591         of copied files.  Remove a kludge, now that this is fixed.
32592         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32593         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32594         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32595
32596 2008-08-29  Bruno Haible  <bruno@clisp.org>
32597
32598         * MODULES.html.sh: Remove --cvs-urls option.
32599
32600 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32601
32602         maint.mk: adjust to file name change
32603         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32604
32605 2008-08-28  Jim Meyering  <meyering@redhat.com>
32606
32607         * modules/getndelim2 (License): Relicense to LGPLv2+.
32608         Approved by Richard Stallman for the version of 1995, and by
32609         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32610
32611 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32612
32613         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32614         dummy if one is not available.  Do not touch them if
32615         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32616         (getc_maybe_unlocked): New.
32617         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32618
32619 2008-08-26  Eric Blake  <ebb9@byu.net>
32620
32621         doc/INSTALL: resync from autoconf
32622         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32623         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32624         moving...
32625         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32626         * INSTALL: Regenerate.
32627         * INSTALL.ISO: New file.
32628         * INSTALL.UTF-8: Likewise.
32629
32630 2008-08-26  Jim Meyering  <meyering@redhat.com>
32631
32632         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32633         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32634         these definitions conditional, so that they may be overridden, too.
32635
32636 2008-08-26  Bruno Haible  <bruno@clisp.org>
32637
32638         Generate INSTALL file variants with prettier quotes.
32639         * doc/Makefile (INSTALL_PRELUDE): New macro.
32640         (INSTALL): Use it.
32641         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32642
32643 2008-08-26  Bruno Haible  <bruno@clisp.org>
32644
32645         Run makeinfo in an English locale.
32646         * doc/Makefile (MAKEINFO): New variable.
32647
32648 2008-08-26  Bruno Haible  <bruno@clisp.org>
32649
32650         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32651         Suggested by Eric Blake.
32652
32653 2008-08-25  Bruno Haible  <bruno@clisp.org>
32654
32655         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32656
32657 2008-08-25  Eric Blake  <ebb9@byu.net>
32658
32659         c-stack: test that stack overflow can be caught
32660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32661         that platform allows handling stack overflow; at least OS/2 EMX
32662         has sigaltstack, but crashes before transferring control to
32663         handler on stack overflow.
32664         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32665         check for HAVE_STACK_OVERFLOW_HANDLING.
32666         Reported by Elbert Pol.
32667
32668 2008-08-25  Bruno Haible  <bruno@clisp.org>
32669
32670         * doc/posix-functions/strftime.texi: Fix description of strftime
32671         module.
32672
32673 2008-08-24  Bruno Haible  <bruno@clisp.org>
32674
32675         * tests/uniwidth/test-uc_width2.c: New file.
32676         * tests/uniwidth/test-uc_width2.sh: New file.
32677         * modules/uniwidth/width-tests (Files): Add the new files.
32678         (TESTS): Add uniwidth/test-uc_width2.sh.
32679         (TESTS_ENVIRONMENT): New variable.
32680         (check_PROGRAMS): Add test-uc_width2.
32681         (test_uc_width2_SOURCES): New variable.
32682
32683         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32684         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32685         not 0x00AB.
32686         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32687
32688 2008-08-22  Eric Blake  <ebb9@byu.net>
32689
32690         test-lock, test-tls: mention why a test is skipped
32691         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32692         skipped.
32693         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32694
32695         count-one-bits: relax license
32696         * modules/count-one-bits (License): Relicense to LGPLv2+.
32697         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32698
32699 2008-08-22  Andreas Schwab  <schwab@suse.de>
32700
32701         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32702         Remove spurious space in assignment.
32703
32704 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32705
32706         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32707         Paul Eggert <eggert@CS.UCLA.EDU>.
32708
32709 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32710
32711         * modules/gettext: Add m4/threadlib.m4.
32712
32713 2008-08-19  Eric Blake  <ebb9@byu.net>
32714
32715         test-c-stack: fix compilation failure on FreeBSD 5.0
32716         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32717         headers before <sys/resource.h>.
32718         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32719         the bug.
32720         Reported by Nelson H. F. Beebe.
32721
32722         strverscmp: migrate from "strverscmp.h" to <string.h>
32723         * modules/string (Makefile.am): Add new hooks.
32724         * modules/strverscmp (Files): Remove strverscmp.h.
32725         (Depends-on): Add string.
32726         (configure.ac): Add indicator.
32727         (Include): Mention new header.
32728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32729         defaults.
32730         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32731         results.
32732         * lib/strverscmp.h: Delete.
32733         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32734         * tests/test-strverscmp.c (includes): Adjust client.
32735         * lib/check-version.c (includes): Likewise.
32736         * NEWS: Document the change.
32737
32738         strverscmp: add unit test
32739         * modules/strverscmp-tests: New file.
32740         * tests/test-strverscmp.c: Likewise.
32741
32742 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32743
32744         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32745         regarding Windows crypto stuff, from Mono.
32746
32747 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32748
32749         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32750         if present, for intel RND.  Return error on failures.
32751
32752 2008-08-18  Ben Pfaff  <blp@gnu.org>
32753
32754         gitlog-to-changelog: give better diagnostic for failed pipe-open
32755         * build-aux/gitlog-to-changelog: Improve error message: suggest
32756         that the version of Git may be too old.
32757
32758 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32759
32760         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32761         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32762
32763 2008-08-18  Bruno Haible  <bruno@clisp.org>
32764
32765         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32766         pthread_in_use().
32767
32768 2008-08-18  Bruno Haible  <bruno@clisp.org>
32769
32770         * lib/glthread/threadlib.c: Include <pthread.h>.
32771
32772 2008-08-18  Bruno Haible  <bruno@clisp.org>
32773
32774         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32775         glthread_recursive_lock_* macros.
32776         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32777         Fix syntax error.
32778
32779 2008-08-18  Bruno Haible  <bruno@clisp.org>
32780
32781         * lib/glthread/thread.c: Avoid forcing a context switch right after
32782         thread creation.
32783
32784 2008-08-17  Bruno Haible  <bruno@clisp.org>
32785
32786         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32787         * lib/glthread/thread.h: Provide Win32 specific implementation.
32788         * modules/thread (Files): Add lib/glthread/thread.c.
32789         (Depends-on): Add lock.
32790         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32791
32792 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32793
32794         New module 'yield'.
32795         * modules/yield: New file.
32796         * lib/glthread/yield.h: New file.
32797         * m4/yield.m4: New file.
32798         * MODULES.html.sh (Multithreading): Add yield.
32799
32800 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32801
32802         New module 'thread'.
32803         * modules/thread: New file.
32804         * lib/glthread/thread.h: New file.
32805         * m4/thread.m4: New file.
32806         * MODULES.html.sh (Multithreading): Add thread.
32807
32808 2008-08-17  Bruno Haible  <bruno@clisp.org>
32809
32810         * lib/glthread/lock.h: Include <stdlib.h> always.
32811         * lib/glthread/tls.h: Likewise.
32812         * lib/glthread/cond.h: Likewise.
32813
32814 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32815
32816         New module 'cond'.
32817         * modules/cond: New file.
32818         * lib/glthread/cond.h: New file.
32819         * lib/glthread/cond.c: New file.
32820         * m4/cond.m4: New file.
32821         * MODULES.html.sh (Multithreading): Add cond.
32822
32823 2008-08-16  Eric Blake  <ebb9@byu.net>
32824
32825         c-stack: fix regression on Irix 5.3 from 2008-06-21
32826         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32827         sa_sigaction...
32828         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32829         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32830         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32831         * modules/signal (Makefile.am): Use the value.
32832         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32833         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32834         * doc/posix-headers/signal.texi (signal.h): Document this
32835         portability issue.
32836         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32837         Reported by Tom G. Christensen.
32838
32839 2008-08-17  Bruno Haible  <bruno@clisp.org>
32840
32841         New module 'threadlib'.
32842         * modules/threadlib: New file.
32843         * lib/glthread/threadlib.c: New file, extracted from
32844         lib/glthread/lock.c.
32845         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32846         functions.
32847         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32848         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32849         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32850         macros.
32851         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32852         (gl_DISABLE_THREADS): Remove macro.
32853         * modules/lock (Files): Remove build-aux/config.rpath.
32854         (Depends-on): Remove havelib. Add threadlib.
32855         (configure.ac-early): Remove section.
32856         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32857         * modules/tls (Depends-on): Remove lock. Add threadlib.
32858         (Link): New section, copied from threadlib.
32859         * MODULES.html.sh (Multithreading): Add threadlib.
32860
32861 2008-08-14  Bruno Haible  <bruno@clisp.org>
32862
32863         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32864         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32865         glthread_rwlock_unlock, glthread_rwlock_destroy,
32866         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32867         glthread_recursive_lock_destroy): Define as macros always.
32868         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32869         glthread_lock_lock.
32870         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32871         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32872         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32873         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32874         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32875         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32876         (glthread_recursive_lock_lock_func): Renamed from
32877         glthread_recursive_lock_lock.
32878         (glthread_recursive_lock_unlock_func): Renamed from
32879         glthread_recursive_lock_unlock.
32880         (glthread_recursive_lock_destroy_func): Renamed from
32881         glthread_recursive_lock_destroy.
32882
32883 2008-08-14  Bruno Haible  <bruno@clisp.org>
32884
32885         * lib/glthread/lock.h: Renamed from lib/lock.h.
32886         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32887         * lib/glthread/tls.h: Renamed from lib/tls.h.
32888         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32889         * lib/fstrcmp.c: Update includes.
32890         * lib/strsignal.c: Update includes.
32891         * modules/lock (Files, Makefile.am): Update.
32892         (Include): Change to "glthread/lock.h".
32893         * modules/tls (Files, Makefile.am): Update.
32894         (Include): Change to "glthread/tls.h".
32895         * tests/test-lock.c: Update includes.
32896         * tests/test-tls.c: Update includes.
32897         * NEWS: Mention the renamed header files.
32898
32899 2008-08-11  Jim Meyering  <meyering@redhat.com>
32900
32901         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32902
32903 2008-08-11  Eric Blake  <ebb9@byu.net>
32904
32905         test-c-stack: avoid C99-ism
32906         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32907         before statement.
32908         Reported by Alain Guibert.
32909
32910 2008-08-10  Jim Meyering  <meyering@redhat.com>
32911
32912         ensure that return value of uinttostr et al are not ignored
32913         * lib/inttostr.h (__GNUC_PREREQ): Define.
32914         (__attribute_warn_unused_result__): Define.
32915         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32916
32917 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32918
32919         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32920         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32921
32922 2008-08-07  Jim Meyering  <meyering@redhat.com>
32923
32924         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32925
32926         * modules/mkstemp (License): Relicense under LGPLv2+.
32927         * modules/tempname (License): Likewise.
32928
32929 2008-08-06  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/poll.c (poll): Further micro-optimization.
32932
32933 2008-08-06  Jim Meyering  <meyering@redhat.com>
32934
32935         inet_pton.c: use locale-independent tolower
32936         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32937         (inet_pton6): Use c_tolower rather than tolower.
32938         * modules/inet_pton (Depends-on): Add c-ctype.
32939
32940 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32941
32942         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32943         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32944
32945 2008-08-06  Jim Meyering  <meyering@redhat.com>
32946
32947         * modules/inet_pton (License): Relicense under LGPLv2+.
32948
32949 2008-08-03  Bruno Haible  <bruno@clisp.org>
32950
32951         Additional non-aborting API for lock and tls.
32952         * lib/lock.h: Include <errno.h>.
32953         (glthread_lock_init): New macro/function.
32954         (gl_lock_init): Define as wrapper around glthread_lock_init.
32955         (glthread_lock_lock): New macro/function.
32956         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32957         (glthread_lock_unlock): New macro/function.
32958         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32959         (glthread_lock_destroy): New macro/function.
32960         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32961         (glthread_rwlock_init): New macro/function.
32962         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32963         (glthread_rwlock_rdlock): New macro/function.
32964         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32965         (glthread_rwlock_wrlock): New macro/function.
32966         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32967         (glthread_rwlock_unlock): New macro/function.
32968         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32969         (glthread_rwlock_destroy): New macro/function.
32970         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32971         (glthread_recursive_lock_init): New macro/function.
32972         (gl_recursive_lock_init): Define as wrapper around
32973         glthread_recursive_lock_init.
32974         (glthread_recursive_lock_lock): New macro/function.
32975         (gl_recursive_lock_lock): Define as wrapper around
32976         glthread_recursive_lock_lock.
32977         (glthread_recursive_lock_unlock): New macro/function.
32978         (gl_recursive_lock_unlock): Define as wrapper around
32979         glthread_recursive_lock_unlock.
32980         (glthread_recursive_lock_destroy): New macro/function.
32981         (gl_recursive_lock_destroy): Define as wrapper around
32982         glthread_recursive_lock_destroy.
32983         (glthread_once): New macro/function.
32984         (gl_once): Define as wrapper around glthread_once.
32985         Update function declarations.
32986         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32987         glthread_rwlock_init. Return error code.
32988         (glthread_rwlock_rdlock_multithreaded): Renamed from
32989         glthread_rwlock_rdlock. Return error code.
32990         (glthread_rwlock_wrlock_multithreaded): Renamed from
32991         glthread_rwlock_wrlock. Return error code.
32992         (glthread_rwlock_unlock_multithreaded): Renamed from
32993         glthread_rwlock_unlock. Return error code.
32994         (glthread_rwlock_destroy_multithreaded): Renamed from
32995         glthread_rwlock_destroy. Return error code.
32996         (glthread_recursive_lock_init_multithreaded): Renamed from
32997         glthread_recursive_lock_init. Return error code.
32998         (glthread_recursive_lock_lock_multithreaded): Renamed from
32999         glthread_recursive_lock_lock. Return error code.
33000         (glthread_recursive_lock_unlock_multithreaded): Renamed from
33001         glthread_recursive_lock_unlock. Return error code.
33002         (glthread_recursive_lock_destroy_multithreaded): Renamed from
33003         glthread_recursive_lock_destroy. Return error code.
33004         (glthread_once_call): Make static.
33005         (glthread_once_multithreaded): Renamed from glthread_once.
33006         * lib/tls.h: Include <errno.h>.
33007         (glthread_tls_key_init): New macro/function.
33008         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
33009         (glthread_tls_set): New macro/function.
33010         (gl_tls_set): Define as wrapper around glthread_tls_set.
33011         (glthread_tls_key_destroy): New macro/function.
33012         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
33013         Update function declarations.
33014         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
33015         glthread_tls_get.
33016         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33017
33018 2008-08-04  Eric Blake  <ebb9@byu.net>
33019
33020         gnumakefile: use space, not TAB, outside of targets
33021         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
33022
33023 2008-08-02  Jim Meyering  <meyering@redhat.com>
33024
33025         getdate.y: avoid locale-dependent date parsing failure
33026         In Turkish locales, getdate would fail to recognize keywords
33027         containing a lowercase "i".  The solution is not to rely on
33028         locale-sensitive case-conversion.
33029         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
33030         (lookup_word): Use c_toupper in place of toupper.
33031         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
33032         Reported by Vefa Bicakci <bicave@superonline.com> in
33033         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
33034         * modules/getdate (Depends-on): Add c-ctype.
33035
33036 2008-08-02  Bruno Haible  <bruno@clisp.org>
33037
33038         * gnulib-tool (func_import): When updating or creating a .gitignore
33039         file, prepend each added line with a slash, and ignore leading slashes
33040         from the existing lines.
33041         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33042
33043 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33044
33045         Portability fix for GNU make 3.79.1.
33046         * top/GNUmakefile: Avoid 'else COND', which older GNU make
33047         versions do not understand.
33048
33049 2008-08-01  Bruno Haible  <bruno@clisp.org>
33050
33051         Work around bug of HP-UX 10.20 cc with -0.0 literal.
33052         * tests/test-isnanf.h (zero): New variable.
33053         (main): Avoid literal -0.0f.
33054         * tests/test-isnand.h (zero): New variable.
33055         (main): Avoid literal -0.0.
33056         * tests/test-isnanl.h (zero): New variable.
33057         (main): Avoid literal -0.0L.
33058         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
33059         (test_float, test_double, test_long_double): Avoid literals -0.0f,
33060         -0.0, -0.0L.
33061         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
33062         (test_signbitd): Avoid literal -0.0.
33063         (test_signbitl): Avoid literal -0.0L.
33064         * tests/test-ceilf1.c (zero): New variable.
33065         (main): Avoid literal -0.0f.
33066         * tests/test-ceill.c (zero): New variable.
33067         (main): Avoid literal -0.0L.
33068         * tests/test-floorf1.c (zero): New variable.
33069         (main): Avoid literal -0.0f.
33070         * tests/test-floorl.c (zero): New variable.
33071         (main): Avoid literal -0.0L.
33072         * tests/test-roundf1.c (zero): New variable.
33073         (main): Avoid literal -0.0f.
33074         * tests/test-round1.c (zero): New variable.
33075         (main): Avoid literal -0.0.
33076         * tests/test-roundl.c (zero): New variable.
33077         (main): Avoid literal -0.0L.
33078         * tests/test-truncf1.c (zero): New variable.
33079         (main): Avoid literal -0.0f.
33080         * tests/test-trunc1.c (zero): New variable.
33081         (main): Avoid literal -0.0.
33082         * tests/test-truncl.c (zero): New variable.
33083         (main): Avoid literal -0.0L.
33084         * tests/test-frexp.c (zero): New variable.
33085         (main): Avoid literal -0.0.
33086         * tests/test-frexpl.c (zero): New variable.
33087         (main): Avoid literal -0.0L.
33088         * tests/test-ldexpl.c (zero): New variable.
33089         (main): Avoid literal -0.0L.
33090         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33091         (zerod, zerol): New variables.
33092         (test_function): Avoid literals -0.0, -0.0L.
33093         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33094         (zerod, zerol): New variables.
33095         (test_function): Avoid literals -0.0, -0.0L.
33096         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33097         (zerod, zerol): New variables.
33098         (test_function): Avoid literals -0.0, -0.0L.
33099         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33100         (zerod, zerol): New variables.
33101         (test_function): Avoid literals -0.0, -0.0L.
33102         * tests/test-strtod.c (zero): New variable.
33103         (main): Avoid literal -0.0.
33104         Reported by Jonathan C. Patschke <jp@centtech.com>.
33105
33106 2008-07-31  Jim Meyering  <meyering@redhat.com>
33107
33108         sha256.h: correct definition of SHA224_DIGEST_SIZE
33109         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33110         Reported by Paulie Pena IV <paulie4@gmail.com>.
33111         Define as 224 / 8, rather than as a literal.
33112         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33113         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33114         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33115
33116 2008-07-31  Bruno Haible  <bruno@clisp.org>
33117
33118         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33119         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33120         Reported by Jonathan Patschke <jp@centtech.com>.
33121
33122 2008-07-31  Bruno Haible  <bruno@clisp.org>
33123
33124         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33125         Reported by Paolo Bonzini <bonzini@gnu.org>.
33126
33127 2008-07-30  Eric Blake  <ebb9@byu.net>
33128
33129         test-strtod: allow compilation without -lm
33130         * tests/test-strtod.c (main): Avoid link dependence on fabs.
33131         Reported by Dennis Clarke <blastwave@gmail.com>.
33132
33133 2008-07-28  Jim Meyering  <meyering@redhat.com>
33134
33135         bootstrap: work also when there are no .po files in po/
33136         * build-aux/bootstrap (update_po_files): Complete the change
33137         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
33138
33139 2008-07-27  Jim Meyering  <meyering@redhat.com>
33140
33141         * users.txt: Add zile.
33142
33143 2008-07-26  Ben Pfaff  <blp@gnu.org>
33144
33145         Add missing dependencies on new m4/exponent[fdl].m4 files.
33146         * modules/isnanf-nolibm: Add m4/exponentf.m4.
33147         * modules/isnand-nolibm: Add m4/exponentd.m4.
33148         * modules/isnanl-nolibm: Add m4/exponentl.m4.
33149         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
33150         m4/isnan[fdl].m4, because the macros actually used moved.
33151         Reported by Jim Meyering.
33152
33153 2008-07-14  Ben Pfaff  <blp@gnu.org>
33154
33155         Add isinf module.
33156         * lib/isinf.c: New file.
33157         * lib/math.in.h: Define isinf macro if we have decided to replace
33158         it.
33159         * m4/isinf.m4: New file.
33160         * m4/math_h.m4: Initialize and substitute variables for isinf
33161         module.
33162         * modules/isinf: New file.
33163         * modules/isinf-tests: New file.
33164         * modules/math: Add substitutions for new module.
33165         * tests/test-isinf.c: New file.
33166         * doc/posix-functions/isinf.texi: Mention new module.
33167         * MODULES.html.sh: Mention new module.
33168
33169 2008-07-14  Ben Pfaff  <blp@gnu.org>
33170
33171         Factor out some macros for use by additional modules.
33172         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
33173         exponentf.m4.
33174         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
33175         exponentd.m4.
33176         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
33177         file exponentl.m4.
33178         * m4/exponentf.m4: New file.
33179         * m4/exponentd.m4: New file.
33180         * m4/exponentl.m4: New file.
33181         * modules/isnanf: Use new file m4/exponentf.m4.
33182         * modules/isnand: Use new file m4/exponentd.m4.
33183         * modules/isnanl: Use new file m4/exponentl.m4.
33184
33185 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
33186
33187         mktime.c: normalize tp->tm_isdst value to -1/0/1.
33188         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
33189         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
33190         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
33191
33192         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
33193         readlink on platforms without PATH_MAX.
33194
33195 2008-07-21  Eric Blake  <ebb9@byu.net>
33196
33197         Warn, not fail, on stale version.
33198         * top/GNUmakefile (_curr-ver): Tone down previous patch.
33199
33200         Don't allow installation with stale devel version number.
33201         * top/GNUmakefile (_is-install-target): New macro.
33202         (_curr-ver): Forbid installation with stale version number.
33203
33204 2008-07-20  Bruno Haible  <bruno@clisp.org>
33205
33206         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
33207         TESTS_ENVIRONMENT.
33208         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
33209
33210 2008-07-20  Bruno Haible  <bruno@clisp.org>
33211
33212         * lib/c-stack.h (c_stack_action): Add documentation.
33213         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
33214
33215 2008-07-20  Bruno Haible  <bruno@clisp.org>
33216
33217         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
33218         * modules/readlink (License): Likewise.
33219
33220 2008-07-17  Eric Blake  <ebb9@byu.net>
33221
33222         * modules/c-stack (Link): Fix typo.
33223
33224         Make c-stack use libsigsegv, when available.
33225         * modules/c-stack (Depends-on): Add libsigsegv.
33226         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
33227         needed.
33228         * lib/c-stack.c (SIGSTKSZ): Define fallback.
33229         (segv_handler, overflow_handler, c_stack_action)
33230         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
33231         implementation when libsigsegv is available, but only when using
33232         the library is necessary.
33233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
33234         comment, explaining why XSI check fails on Linux.
33235         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
33236         * tests/test-c-stack2.sh: Tweak skip message.
33237         * NEWS: Document new link-time requirements.
33238
33239 2008-07-16  Eric Blake  <ebb9@byu.net>
33240
33241         c-stack: Expose false positives when not using libsigsegv.
33242         * modules/c-stack-tests (Files): Expand test.
33243         * tests/test-c-stack.c (main): Add means to conditionally trigger
33244         non-overflow SIGSEGV.
33245         * tests/test-c-stack2.sh: New file.
33246
33247 2008-07-14  Bruno Haible  <bruno@clisp.org>
33248
33249         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
33250         Reported by Eric Blake.
33251
33252 2008-07-14  Sam Steingold  <sds@gnu.org>
33253             Bruno Haible  <bruno@clisp.org>
33254
33255         New module libsigsegv.
33256         * modules/libsigsegv: New file.
33257         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33258         modifications.
33259         * MODULES.html.sh (Signal handling): New section.
33260
33261 2008-07-14  Bruno Haible  <bruno@clisp.org>
33262
33263         * modules/unictype/ctype-* (Description): Add the word "function".
33264         Improves the resulting doc in MODULES.html.
33265
33266 2008-07-12  Ben Pfaff  <blp@gnu.org>
33267
33268         Add longlong module.
33269         * modules/longlong: New file.
33270
33271 2008-07-12  Bruno Haible  <bruno@clisp.org>
33272
33273         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33274         to empty.
33275
33276 2008-07-10  Ben Pfaff  <blp@gnu.org>
33277
33278         Add isnan module.
33279         * doc/posix-functions/isnan.texi: Mention new module.
33280         * lib/math.in.h: Define isnan macro if we have decided to replace
33281         it.
33282         * m4/isnan.m4: New file.
33283         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33284         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33285         also.
33286         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33287         redundancy.
33288         * m4/math_h.m4: Initialize and substitute variables for isnan
33289         module.
33290         * modules/isnan: New file.
33291         * modules/isnan-tests: New file.
33292         * modules/math: Add substitutions for new module.
33293         * tests/test-isnan.c: New file.
33294         * MODULES.html.sh: Mention new module.
33295
33296 2008-07-10  Ben Pfaff  <blp@gnu.org>
33297
33298         Add isnanf module.
33299         * lib/isnanf.m4: New file.
33300         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33301         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33302         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33303         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33304         * modules/isnanf: New file.
33305         * modules/isnanf-tests: New file.
33306         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33307         files.
33308         * tests/test-isnanf-nolibm.c: factored most of its contents into
33309         new file tests/test-isnanf.h.
33310         * tests/test-isnanf.h: New file.
33311         * tests/test-isnanf.c: New file.
33312         * MODULES.html.sh: Mention new module.
33313         * doc/glibc-functions/isnanf.texi: Mention new module.
33314
33315 2008-07-10  Ben Pfaff  <blp@gnu.org>
33316
33317         Add isnand module.
33318         * lib/isnand.h: New file.
33319         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33320         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33321         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33322         functionality also.
33323         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33324         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33325         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33326         * modules/isnand: New file.
33327         * modules/isnand-tests: New file.
33328         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33329         files.
33330         * tests/test-isnand-nolibm.c: factored most of its contents into
33331         new file tests/test-isnand.h.
33332         * tests/test-isnand.h: New file.
33333         * tests/test-isnand.c: New file.
33334         * MODULES.html.sh: Mention new module.
33335
33336 2008-07-10  Ben Pfaff  <blp@gnu.org>
33337
33338         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33339         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33340         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33341         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33342         * modules/isnanf-nolibm: Update references to renamed files.
33343         * modules/isnand-nolibm: Likewise.
33344         * modules/isnanf-nolibm-tests: Likewise.
33345         * modules/isnand-nolibm-tests: Likewise.
33346         * lib/frexp.c: Likewise.
33347         * lib/isfinite.c: Likewise.
33348         * lib/signbitd.c: Likewise.
33349         * lib/signbitf.c: Likewise.
33350         * lib/vasnprintf.c: Likewise.
33351         * tests/test-ceilf1.c: Likewise.
33352         * tests/test-ceilf2.c: Likewise.
33353         * tests/test-floorf1.c: Likewise.
33354         * tests/test-floorf2.c: Likewise.
33355         * tests/test-frexp.c: Likewise.
33356         * tests/test-round1.c: Likewise.
33357         * tests/test-round2.c: Likewise.
33358         * tests/test-roundf1.c: Likewise.
33359         * tests/test-strtod.c: Likewise.
33360         * tests/test-trunc1.c: Likewise.
33361         * tests/test-trunc2.c: Likewise.
33362         * tests/test-truncf1.c: Likewise.
33363         * tests/test-truncf2.c: Likewise.
33364         * NEWS: Mention the renamed header files.
33365
33366 2008-07-11  Jim Meyering  <meyering@redhat.com>
33367
33368         vc-list-files: make the last-resort awk code more portable
33369         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33370         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33371         does not support it.
33372
33373 2008-07-10  Eric Blake  <ebb9@byu.net>
33374
33375         Work with tar's bootstrap.
33376         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33377         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33378         an m4 comment.
33379
33380 2008-07-09  Jim Meyering  <meyering@redhat.com>
33381
33382         posix-shell.m4: fix typo that made this test malfunction
33383         * m4/posix-shell.m4: Remove capitalization in variable name.
33384
33385 2008-07-08  Bruno Haible  <bruno@clisp.org>
33386
33387         * m4/onceonly.m4: Update comments.
33388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33389
33390 2008-07-04  Jim Meyering  <meyering@redhat.com>
33391
33392         * users.txt: Add vc-dwim.
33393         (bison, coreutils): Use the gitweb URL.
33394
33395 2008-07-03  Jim Meyering  <meyering@redhat.com>
33396
33397         * users.txt: Add libffcall.  From Sam Steingold.
33398
33399 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
33400
33401         getdate.y: do not ignore TZ with relative day, month or year offset
33402         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33403         relative-date-handling, since otherwise, the latter would clobber the
33404         sole output (an updated Start value) of the tz-handling block.
33405         * tests/test-getdate.c: Tests for the fix
33406
33407 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33408
33409         Recognize 'foo_LIBRARIES += libgnu.a'.
33410         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33411         makefile snippet has already specified an installation location,
33412         also using '+='.
33413
33414 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
33415
33416         getdate.y: factor out common actions
33417         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33418         Use them in place of open-coded actions.
33419
33420 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33421
33422         Add self-test for getdate module.
33423         * modules/getdate-tests: New file.
33424         * tests/test-getdate.c: New file.
33425
33426 2008-06-29  Bruno Haible  <bruno@clisp.org>
33427
33428         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33429         .gitignore.
33430         Reported by Sylvain Beucler <beuc@beuc.net>.
33431
33432 2008-06-29  Bruno Haible  <bruno@clisp.org>
33433
33434         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33435         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33436
33437 2008-06-29  Bruno Haible  <bruno@clisp.org>
33438
33439         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33440         EXTRA_DIST.
33441         Reported by Sylvain Beucler <beuc@beuc.net>.
33442
33443 2008-06-26  Jim Meyering  <meyering@redhat.com>
33444
33445         make several modules depend on the "open" module
33446         This provides slightly increased consistency when opening-for-write
33447         the name of a non-directory spelled with a trailing slash.
33448         * modules/chdir-safer: Likewise.
33449         * modules/chown: Likewise.
33450         * modules/clean-temp: Likewise.
33451         * modules/copy-file: Likewise.
33452         * modules/fchdir: Likewise.
33453         * modules/fcntl-safer: Likewise.
33454         * modules/pipe: Likewise.
33455         * modules/utime: Likewise.
33456         Prompted by Eric Blake and Bruno Haible.
33457
33458 2008-06-24  Andreas Schwab  <schwab@suse.de>
33459
33460         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33461         literals can be used as initializers for global variables.
33462
33463 2008-06-23  Eric Blake  <ebb9@byu.net>
33464
33465         Make gnulib-cache.m4 easier to diff.
33466         * gnulib-tool (func_import): Allow newlines when reading cached
33467         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33468
33469 2008-06-23  Bruno Haible  <bruno@clisp.org>
33470
33471         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33472         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33473         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33474         m4/signalblocking.m4.
33475         (gl_PREREQ_SIGACTION): Don't invoke it.
33476         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33477         gl_PREREQ_SIG_HANDLER_H.
33478         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33479         Don't check for sigaction here.
33480
33481 2008-06-23  Bruno Haible  <bruno@clisp.org>
33482
33483         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33484         (install_handlers): Don't set the SA_RESETHAND flag.
33485
33486 2008-06-23  Bruno Haible  <bruno@clisp.org>
33487
33488         * m4/sigaction.m4: Comment fixes.
33489         * lib/signal.in.h: Likewise.
33490
33491 2008-06-23  Eric Blake  <ebb9@byu.net>
33492
33493         Fix typo.
33494         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33495
33496         Avoid SA_ namespace.
33497         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33498         Reported by Ralf Wildenhues.
33499
33500         Avoid test failure due to SA_RESTORER.
33501         * tests/test-sigaction.c (SA_MASK): New macro.
33502         (main): Avoid failing due to extension flags being set.
33503         Reported by Jim Meyering.
33504
33505         Revert use of sig-handler.h in sigprocmask.c.
33506         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33507         it requires the existence of struct sigaction.
33508         * lib/sigprocmask.c (handler_t): Restore typedef.
33509         (rpl_signal, old_handlers): Use local type.
33510
33511 2008-06-22  Bruno Haible  <bruno@clisp.org>
33512
33513         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33514         conditionally.
33515         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33516
33517 2008-06-22  Bruno Haible  <bruno@clisp.org>
33518
33519         * doc/posix-functions/siginterrupt.texi: Move note.
33520
33521         * lib/signal.in.h (SA_RESTART): New macro.
33522         * lib/sigaction.c: Update comment.
33523
33524         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33525
33526         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33527         (gl_PREREQ_SIGPROCMASK): Invoke it.
33528         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33529
33530         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33531
33532         * lib/sigprocmask.c: Update a comment.
33533
33534 2008-06-21  Eric Blake  <ebb9@byu.net>
33535
33536         Use sigaction module rather than signal().
33537         * modules/c-stack (Depends-on): Add sigaction.
33538         * modules/fatal-signal (Depends-on): Likewise.
33539         * modules/nanosleep (Depends-on): Likewise.
33540         * modules/sigprocmask (Files): Add sig-handler.h.
33541         * modules/sigaction (Files): Likewise.
33542         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33543         Eggert.
33544         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33545         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33546         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33547         (init_fatal_signals): Likewise.
33548         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33549         (siginterrupt): Delete fallback.
33550         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33551         instead.
33552         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33553         siginterrupt.
33554
33555         New module sigaction, for mingw.
33556         * modules/sigaction: New module...
33557         * modules/sigaction-tests: ...and its test.
33558         * m4/sigaction.m4: New file.
33559         * lib/sigaction.c: Likewise.
33560         * tests/test-sigaction.c: Likewise.
33561         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33562         * modules/signal (Makefile.am): Likewise.
33563         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33564         needed.
33565         * doc/posix-headers/signal.texi (signal.h): Mention provided
33566         types.
33567         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33568         that sigaction is preferable.
33569         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33570         module.
33571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33572         sigaction.
33573
33574         Improve robustness of sigprocmask by overriding signal.
33575         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33576         is in use.
33577         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33578         (SIGKILL, SIGSTOP): Provide fallbacks.
33579         (rpl_signal): Implement.
33580         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33581         signal can be called inside handlers.
33582
33583         Fix nanosleep module on mingw.
33584         * modules/nanosleep (Depends-on): Add sys_select.
33585         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33586
33587         Fix licensing of sigprocmask.
33588         * modules/raise (License): Relicense as LGPL.
33589
33590 2008-06-21  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33593         result if it contains question marks.
33594         Reported by Michael Geng <linux@michaelgeng.de>.
33595
33596 2008-06-19  Bruno Haible  <bruno@clisp.org>
33597
33598         Fix CVS-ism.
33599         * doc/gnulib.texi: Include updated-stamp.texi.
33600         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33601         (updated-stamp.texi): New rule.
33602         (gnulib.info): Depend on it.
33603         * doc/.gitignore: Add updated-stamp.texi.
33604         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33605
33606 2008-06-19  Bruno Haible  <bruno@clisp.org>
33607
33608         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33609         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33610
33611 2008-06-19  Eric Blake  <ebb9@byu.net>
33612
33613         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33614         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33615         Reported by Stepan Kasal.
33616
33617 2008-06-18  Bruno Haible  <bruno@clisp.org>
33618
33619         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33620         Reported by Eric Blake.
33621
33622 2008-06-18  Eric Blake  <ebb9@byu.net>
33623
33624         Work around cygwin 1.5.25 strsignal bug.
33625         * tests/test-strsignal.c: Allow for const char *.
33626         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33627
33628 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33629
33630         * users.txt: Update URL to article and add author/date
33631         information.
33632
33633 2008-06-17  Bruno Haible  <bruno@clisp.org>
33634
33635         New macro gl_DISABLE_THREADS.
33636         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33637         if the user did not pass --enable-threads or --disable-threads option.
33638         (gl_DISABLE_THREADS): New macro.
33639         Reported by Eric Blake <ebb9@byu.net>.
33640
33641 2008-06-17  Bruno Haible  <bruno@clisp.org>
33642
33643         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33644         when the macro ignores it.
33645         Based on a patch by Eric Blake <ebb9@byu.net>.
33646
33647 2008-06-17  Bruno Haible  <bruno@clisp.org>
33648
33649         * modules/tls (License): Change to LGPLv2+.
33650         Reported by Eric Blake.
33651
33652 2008-06-17  Eric Blake  <ebb9@byu.net>
33653
33654         Simplify c-stack prerequisites.
33655         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33656         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33657         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33658         check.
33659         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33660         <sys/resource.h>.
33661
33662         Move c-stack test into testsuite.
33663         * modules/c-stack-tests: New file.
33664         * lib/c-stack.c [DEBUG]: Move test program...
33665         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33666         fail test if sigaltstack is lacking.
33667         * tests/test-c-stack.sh: New driver file.
33668
33669 2008-06-16  Eric Blake  <ebb9@byu.net>
33670
33671         Use raise module consistently.
33672         * modules/fatal-signal (Depends-on): Add raise.
33673         * modules/sigprocmask (Depends-on): Likewise.
33674         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33675         * lib/sigprocmask.c (sigprocmask): Likewise.
33676         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33677         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33678
33679         Fix compliance bug in sigpending.
33680         * lib/sigprocmask.c (sigpending): Return pending array via
33681         parameter, not return value.
33682
33683 2008-06-14  Eric Blake  <ebb9@byu.net>
33684
33685         Improve obstack-printf test code.
33686         * tests/test-obstack-printf.c (test_function): Fix comment, and
33687         simplify usage of obstack_* in macros.  Add a test for coverage.
33688         Reported by Bruno Haible.
33689
33690 2008-06-14  Bruno Haible  <bruno@clisp.org>
33691
33692         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33693         array size as a constant, not as a const variable.
33694         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33695         AC_USE_SYSTEM_EXTENSIONS.
33696         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33697         Test whether the obstack_printf function actually exists.
33698         * modules/obstack-printf (Depends-on): Add extensions.
33699         (Include): Remove obstack.h.
33700         * modules/obstack-printf-posix (Depends-on): Add extensions.
33701         (Include): Remove obstack.h.
33702
33703 2008-06-13  Eric Blake  <ebb9@byu.net>
33704
33705         Add obstack-printf and obstack-printf-posix modules.
33706         * modules/obstack-printf: New file.
33707         * modules/obstack-printf-posix: Likewise.
33708         * MODULES.html.sh (Misc): Mention them.
33709         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33710         Likewise.
33711         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33712         Likewise.
33713         * modules/stdio (Makefile.am): Accomodate new modules.
33714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33715         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33716         Declare.
33717         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33718         functions.
33719         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33720         (gl_REPLACE_OBSTACK_PRINTF): New macros
33721         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33722         * tests/test-obstack-printf.c: New file.
33723         * modules/obstack-printf-tests: Likewise.
33724         * modules/obstack-printf-posix-tests: Likewise.
33725
33726 2008-06-11  Bruno Haible  <bruno@clisp.org>
33727
33728         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33729         * lib/open.c: Include errno.h.
33730         (open): Fail when attempting to write to a file that has a trailing
33731         slash.
33732         * tests/test-open.c (main): Test against trailing slash bug.
33733         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33734
33735 2008-06-10  Bruno Haible  <bruno@clisp.org>
33736
33737         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33738         for $? to work inside the trap command, with various /bin/sh-s.
33739         * tests/test-vc-list-files-cvs.sh: Likewise.
33740
33741 2008-06-10  Bruno Haible  <bruno@clisp.org>
33742
33743         * lib/acl-internal.h: Don't include gettext.h here.
33744         * lib/set-mode-acl.c: Include gettext.h here.
33745         * lib/copy-acl.c: Likewise.
33746
33747 2008-06-10  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33750         * lib/wait-process.c (wait_subprocess): Likewise.
33751         * lib/execute.h (execute): Add termsigp argument.
33752         * lib/execute.c (execute): Likewise.
33753         * lib/csharpcomp.c (compile_csharp_using_pnet,
33754         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33755         * lib/csharpexec.c (execute_csharp_using_pnet,
33756         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33757         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33758         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33759         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33760         is_jikes_present): Update.
33761         * lib/javaexec.c (execute_java_class): Update.
33762         * lib/javaversion.c (execute_and_read_line): Update.
33763         * NEWS: Document the changes.
33764         Reported by Eric Blake.
33765
33766 2008-06-10  Eric Blake  <ebb9@byu.net>
33767
33768         Add missing include.
33769         * tests/test-strstr.c (includes): Add <signal.h>.
33770         * tests/test-strcasestr.c (includes): Likewise.
33771         * tests/test-memmem.c (includes): Likewise.
33772
33773 2008-06-10  Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/wait-process.c (wait_subprocess): Add an assertion.
33776
33777 2008-06-10  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33780
33781 2008-06-10  Bruno Haible  <bruno@clisp.org>
33782
33783         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33784         using alarm().
33785         * tests/test-strcasestr.c (main): Likewise.
33786         * tests/test-strstr.c (main): Likewise.
33787
33788 2008-06-09  Bruno Haible  <bruno@clisp.org>
33789
33790         Work around the Solaris 10 ACE ACLs ABI change.
33791         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33792         declare if ACL_NO_TRIVIAL is present.
33793         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33794         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33795         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33796         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33797         define if ACL_NO_TRIVIAL is present.
33798         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33799         and use the current ABI.
33800         (file_has_acl): Use same #if condition as elsewhere.
33801         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33802         in use, and use the current ABI.
33803         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33804         Reported by Jim Meyering.
33805
33806 2008-06-09  Eric Blake  <ebb9@byu.net>
33807
33808         Work around environments that (stupidly) ignore SIGALRM.
33809         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33810         before using alarm().
33811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33813         Reported by Ian Beckwith <ianb@erislabs.net>.
33814
33815         Produce autobuild blurb earlier in log.
33816         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33817
33818 2008-06-09  Jim Meyering  <meyering@redhat.com>
33819         and Ondřej Vašík  <ovasik@redhat.com>
33820
33821         utimens.c: correct kernel bug work-around
33822         Ondřej Vašík found that the invalid return value of 280 indicates
33823         failure, not success, and the kernel bug we're trying to work
33824         around affects not just the utimensat call, but also the fallback
33825         futimens call.
33826         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33827         not success.
33828         [HAVE_FUTIMENS]: Use the same work-around, here.
33829
33830 2008-06-09  Jim Meyering  <meyering@redhat.com>
33831
33832         add more guards around definition of ACE_-related code
33833         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33834         ALLOW and ACE_OWNER are also defined.
33835
33836 2008-06-08  Bruno Haible  <bruno@clisp.org>
33837
33838         * lib/acl-internal.h: Add me as co-author.
33839         * lib/file-has-acl.c: Likewise.
33840         * lib/set-mode-acl.c: Likewise.
33841         * lib/copy-acl.c: Likewise.
33842
33843 2008-06-08  Bruno Haible  <bruno@clisp.org>
33844
33845         Add support for AIX ACLs.
33846         * lib/acl-internal.h (acl_nontrivial): New declaration.
33847         * lib/file-has-acl.c (acl_nontrivial): New function.
33848         (file_has_acl): Add implementation using AIX 4 ACL API.
33849         * lib/set-mode-acl.c (qset_acl): Likewise.
33850         * lib/copy-acl.c (qcopy_acl): Likewise.
33851
33852 2008-06-08  Bruno Haible  <bruno@clisp.org>
33853
33854         Add support for HP-UX ACLs.
33855         * lib/acl-internal.h (acl_nontrivial): New declaration.
33856         * lib/file-has-acl.c (acl_nontrivial): New function.
33857         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33858         * lib/set-mode-acl.c (qset_acl): Likewise.
33859         * lib/copy-acl.c (qcopy_acl): Likewise.
33860
33861 2008-06-08  Bruno Haible  <bruno@clisp.org>
33862
33863         Add support for Cygwin ACLs.
33864         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33865         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33866         the chmod_or_fchmod call.
33867         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33868
33869 2008-06-08  Bruno Haible  <bruno@clisp.org>
33870
33871         Fix bug with setuid modes in Solaris 10+ code.
33872         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33873         succeeded, when the mode contains some special bits.
33874
33875 2008-06-08  Bruno Haible  <bruno@clisp.org>
33876
33877         Add support for Solaris 7..10 ACLs.
33878         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33879         declarations.
33880         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33881         functions.
33882         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33883         * lib/set-mode-acl.c (qset_acl): Likewise.
33884         * lib/copy-acl.c (qcopy_acl): Likewise.
33885
33886 2008-06-08  Bruno Haible  <bruno@clisp.org>
33887
33888         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33889         declaration.
33890         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33891         (acl_access_nontrivial): Remove MacOS X case.
33892         (file_has_acl): Use acl_extended_nontrivial.
33893         * lib/copy-acl.c (qcopy_acl): Likewise.
33894
33895 2008-06-08  Bruno Haible  <bruno@clisp.org>
33896
33897         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33898
33899 2008-06-08  Jim Meyering  <meyering@redhat.com>
33900
33901         * modules/acl (Maintainer): Add Bruno Haible.
33902
33903 2008-06-07  Bruno Haible  <bruno@clisp.org>
33904
33905         Improve support for Tru64 ACLs.
33906         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33907         ACL on OSF/1.
33908
33909 2008-06-07  Bruno Haible  <bruno@clisp.org>
33910
33911         Add support for MacOS X ACLs.
33912         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33913         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33914         * lib/set-mode-acl.c (qset_acl): Likewise.
33915         * lib/copy-acl.c (qcopy_acl): Likewise.
33916
33917 2008-06-07  Bruno Haible  <bruno@clisp.org>
33918
33919         Fix memory leak introduced on 2008-05-22.
33920         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33921         use.
33922
33923 2008-06-07  Bruno Haible  <bruno@clisp.org>
33924
33925         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33926         to construct an empty ACL.
33927
33928 2008-06-07  Bruno Haible  <bruno@clisp.org>
33929
33930         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33931         precisely.
33932         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33933
33934 2008-06-07  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33937         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33938
33939 2008-06-07  Bruno Haible  <bruno@clisp.org>
33940
33941         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33942         regardless of POSIX.
33943         * doc/posix-functions/_longjmp.texi: Likewise.
33944         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33945         SystemV platform in this case.
33946
33947 2008-06-06  Eric Blake  <ebb9@byu.net>
33948
33949         Document abort() bugs.
33950         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33951
33952         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33953         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33954         sigsetjmp.
33955         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33956         siglongjmp, but only as a macro.
33957         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33958         is obsolete.
33959         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33960
33961         Tweak documentation to cover cygwin argz bugs.
33962         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33963         argz bug fix; no code change needed since no cygwin releases
33964         occurred between the last fix and the bug being tested.
33965         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33966         module and recently fixed cygwin bugs.
33967         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33968         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33969         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33970         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33971         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33972         Likewise.
33973         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33974         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33975         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33976         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33977         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33978         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33979         Likewise.
33980
33981         Avoid gcc warning on cygwin.
33982         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33983         !ACL_NO_TRIVIAL]: Avoid unused variable.
33984
33985 2008-06-05  Eric Blake  <ebb9@byu.net>
33986
33987         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33988         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33989         git-version-gen fails to come up with a version.
33990         Reported by Simon Josefsson.
33991
33992 2008-06-05  Jim Meyering  <meyering@redhat.com>
33993             Paul Eggert  <eggert@cs.ucla.edu>
33994
33995         utimens.c: work around a probable Linux kernel bug
33996         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33997         appears to be a kernel bug that causes utimensat to return 280
33998         instead of 0, indicating success.
33999
34000 2008-06-04  Bruno Haible  <bruno@clisp.org>
34001
34002         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
34003         2008-06-01 commit.
34004
34005 2008-06-04  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
34008         * lib/file-has-acl.c (acl_access_nontrivial): New function.
34009         (file_has_acl): Use it. Save errno afterwards.
34010         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
34011
34012 2008-06-03  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
34015         draft code. Simplify #ifs.
34016         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
34017         Put Solaris code after POSIX-draft code. Fix comments regarding
34018         Solaris 10, HP-UX. Mention Cygwin.
34019         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
34020
34021 2008-06-03  Eric Blake  <ebb9@byu.net>
34022
34023         Provide fallback for older kernels.
34024         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34025         Provide runtime fallback if kernel lacks support.
34026         Reported by Mike Frysinger.
34027
34028 2008-06-02  Bruno Haible  <bruno@clisp.org>
34029
34030         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
34031         it exists.
34032
34033 2008-06-02  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
34036         * lib/copy-acl.c (qcopy_acl): Update comment.
34037
34038 2008-06-02  Bruno Haible  <bruno@clisp.org>
34039
34040         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
34041         like ACL APIs.
34042
34043 2008-06-02  Bruno Haible  <bruno@clisp.org>
34044
34045         * tests/test-file-has-acl.sh: Use different code for Cygwin.
34046         * tests/test-set-mode-acl.sh: Likewise.
34047         * tests/test-copy-acl.sh: Likewise.
34048         * tests/test-copy-file.sh: Likewise.
34049
34050 2008-06-02  Bruno Haible  <bruno@clisp.org>
34051
34052         * tests/test-file-has-acl.sh: Remove unused code.
34053
34054 2008-06-01  Bruno Haible  <bruno@clisp.org>
34055
34056         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
34057         (copy_acl): Just a wrapper around qcopy_acl that emits the error
34058         messages.
34059         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
34060
34061 2008-06-01  Bruno Haible  <bruno@clisp.org>
34062
34063         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
34064         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
34065         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
34066         APIs.
34067         * modules/acl-tests (configure.ac): Remove tests now contained in
34068         m4/acl.m4.
34069
34070 2008-06-02  Jim Meyering  <meyering@redhat.com>
34071
34072         announce-gen: use a better key-server host name
34073         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
34074         it may be more consistently reliable.  Suggested by Werner Koch
34075         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34076
34077 2008-06-01  Bruno Haible  <bruno@clisp.org>
34078
34079         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34080         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34081
34082 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34083
34084         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34085
34086 2008-06-01  Bruno Haible  <bruno@clisp.org>
34087
34088         New ACL tests.
34089         * tests/test-file-has-acl.sh: New file.
34090         * tests/test-file-has-acl.c: New file.
34091         * tests/test-set-mode-acl.sh: New file.
34092         * tests/test-set-mode-acl.c: New file.
34093         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34094         * tests/test-copy-acl.c: New file.
34095         * modules/acl-tests: New file, based on modules/copy-file-tests.
34096         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34097         (Depends-on): Add acl-tests.
34098         (configure.ac): Remove checks.
34099         (Makefile.am): Don't create test-sameacls program here any more.
34100
34101 2008-06-01  Bruno Haible  <bruno@clisp.org>
34102
34103         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34104         * tests/test-sameacls.c: Include progname.h.
34105         (main): Invoke set_program_name. Portability fixes for MacOS X,
34106         Solaris, HP-UX.
34107
34108 2008-06-01  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34111         function.
34112         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34113
34114 2008-06-01  Bruno Haible  <bruno@clisp.org>
34115
34116         * modules/rpmatch (Depends-on): Add strdup.
34117
34118 2008-06-01  Bruno Haible  <bruno@clisp.org>
34119
34120         * lib/pipe.c: Include unistd-safer.h.
34121         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34122         * modules/pipe (Depends-on): Add unistd-safer.
34123
34124 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34125
34126         * modules/autobuild (configure.ac): Call AB_INIT.
34127
34128 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34129
34130         * tests/test-getaddrinfo.c: Don't print debug messages by default.
34131         Suggested by Bruno Haible <bruno@clisp.org>.
34132
34133 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34134
34135         * tests/test-base64.c: Cast size_t to unsigned long when invoking
34136         printf.  Use %lu instead of %d.  Reported by Bruno Haible
34137         <bruno@clisp.org>.
34138
34139 2008-05-29  Eric Blake  <ebb9@byu.net>
34140
34141         Prefer new POSIX 200x interfaces over futimesat.
34142         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
34143         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
34144         when available.
34145         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
34146
34147 2008-05-28  Bruno Haible  <bruno@clisp.org>
34148
34149         * modules/stpcpy (License): Change to LGPLv2+.
34150         Requested by David Lutterkort <dlutter@redhat.com>.
34151
34152 2008-05-27  Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
34155         current mingw.
34156         Reported by Jose E. Marchesi <jemarch@gnu.org>.
34157
34158 2008-05-27  Bruno Haible  <bruno@clisp.org>
34159
34160         * modules/iconv_open (Link): New section, from module 'iconv'.
34161         * modules/striconv (Link): Likewise.
34162         * modules/striconveh (Link): Likewise.
34163         * modules/xstriconv (Link): Likewise.
34164         * modules/unicodeio (Link): Likewise.
34165         * modules/propername (Link): Likewise.
34166         Reported by Jim Meyering.
34167
34168 2008-05-26  Jim Meyering  <meyering@redhat.com>
34169
34170         sha256: do not artificially restrict buffer length to be < 2^32
34171         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
34172         uint32_t to size_t.
34173         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
34174         to match.
34175
34176         avoid unaligned access errors, e.g., on sparc
34177         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
34178         direct access through a possibly-unaligned uint64* pointer.
34179         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
34180         direct access through a possibly-unaligned uint32* pointer.
34181         Prompted by this patch from Tom "spot" Callaway:
34182         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
34183
34184         sha512.c: fix typo in comment
34185         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
34186
34187 2008-05-25  Bruno Haible  <bruno@clisp.org>
34188
34189         * lib/set-mode-acl.c: Renamed from lib/acl.c.
34190         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
34191         (Makefile.am): Update lib_SOURCES.
34192
34193 2008-05-25  Bruno Haible  <bruno@clisp.org>
34194
34195         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
34196
34197 2008-05-25  Jim Meyering  <meyering@redhat.com>
34198
34199         useless-if-before-free: freed expr may have white-space differences
34200         * build-aux/useless-if-before-free: Recognize cases in which the
34201         freed expression differs from the tested one in embedded white
34202         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
34203         $1 was used, so we can't make any regexp shy.  Improved tests now
34204         detect this.
34205
34206         useless-if-before-free: accept white space in the expression.
34207         * build-aux/useless-if-before-free: For now, any white space
34208         in the expression must be identical in the free argument.
34209
34210         useless-if-before-free: efficiency tweak
34211         * build-aux/useless-if-before-free: Make the expression-matching
34212         regexp "shy".
34213         Make the *outer* regexp shy, not the expr-matching one.
34214
34215         update code-in-comment to accept cast of free arg
34216         * build-aux/useless-if-before-free: Update regexp.
34217
34218 2008-05-25  Bruno Haible  <bruno@clisp.org>
34219
34220         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
34221         * modules/copy-file-tests (Files, Makefile.am): Update.
34222         * tests/test-copy-file.c (func_test_copy): Update.
34223
34224 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
34225
34226         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
34227
34228 2008-05-23  Bruno Haible  <bruno@clisp.org>
34229
34230         Improve support for ACLs on OSF/1.
34231         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
34232         Remove fallback for unknown flavors of ACLs.
34233
34234 2008-05-22  Bruno Haible  <bruno@clisp.org>
34235
34236         Add support for ACLs on OSF/1.
34237         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
34238         replacements.
34239         (acl_free_text): New macro fallback.
34240         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
34241         acl_free.
34242         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
34243         acl_free_text function. Require AC_C_INLINE.
34244
34245 2008-05-22  Bruno Haible  <bruno@clisp.org>
34246
34247         Make copy_acl work on MacOS X 10.5.
34248         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
34249         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
34250         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
34251         If MODE_INSIDE_ACL, don't assume that every system has the same text
34252         representation for ACLs as FreeBSD.
34253         * lib/copy-acl.c (copy_acl): Add support for platforms with
34254         !MODE_INSIDE_ACL.
34255         * lib/file-has-acl.c (file_has_acl): Likewise.
34256         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34257         FreeBSD, MacOS X, or IRIX, respectively.
34258
34259 2008-05-22  Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/acl.h: Don't include <sys/acl.h>.
34262         (GETACLCNT): Move fallback to lib/acl-internal.h.
34263         * lib/acl-internal.h: Include <sys/acl.h> here.
34264         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34265
34266 2008-05-22  Bruno Haible  <bruno@clisp.org>
34267
34268         Split off copy_acl function to separate file.
34269         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34270         * lib/acl.c (copy_acl): Moved function to separate file.
34271         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34272         * modules/acl (Files): Add lib/copy-acl.c.
34273         (Makefiles.am): Augment lib_SOURCES.
34274
34275 2008-05-22  Bruno Haible  <bruno@clisp.org>
34276
34277         * modules/copy-file-tests: New file.
34278         * tests/test-copy-file.sh: New file.
34279         * tests/test-copy-file.c: New file.
34280         * tests/test-copy-file-sameacls.c: New file.
34281
34282 2008-05-22  Eric Blake  <ebb9@byu.net>
34283
34284         Avoid gcc warning.
34285         * tests/test-memcmp.c (main): Pass NULL indirectly.
34286
34287 2008-05-21  Bruno Haible  <bruno@clisp.org>
34288
34289         Add reference doc about ACLs.
34290         * doc/acl-resources.txt: New file.
34291         * doc/acl-cygwin.txt: New file.
34292
34293 2008-05-21  Bruno Haible  <bruno@clisp.org>
34294
34295         Avoid one more warning from gcc.
34296         * lib/vasnprintf.c (IF_LINT): Update comments.
34297         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34298
34299 2008-05-21  Jim Meyering  <meyering@redhat.com>
34300
34301         avoid a warning from gcc
34302         * lib/vasnprintf.c (IF_LINT): Define.
34303         (scale10_round_decimal_long_double):
34304         Use it to avoid a "may be used uninitialized" warning.
34305         (scale10_round_decimal_double): Likewise.
34306
34307 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34308
34309         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34310         declared.
34311
34312 2008-05-20  Bruno Haible  <bruno@clisp.org>
34313
34314         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34315         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34316
34317 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34318
34319         * modules/memcmp-tests: New file.
34320         * tests/test-memcmp.c: New file.
34321
34322 2008-05-19  Bruno Haible  <bruno@clisp.org>
34323
34324         * modules/propername (Notice, configure.ac): Put quoted "..." into
34325         --keyword option.
34326         * lib/propername.h: Update comments accordingly.
34327         Reported by Eric Blake.
34328
34329 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34330
34331         * modules/getpass-gnu (Depends-on): Add fseeko.
34332
34333 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34334
34335         * modules/base64-tests: New file.
34336
34337 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34338
34339         * lib/base64.c (base64_decode_ctx): If a decode context structure
34340         was passed in use it to ignore newlines.  If a context structure
34341         was _not_ passed in, continue to treat newlines as garbage (this
34342         is the historical behavior).  Formerly base64_decode.
34343         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34344         takes a decode context structure.
34345         * lib/base64.h (base64_decode): Macro for four-argument calls.
34346         (base64_decode_alloc): Likewise.
34347         * lib/base64.c (base64_decode_ctx): If a decode context structure
34348         was passed in use it to ignore newlines.  If a context structure
34349         was _not_ passed in, continue to treat newlines as garbage (this
34350         is the historical behavior).  Formerly base64_decode.
34351         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34352         takes a decode context structure.
34353         * lib/base64.h (base64_decode): Macro for four-argument calls.
34354         (base64_decode_alloc): Likewise.
34355
34356 2008-05-19  Jim Meyering  <meyering@redhat.com>
34357
34358         avoid a warning from gcc
34359         * lib/trim.c (IF_LINT): Define.
34360         (trim2): Use it to avoid a "may be used uninitialized" warning.
34361
34362         Fix doc typo.
34363         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34364
34365 2008-05-19  Bruno Haible  <bruno@clisp.org>
34366
34367         * doc/glibc-functions/getpass.texi: Document limits of other
34368         implementations.
34369
34370 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34371             Bruno Haible <bruno@clisp.org>
34372
34373         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34374
34375 2008-05-18  Bruno Haible  <bruno@clisp.org>
34376
34377         * modules/propername: New file, from GNU gettext.
34378         * lib/propername.h: New file, from GNU gettext.
34379         * lib/propername.c: New file, from GNU gettext.
34380         * MODULES.html.sh (Internationalization functions): Add propername.
34381
34382 2008-05-16  Jim Meyering  <meyering@redhat.com>
34383             Bruno Haible  <bruno@clisp.org>
34384
34385         Avoid some warnings from "gcc -Wshadow".
34386         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34387
34388 2008-05-15  Eric Blake  <ebb9@byu.net>
34389
34390         Extend previous patch to cygwin 1.7.0.
34391         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34392         fast implementation in cygwin >= 1.7.0.
34393         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34395
34396 2008-05-15  Bruno Haible  <bruno@clisp.org>
34397
34398         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34399         implementation in glibc >= 2.9.
34400         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34402
34403 2008-05-15  Bruno Haible  <bruno@clisp.org>
34404
34405         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34406         (Unicode string functions): Add unilbrk/*.
34407         Reported by Karl Berry.
34408
34409 2008-05-15  Eric Blake  <ebb9@byu.net>
34410
34411         Fix violation of <stdbool.h> replacement in regex.
34412         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34413         * lib/regexec.c (re_search_internal): Likewise.
34414         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34415
34416 2008-05-15  Jim Meyering  <meyering@redhat.com>
34417
34418         avoid distracting test output when git or cvs is not found
34419         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34420         * tests/test-vc-list-files-git.sh: Likewise.
34421
34422 2008-05-15  Eric Blake  <ebb9@byu.net>
34423
34424         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34425         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34426         glibc version.
34427         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34428         * doc/posix-functions/strstr.texi (strstr): Likewise.
34429         * lib/str-two-way.h (MAX): Sychronize with glibc.
34430
34431 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34432
34433         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34434         opr.ctx_type.
34435         (calc_first): Initialize constraint field.
34436         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34437         Fix grammar.
34438         (duplicate_node): Merge constraint field for all node types.
34439         (calc_eclosure_iter): Look at constraint field for all node types.
34440         * lib/regex_internal.c (create_cd_newstate): Don't look at
34441         opr.ctx_type.
34442
34443 2008-05-14  Bruno Haible  <bruno@clisp.org>
34444
34445         Help GCC to do better code generation.
34446         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34447         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34448         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34449         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34450         Declare with attribute 'malloc' if supported.
34451
34452 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34453
34454         use "echo STR|wc -c" rather than unportable "expr length STR"
34455         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34456         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34457
34458 2008-05-14  Jim Meyering  <meyering@redhat.com>
34459
34460         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34461         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34462         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34463         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34464         via Collin Lasse.
34465
34466 2008-05-14  Eric Blake  <ebb9@byu.net>
34467
34468         Avoid quadratic growth in gl_LIBSOURCES.
34469         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34470         Suggested by Bruno Haible.
34471
34472         Test xmemdup0.
34473         * modules/xmemdup0-tests: New file.
34474         * tests/test-xmemdup0.c: Likewise.
34475
34476 2008-05-13  Eric Blake  <ebb9@byu.net>
34477
34478         Split xmemdup0 into its own module.
34479         * modules/xmemdup0: New file.
34480         * lib/xmemdup0.h: Likewise.
34481         * lib/xmemdup0.c: Likewise.
34482         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34483         * lib/xalloc.h (xmemdup0): Remove.
34484         * lib/xmalloc.c (xmemdup0): Likewise.
34485
34486 2008-05-13  Eric Blake  <ebb9@byu.net>
34487             Bruno Haible  <bruno@clisp.org>
34488
34489         Reduce number of forks required during autoconf.
34490         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34491         and gl_LIBSOURCES_DIR.
34492         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34493         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34494         m4_syscmd per file.
34495         <m4_foreach_w>: Move...
34496         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34497
34498 2008-05-13  Eric Blake  <ebb9@byu.net>
34499
34500         * gnulib-tool: Fix various comment typos.
34501
34502 2008-05-12  Bruno Haible  <bruno@clisp.org>
34503
34504         Tailor the linebreaking algorithm.
34505         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34506
34507 2008-05-12  Bruno Haible  <bruno@clisp.org>
34508
34509         Update to Unicode 5.0.0.
34510         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34511         LBP_JV, LBP_JT. Redistribute values.
34512         (unilbrk_table): Change size.
34513         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34514         Unicode TR#14 rev. 22.
34515         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34516         LBP_JV, LBP_JT. Redistribute values.
34517         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34518         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34519         Update.
34520         * lib/unilbrk/lbrkprop1.h: Regenerated.
34521         * lib/unilbrk/lbrkprop2.h: Regenerated.
34522         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34523         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34524         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34525         Likewise.
34526         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34527         Likewise.
34528         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34529         result.
34530         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34531         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34532         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34533         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34534         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34535         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34536
34537 2008-05-11  Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34540
34541 2008-05-11  Bruno Haible  <bruno@clisp.org>
34542
34543         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34544         * modules/unilbrk/gen-lbrk: New file.
34545
34546 2008-05-11  Bruno Haible  <bruno@clisp.org>
34547
34548         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34549         * m4/sha512.m4 (gl_SHA512): Likewise.
34550
34551 2008-05-11  Jim Meyering  <meyering@redhat.com>
34552
34553         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34554         * modules/crypto/sha256: New file.
34555         * modules/crypto/sha512: Likewise.
34556         * lib/sha256.c: Likewise.
34557         * lib/sha256.h: Likewise.
34558         * lib/sha512.c: Likewise.
34559         * lib/sha512.h: Likewise.
34560         * lib/u64.h: Likewise.
34561         * m4/sha256.m4: Likewise.
34562         * m4/sha512.m4: Likewise.
34563         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34564
34565 2008-05-10  Bruno Haible  <bruno@clisp.org>
34566
34567         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34568         (Input/Output <stdio.h>): Add xprintf.
34569         (Signal handling <signal.h>): Add strsignal.
34570         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34571         (Core language properties): Add func.
34572         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34573         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34574         strings.
34575         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34576         (Input/output): New section.
34577         (File system functions): Add openat-die, stat-macros.
34578         (Networking functions): Add sockets.
34579         (Unicode string functions): Add unictype/*.
34580         (Support for building libraries and executables): Add gperf.
34581         (Support for building documentation): Add agpl-3.0.
34582         (Misc): Add nocrash.
34583
34584 2008-05-10  Bruno Haible  <bruno@clisp.org>
34585
34586         * modules/unictype/gen-ctype: New file.
34587
34588 2008-05-10  Jim Meyering  <meyering@redhat.com>
34589
34590         Make chdir-safer.c more efficient on a system with no symlinks.
34591         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34592         also if ELOOP is zero.  Suggested by Bruno Haible.
34593
34594         Make chdir-safer.c slightly safer.
34595         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34596         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34597
34598         Avoid compile failure on systems without ELOOP (like mingw).
34599         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34600         Reported by Bruno Haible.
34601
34602 2008-05-10  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34605         (is_utf8_encoding): Use a case-insensitive comparison.
34606         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34607         streq.
34608
34609 2008-05-10  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34612         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34613         * lib/unilbrk/ulc-common.h (iconv_string_length,
34614         iconv_string_keeping_offsets): Remove declarations.
34615         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34616         Don't include <iconv.h>, streq.h, xsize.h.
34617         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34618         conversion.
34619         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34620         <iconv.h>, streq.h, xsize.h.
34621         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34622         conversion.
34623         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34624         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34625         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34626         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34627
34628 2008-05-10  Bruno Haible  <bruno@clisp.org>
34629
34630         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34631         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34632
34633         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34634         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34635
34636         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34637         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34638
34639         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34640         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34641
34642         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34643         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34644
34645         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34646         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34647
34648         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34649         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34650
34651         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34652         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34653
34654 2008-05-10  Bruno Haible  <bruno@clisp.org>
34655
34656         Split up 'linebreak' module.
34657         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34658         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34659         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34660         modifications.
34661         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34662         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34663         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34664         lib/linebreak.c.
34665         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34666         lib/linebreak.c.
34667         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34668         lib/linebreak.c.
34669         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34670         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34671         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34672         lib/linebreak.c.
34673         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34674         lib/linebreak.c.
34675         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34676         lib/linebreak.c.
34677         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34678         lib/linebreak.c.
34679         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34680         lib/linebreak.c.
34681         * modules/unilbrk/base: New file.
34682         * modules/unilbrk/tables: New file.
34683         * modules/unilbrk/u8-possible-linebreaks: New file.
34684         * modules/unilbrk/u16-possible-linebreaks: New file.
34685         * modules/unilbrk/u32-possible-linebreaks: New file.
34686         * modules/unilbrk/ulc-common: New file.
34687         * modules/unilbrk/ulc-possible-linebreaks: New file.
34688         * modules/unilbrk/u8-width-linebreaks: New file.
34689         * modules/unilbrk/u16-width-linebreaks: New file.
34690         * modules/unilbrk/u32-width-linebreaks: New file.
34691         * modules/unilbrk/ulc-width-linebreaks: New file.
34692         * lib/linebreak.h: Remove file.
34693         * lib/linebreak.c: Remove file.
34694         * m4/linebreak.m4: Remove file.
34695         * modules/linebreak: Remove file.
34696         * NEWS: Mention the changes.
34697
34698 2008-05-09  Eric Blake  <ebb9@byu.net>
34699
34700         Add xmemdup0.
34701         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34702         implementation.
34703         * lib/xmalloc.c (xmemdup0): New C implementation.
34704
34705 2008-05-08  Bruno Haible  <bruno@clisp.org>
34706
34707         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34708
34709 2008-05-07  Eric Blake  <ebb9@byu.net>
34710
34711         Support cross-compilation of <wctype.h>.
34712         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34713         AC_CACHE_CHECK.
34714
34715 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34716
34717         * build-aux/vc-list-files: Add support for bzr.
34718
34719 2008-05-03  Jim Meyering  <meyering@redhat.com>
34720
34721         avoid failed assertion with tight malloc
34722         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34723
34724 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34725
34726         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34727         are needed from arpa/inet.h.
34728         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34729         Reported by Bruno Haible.
34730
34731 2008-05-02  Jim Meyering  <meyering@redhat.com>
34732
34733         avoid compilation error on FreeBSD 6
34734         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34735
34736 2008-05-01  Jim Meyering  <meyering@redhat.com>
34737
34738         useless-if-before-free: correct --help's exit status description
34739         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34740         for one or more matches, etc.  Reported by Bruno Haible.
34741
34742         vc-list-files: make the stand-alone gnulib test work
34743         * modules/vc-list-files-tests (configure.ac):
34744         Define and AC_SUBST abs_aux_dir.
34745         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34746         $(abs_top_srcdir) to each script and having each of them
34747         duplicate the work of setting PATH, set PATH here, using
34748         the new variable, abs_aux_dir instead.
34749         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34750         * tests/test-vc-list-files-git.sh: Likewise.
34751         Reported by Bruno Haible.
34752
34753 2008-05-01  Bruno Haible  <bruno@clisp.org>
34754
34755         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34756         reallocation. Rename 'done' to 'found_delimiter'.
34757
34758 2008-05-01  Jim Meyering  <meyering@redhat.com>
34759
34760         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34761         * build-aux/vc-list-files: Use `...`, not $(...).
34762
34763 2008-04-30  Jim Meyering  <meyering@redhat.com>
34764
34765         add tests for vc-list-files
34766         * modules/vc-list-files-tests: New module.
34767         * tests/test-vc-list-files-cvs.sh: New file.
34768         * tests/test-vc-list-files-git.sh: New file.
34769
34770         avoid a warning from gcc
34771         * lib/getndelim2.c (IF_LINT): Define.
34772         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34773
34774         vc-list-files: work properly with build-aux/cvsu, too
34775         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34776         to all cvs-based clauses.
34777
34778         vc-list-files: work properly in the CVS+awk case, too
34779         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34780
34781         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34782         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34783         take more than one file argument, so .  Add quotes, just in case $dir
34784         ever contains a shell meta-character.  Prompted by Soren Hansen in
34785         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34786
34787 2008-04-29  Eric Blake  <ebb9@byu.net>
34788
34789         Optimize getndelim2 to use block operations when possible.
34790         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34791         freadseek, and memchr2.
34792         * lib/getndelim2.c (getndelim2): Use them for block reads.
34793
34794 2008-04-29  Bruno Haible  <bruno@clisp.org>
34795
34796         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34797         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34798         * modules/inet_ntop (Depends-on): Add extensions.
34799         * modules/inet_pton (Depends-on): Likewise.
34800         Reported by Simon Josefsson.
34801
34802 2008-04-29  Jim Meyering  <meyering@redhat.com>
34803
34804         When the is more than one match in a block, match all of them.
34805         * build-aux/useless-if-before-free: Iterate through each block
34806         until there are no more matches.
34807
34808         Fix broken useless-if-before-free script.
34809         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34810         the expression to match cast of argument to free-like function.
34811
34812 2008-04-29  Eric Blake  <ebb9@byu.net>
34813
34814         Use new header.
34815         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34816
34817 2008-04-29  Jim Meyering  <meyering@redhat.com>
34818
34819         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34820         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34821         by gnulib to exist and to declare e.g., inet_ntop.
34822         Don't include "inet_ntop.h", now removed.
34823
34824         * m4/arpa_inet_h.m4: Remove trailing blanks.
34825
34826 2008-04-29  Eric Blake  <ebb9@byu.net>
34827
34828         Silence valgrind on safe reads beyond potential array bounds.
34829         * lib/rawmemchr.valgrind: New file.
34830         * lib/strchrnul.valgrind: Likewise.
34831         * modules/rawmemchr (Files): Distribute new file.
34832         * modules/strchrnul (Files): Likewise.
34833         Suggested by Bruno Haible.
34834
34835 2008-04-29  Bruno Haible  <bruno@clisp.org>
34836
34837         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34838         (inet_ntop, inet_pton): Change portability warning's wording.
34839         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34840         Invoke gl_CHECK_NEXT_HEADERS.
34841         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34842         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34843         set ARPA_INET_H.
34844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34845         * modules/arpa_inet (Description): No longer only for systems that
34846         lack it.
34847         (Depends-on): Add include_next.
34848         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34849         HAVE_ARPA_INET_H.
34850
34851 2008-04-29  Jim Meyering  <meyering@redhat.com>
34852
34853         * modules/mkdir (License): Re-license as LGPLv2+.
34854
34855 2008-04-29  Bruno Haible  <bruno@clisp.org>
34856
34857         * modules/rawmemchr (Maintainer): Set to Eric.
34858         * modules/strchrnul (Maintainer): Likewise.
34859
34860 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34861
34862         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34863         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34864
34865         * modules/arpa_inet (arpa/inet.h): Use them.
34866
34867 2008-04-28  Eric Blake  <ebb9@byu.net>
34868
34869         Test getndelim2.
34870         * modules/getndelim2-tests: New file.
34871         * tests/test-getndelim2.c: Likewise.
34872         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34873         stream.
34874         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34875
34876         * MODULES.html.sh: Document new module.
34877
34878 2008-04-20  Bruno Haible  <bruno@clisp.org>
34879
34880         * lib/c-stack.c (die): Use raise.
34881         * modules/c-stack (Depends-on): Add raise.
34882
34883 2008-04-28  Bruno Haible  <bruno@clisp.org>
34884
34885         Expect rpmatch to be declared.
34886         * lib/yesno.c (rpmatch): Remove declaration.
34887
34888         Declare rpmatch.
34889         * lib/stdlib.in.h (rpmatch): New declaration.
34890         * lib/rpmatch.c: Include <stdlib.h> first.
34891         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34892         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34894         HAVE_RPMATCH.
34895         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34897         (Include): Set to <stdlib.h>.
34898         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34899         HAVE_RPMATCH.
34900         * NEWS: Document the change.
34901
34902 2008-04-28  Bruno Haible  <bruno@clisp.org>
34903
34904         Change rpmatch to use nl_langinfo when appropriate.
34905         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34906         (N_): New macro.
34907         (localized_pattern): New function/macro.
34908         (try): Remove match, nomatch arguments. Copy the pattern into safe
34909         memory before caching it.
34910         (rpmatch): Use localized_pattern. Add translator comments.
34911         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34912         Suggested by Eric Blake.
34913         * modules/rpmatch (Depends-on): Add stdbool.
34914
34915 2008-04-28  Eric Blake  <ebb9@byu.net>
34916
34917         Add rawmemchr module, matching glibc.
34918         * modules/string (Makefile.am): New indicator.
34919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34920         * lib/string.in.h (rawmemchr): Declare when appropriate.
34921         * modules/rawmemchr: New file.
34922         * m4/rawmemchr.m4: Likewise.
34923         * lib/rawmemchr.c: Likewise.
34924         * modules/rawmemchr-tests: Likewise.
34925         * tests/test-rawmemchr.c: Likewise.
34926         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34927         module.
34928         * modules/strchrnul (Depends-on): Add rawmemchr.
34929         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34930
34931         Whitespace cleanup.
34932         * tests/test-strchrnul.c: Reindent.
34933         * lib/strchrnul.c: Likewise.
34934
34935         Optimize and test strchrnul.
34936         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34937         * modules/strchrnul-tests: New file.
34938         * tests/test-strchrnul.c: Likewise.
34939
34940         Remove intprops dependency.
34941         * modules/memchr (Depends-on): Remove intprops.
34942         * modules/memrchr (Depends-on): Likewise.
34943         * modules/memchr2 (Depends-on): Likewise.
34944         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34945         * lib/memrchr.c (__memrchr): Likewise.
34946         * lib/memrchr2.c (memchr2): Likewise.
34947         Reported by Simon Josefsson.
34948
34949 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34950
34951         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34952         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34953
34954 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34955
34956         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34957
34958         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34959
34960         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34961
34962         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34963         declarations.
34964         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34965
34966         * m4/inet_pton.m4: Don't check for header files.
34967
34968         * m4/inet_ntop.m4: Don't check for header files.
34969
34970 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34971
34972         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34973         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34974         trigger for cygwin).
34975         Reported by Bruno Haible  <bruno@clisp.org>.
34976
34977 2008-04-28  Bruno Haible  <bruno@clisp.org>
34978
34979         * doc/posix-functions/strdup.texi: Mention mingw problem.
34980
34981 2008-04-27  Bruno Haible  <bruno@clisp.org>
34982
34983         * modules/stat-time-tests (Depends-on): Add sleep.
34984         * tests/test-stat-time.c (force_unlink): New function.
34985         (cleanup): Use it.
34986         (test_mtime): Remove the ctime related tests.
34987         (test_ctime): New function, containing the ctime related tests.
34988         (main): Call test_ctime, except on native Windows platforms.
34989
34990 2008-04-27  Bruno Haible  <bruno@clisp.org>
34991
34992         * lib/rpmatch.c (rpmatch): Add some comments.
34993         Reported by James Youngman <jay@gnu.org>.
34994
34995 2008-04-27  Bruno Haible  <bruno@clisp.org>
34996
34997         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34998         quiet NaNs.
34999
35000 2008-04-27  Bruno Haible  <bruno@clisp.org>
35001
35002         Make test-yesno.sh work on mingw.
35003         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
35004         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
35005         (main): Set stdin to binary mode.
35006         * modules/yesno-tests (Depends-on): Add binary-io.
35007
35008 2008-04-27  Bruno Haible  <bruno@clisp.org>
35009
35010         Fix 'isfinite' on x86, x86_64, ia64 platforms.
35011         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
35012         argument that lie outside the IEEE 854 domain.
35013         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
35014         (gl_ISFINITE): Use it.
35015         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
35016
35017 2008-04-27  Bruno Haible  <bruno@clisp.org>
35018
35019         Allow local renaming in config.h.
35020         * lib/memrchr.c (memrchr): Don't undefine outside libc.
35021
35022 2008-04-27  Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/memchr.c (__memchr): Change type of 'i'.
35025         * lib/memchr2.c (memchr2): Likewise.
35026
35027 2008-04-26  Eric Blake  <ebb9@byu.net>
35028         and Bruno Haible  <bruno@clisp.org>
35029
35030         Optimize and test memrchr.
35031         * modules/memrchr (Depends-on): Add intprops.
35032         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
35033         * modules/memrchr-tests: New file.
35034         * tests/test-memrchr.c: New file.
35035
35036 2008-04-26  Bruno Haible  <bruno@clisp.org>
35037
35038         Add tentative support for DragonFly BSD.
35039         * lib/stdio-impl.h: Add macros for DragonFly BSD.
35040         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
35041         fp.
35042         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35043         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
35044         * lib/fpurge.c (fpurge): Likewise.
35045         * lib/freadable.c (freaadable): Likewise.
35046         * lib/freadahead.c (freadahead): Likewise.
35047         * lib/freading.c (freading): Likewise.
35048         * lib/freadptr.c (freadptr): Likewise.
35049         * lib/freadseek.c (freadptrinc): Likewise.
35050         * lib/fseeko.c (fseeko): Likewise.
35051         * lib/fseterr.c (fseterr): Likewise.
35052         * lib/fwritable.c (fwritable): Likewise.
35053         * lib/fwriting.c (fwriting): Likewise.
35054
35055 2008-04-26  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/stdio-impl.h: New file.
35058         * lib/fbufmode.c: Include stdio-impl.h.
35059         (fbufmode): Use fp_, remove redundant #defines.
35060         * lib/fflush.c: Include stdio-impl.h.
35061         (clear_ungetc_buffer): Remove redundant #defines.
35062         * lib/fpurge.c: Include stdio-impl.h.
35063         (fpurge): Remove redundant #defines.
35064         * lib/freadable.c: Include stdio-impl.h.
35065         (freadable): Remove redundant #defines.
35066         * lib/freadahead.c: Include stdio-impl.h.
35067         (freadahead): Remove redundant #defines.
35068         * lib/freading.c: Include stdio-impl.h.
35069         (freading): Remove redundant #defines.
35070         * lib/freadptr.c: Include stdio-impl.h.
35071         (freadptr): Remove redundant #defines.
35072         * lib/freadseek.c: Include stdio-impl.h.
35073         (freadptrinc): Remove redundant #defines.
35074         * lib/fseeko.c: Include stdio-impl.h.
35075         (rpl_fseeko): Remove redundant #defines.
35076         * lib/fseterr.c: Include stdio-impl.h.
35077         (fseterr): Remove redundant #defines.
35078         * lib/fwritable.c: Include stdio-impl.h.
35079         (fwritable: Remove redundant #defines.
35080         * lib/fwriting.c: Include stdio-impl.h.
35081         (fwriting): Remove redundant #defines.
35082         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35083         * modules/fflush (Files): Likewise.
35084         * modules/fpurge (Files): Likewise.
35085         * modules/freadable (Files): Likewise.
35086         * modules/freadahead (Files): Likewise.
35087         * modules/freading (Files): Likewise.
35088         * modules/freadptr (Files): Likewise.
35089         * modules/freadseek (Files): Likewise.
35090         * modules/fseeko (Files): Likewise.
35091         * modules/fseterr (Files): Likewise.
35092         * modules/fwritable (Files): Likewise.
35093         * modules/fwriting (Files): Likewise.
35094
35095 2008-04-26  Bruno Haible  <bruno@clisp.org>
35096
35097         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35098         restore_seek_optimization, update_fpos_cache): New functions, extracted
35099         from rpl_fflush.
35100         (rpl_fflush): Use them.
35101         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35102         (gl_REPLACE_FFLUSH): Use it.
35103
35104 2008-04-26  Bruno Haible  <bruno@clisp.org>
35105
35106         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35107         on Solaris.
35108         * tests/test-xstrtoimax.sh: Likewise.
35109         * tests/test-xstrtoumax.sh: Likewise.
35110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35111
35112 2008-04-26  Bruno Haible  <bruno@clisp.org>
35113
35114         * modules/memchr-tests: New file.
35115         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35116
35117 2008-04-26  Eric Blake  <ebb9@byu.net>
35118             Bruno Haible  <bruno@clisp.org>
35119
35120         * lib/memchr.c: Include intprops.h.
35121         (__memchr): Optimize parallel detection of matching bytes. Rename local
35122         variables. Add explanatory comments.
35123
35124 2008-04-26  Bruno Haible  <bruno@clisp.org>
35125
35126         Fix module 'memchr', broken since 2000-10-28.
35127         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35128
35129 2008-04-26  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
35132         comments.
35133
35134 2008-04-25  Eric Blake  <ebb9@byu.net>
35135
35136         Use native fstatat on cygwin 1.7.0.
35137         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
35138         first.
35139
35140 2008-04-23  Eric Blake  <ebb9@byu.net>
35141
35142         Improve memchr2 performance.
35143         * lib/memchr2.c (memchr2): Further optimize parallel detection of
35144         NUL bytes.
35145         * modules/memchr2 (Depends-on): Use intprops.h.
35146
35147 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35148
35149         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
35150         an inline function instead of a CPP macro.  Patch by Ben Pfaff
35151         <blp@cs.stanford.edu>.
35152
35153 2008-04-23  Simon Josefsson  <simon@josefsson.org>
35154
35155         * lib/arpa_inet.in.h: New file.
35156
35157         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
35158         (Makefile.am): Sed in substitute header file.
35159
35160         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
35161         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
35162
35163         * modules/inet_ntop (configure.ac): Use
35164         gl_ARPA_INET_MODULE_INDICATOR.
35165
35166         * modules/inet_pton (configure.ac): Use
35167         gl_ARPA_INET_MODULE_INDICATOR.
35168
35169 2008-04-22  Jim Meyering  <meyering@redhat.com>
35170
35171         * modules/verify (License): Re-license as LGPLv2+.
35172
35173 2008-04-22  Simon Josefsson  <simon@josefsson.org>
35174
35175         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
35176         parameter to void* as per POSIX standard (MinGW uses char*).
35177
35178 2008-04-21  Bruno Haible  <bruno@clisp.org>
35179
35180         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35181         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35182         Define to replacements if REPLACE_ISWCNTRL is 1.
35183         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
35184         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
35185         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
35186         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
35187         what it fixes.
35188         * doc/posix-functions/iswalpha.texi: Likewise.
35189         * doc/posix-functions/iswblank.texi: Likewise.
35190         * doc/posix-functions/iswcntrl.texi: Likewise.
35191         * doc/posix-functions/iswdigit.texi: Likewise.
35192         * doc/posix-functions/iswgraph.texi: Likewise.
35193         * doc/posix-functions/iswlower.texi: Likewise.
35194         * doc/posix-functions/iswprint.texi: Likewise.
35195         * doc/posix-functions/iswpunct.texi: Likewise.
35196         * doc/posix-functions/iswspace.texi: Likewise.
35197         * doc/posix-functions/iswupper.texi: Likewise.
35198         * doc/posix-functions/iswxdigit.texi: Likewise.
35199         Reported by Alain Guibert.
35200
35201 2008-04-21  Bruno Haible  <bruno@clisp.org>
35202
35203         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
35204         Patch by Alain Guibert.
35205
35206 2008-04-21  Bruno Haible  <bruno@clisp.org>
35207
35208         Fix test failures on mingw.
35209         * tests/test-xstrtol.c (print_no_progname): New function.
35210         (main): Install it in error_print_progname hook.
35211         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
35212         * tests/test-xstrtoimax.sh: Likewise.
35213         * tests/test-xstrtoumax.sh: Likewise.
35214
35215 2008-04-21  Bruno Haible  <bruno@clisp.org>
35216
35217         Fix test failure on mingw.
35218         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
35219
35220 2008-04-21  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
35223         Actually assign a value.
35224
35225 2008-04-20  Bruno Haible  <bruno@clisp.org>
35226
35227         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
35228         take 2.
35229         * lib/canonicalize.c (canonicalize_file_name): Elide if the
35230         'canonicalize-lgpl' module is also used.
35231         * lib/canonicalize-lgpl.c: Undo last change.
35232         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
35233
35234 2008-04-20  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
35237         config.h. Provide _mkdir based fallback for mingw.
35238         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
35239         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
35240         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
35241         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
35242         rather than defining mkdir in config.h.
35243         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
35244         (gl_SYS_STAT_H_DEFAULTS): New macro.
35245         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
35246         HAVE_IO_H any more.
35247         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
35248         HAVE_DECL_MKDIR and HAVE_IO_H.
35249
35250 2008-04-20  Bruno Haible  <bruno@clisp.org>
35251
35252         * lib/isapipe.c: Port to native Windows platforms.
35253
35254 2008-04-20  Bruno Haible  <bruno@clisp.org>
35255
35256         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35257
35258 2008-04-21  Eric Blake  <ebb9@byu.net>
35259
35260         Work around preprocessors that don't handle UINTMAX_MAX.
35261         * lib/memchr2.c (memchr2): Avoid embedded #if.
35262         Reported by Alain Guibert, fix suggested by Bruno Haible.
35263
35264 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35265
35266         * doc/posix-functions/strftime.texi (strftime): Explain better
35267         Windows incompatibility.  Suggested by Micah Cowan
35268         <micah@cowan.name>.
35269
35270 2008-04-20  Bruno Haible  <bruno@clisp.org>
35271
35272         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35273         unistr/u8-mblen.
35274
35275 2008-04-20  Bruno Haible  <bruno@clisp.org>
35276
35277         Fix test failure on platforms with non-GNU iconv.
35278         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35279         (U_TO_U8): Use it, rather than u16_to_u8.
35280         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35281         units at the end of the input string.
35282         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35283
35284 2008-04-20  Bruno Haible  <bruno@clisp.org>
35285
35286         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35287         when the resulting length is 0.
35288         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35289
35290 2008-04-20  Bruno Haible  <bruno@clisp.org>
35291
35292         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35293         works.
35294         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35295
35296 2008-04-20  Bruno Haible  <bruno@clisp.org>
35297
35298         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35299         * modules/tsearch-tests (configure.ac): Test for initstate function.
35300
35301 2008-04-20  Bruno Haible  <bruno@clisp.org>
35302
35303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35304         for nlink_t if missing.
35305         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35306
35307 2008-04-19  Bruno Haible  <bruno@clisp.org>
35308
35309         Work around snprintf bug on Linux libc5.
35310         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35312         gl_SNPRINTF_SIZE1.
35313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35314         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35315         that test failed.
35316         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35317         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35318         * modules/snprintf (Files): Add m4/printf.m4.
35319         * modules/vsnprintf (Files): Likewise.
35320         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35321         * doc/posix-functions/vsnprintf.texi: Likewise.
35322
35323 2008-04-19  Bruno Haible  <bruno@clisp.org>
35324
35325         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35326         from 0.0058 to less than 10^-7.
35327
35328 2008-04-19  Bruno Haible  <bruno@clisp.org>
35329
35330         Fix rounding when a precision is given.
35331         * lib/vasnprintf.c (is_borderline): New function.
35332         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35333         9...9x.
35334         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35335         %e, %g.
35336         * tests/test-vasprintf-posix.c (test_function): Likewise.
35337         * tests/test-snprintf-posix.h (test_function): Likewise.
35338         * tests/test-sprintf-posix.h (test_function): Likewise.
35339         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35340         * tests/test-printf-posix.h (test_function): Likewise.
35341         * tests/test-printf-posix.output: Update.
35342         Reported by John Darrington <john@darrington.wattle.id.au> via
35343         Ben Pfaff <blp@cs.stanford.edu>.
35344
35345 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35346
35347         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35348         Suggested by Bruno Haible <bruno@clisp.org>.
35349
35350 2008-04-17  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35353         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35354         implementation.
35355         Patch by Bruce Merry <bmerry@gmail.com>.
35356
35357 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35358
35359         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35360         doesn't work under Windows.
35361
35362 2008-04-16  Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35365         New macros.
35366         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35367         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35368         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35369         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35370         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35371         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35372         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35373         macros.
35374         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35375         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35376         Northern Sotho, Uighur.
35377
35378 2008-04-16  Bruno Haible  <bruno@clisp.org>
35379
35380         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35381         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35382         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35383         Reported by Daniel Bergström <daniel@octocode.com>.
35384
35385 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35386             Bruno Haible  <bruno@clisp.org>
35387
35388         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35389         function.
35390         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35391         New functions, mostly extracted from gl_locale_name_default.
35392         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35393
35394 2008-04-16  Eric Blake  <ebb9@byu.net>
35395
35396         Adjust strtod detection to catch glibc 2.7 bug.
35397         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35398         Reported by John Gatewood Ham.
35399
35400 2008-04-16  Bruno Haible  <bruno@clisp.org>
35401
35402         Add tentative support for Linux libc5.
35403         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35404         * lib/fpurge.c (fpurge): Likewise.
35405         * lib/freadable.c (freadable): Likewise.
35406         * lib/freadahead.c (freadahead): Likewise.
35407         * lib/freading.c (freading): Likewise.
35408         * lib/freadptr.c (freadptr): Likewise.
35409         * lib/freadseek.c (freadptrinc): Likewise.
35410         * lib/fseeko.c (rpl_fseeko): Likewise.
35411         * lib/fseterr.c (fseterr): Likewise.
35412         * lib/fwritable.c (fwritable): Likewise.
35413         * lib/fwriting.c (fwriting): Likewise.
35414         Reported by Alain Guibert <alguibert+bts@free.fr>.
35415
35416 2008-04-15  Bruno Haible  <bruno@clisp.org>
35417
35418         * modules/mathl (configure.ac): Define module indicator.
35419
35420 2008-04-15  Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/logl.c (logl): Remove unused variables.
35423
35424 2008-04-15  Bruno Haible  <bruno@clisp.org>
35425
35426         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35427         fails.
35428
35429 2008-04-15  Bruno Haible  <bruno@clisp.org>
35430
35431         * lib/trim.c (trim2): Fix argument of isspace() macro.
35432
35433 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35434
35435         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35436         to 0.
35437         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35438
35439 2008-04-14  Bruno Haible  <bruno@clisp.org>
35440
35441         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35442         AC_LANG_PROGRAM argument.
35443         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35444         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35447         * m4/math_h.m4 (gl_MATH_H): Likewise.
35448         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35449         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35450         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35451         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35452         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35453         * m4/regex.m4 (gl_REGEX): Likewise.
35454         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35455         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35457         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35458         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35459         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35462
35463 2008-04-14  Jim Meyering  <meyering@redhat.com>
35464
35465         test-strtod: fix typos: s/abs/fabs/
35466         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35467
35468 2008-04-13  Bruno Haible  <bruno@clisp.org>
35469
35470         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35471         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35472         module is also used and while not building the reloc-wrapper.
35473
35474 2008-04-13  Bruno Haible  <bruno@clisp.org>
35475
35476         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35477
35478 2008-04-13  Bruno Haible  <bruno@clisp.org>
35479
35480         Fix AIX compilation failure introduced on 2008-04-02.
35481         * tests/test-frexp.c (exp): Undefine before redefining.
35482         * tests/test-frexpl.c (exp): Likewise.
35483
35484 2008-04-13  Bruno Haible  <bruno@clisp.org>
35485
35486         Work around a HP-UX stdio bug.
35487         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35488         * tests/test-ftello.c (main): Likewise.
35489         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35490         * doc/posix-functions/ftello.texi: Likewise.
35491
35492 2008-04-13  Bruno Haible  <bruno@clisp.org>
35493
35494         Make test-signbit pass on HP-UX/hppa.
35495         * tests/test-signbit.c (minus_zerol): New variable.
35496         (test_signbitl): Use it.
35497
35498 2008-04-13  Bruno Haible  <bruno@clisp.org>
35499
35500         Make truncl work on OSF/1 4.0.
35501         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35502         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35503         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35505         HAVE_DECL_TRUNCL.
35506         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35507         HAVE_DECL_TRUNCL.
35508         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35509
35510 2008-04-13  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35513
35514 2008-04-13  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35517         expression, so as to avoid HP-UX 11 cc compiler bug.
35518
35519 2008-04-13  Bruno Haible  <bruno@clisp.org>
35520
35521         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35522
35523 2008-04-13  Bruno Haible  <bruno@clisp.org>
35524
35525         * lib/git-merge-changelog.c: Remove empty declaration outside of
35526         functions.
35527
35528 2008-04-13  Bruno Haible  <bruno@clisp.org>
35529
35530         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35531
35532 2008-04-13  Bruno Haible  <bruno@clisp.org>
35533
35534         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35535         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35536         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35537         also if it exists but lacks definitions of the SHUT_* macros.
35538         * modules/sys_socket (Description): Update.
35539         Reported by Elbert Pol <e.pol@chello.nl>.
35540
35541 2008-04-13  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/localcharset.c (OS2): Don't redefine if already defined.
35544         Reported by Elbert Pol <e.pol@chello.nl>.
35545
35546 2008-04-13  Bruno Haible  <bruno@clisp.org>
35547
35548         * lib/binary-io.h [__EMX__]: Include <io.h>.
35549         Reported by Elbert Pol <e.pol@chello.nl>.
35550
35551 2008-04-12  Bruno Haible  <bruno@clisp.org>
35552
35553         * lib/fpucw.h: Enable the definitions also for x86_64.
35554         Needed for NetBSD/x86_64.
35555         Reported by Thomas Klausner <tk@giga.or.at>.
35556
35557 2008-04-12  Bruno Haible  <bruno@clisp.org>
35558
35559         * tests/test-strtod.c: Include isnand.h.
35560         (main): Use isnand instead of isnan.
35561         Reported by Jim Meyering.
35562
35563 2008-04-12  Bruno Haible  <bruno@clisp.org>
35564
35565         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35566         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35567
35568 2008-04-12  Jim Meyering  <meyering@redhat.com>
35569
35570         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35571
35572 2008-04-12  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35575         Reported by Elbert Pol <e.pol@chello.nl>.
35576
35577 2008-04-12  Eric Blake  <ebb9@byu.net>
35578
35579         Work around Solaris 10 math.h bug.
35580         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35581         (gl_MATH_H_DEFAULTS): Set up default.
35582         * modules/math (Makefile.am): Replace new indicators.
35583         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35584         * tests/test-math.c (main): Test this.
35585         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35586         * doc/posix-headers/math.texi (math.h): Mention bug.
35587         Reported by Nelson H. F. Beebe and Jim Meyering.
35588
35589 2008-04-11  Bruno Haible  <bruno@clisp.org>
35590
35591         Adapt to future versions of Apple GCC.
35592         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35593         Reported by Peter O'Gorman <peter@pogma.com>.
35594
35595 2008-04-11  Bruno Haible  <bruno@clisp.org>
35596
35597         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35598
35599 2008-04-11  Bruno Haible  <bruno@clisp.org>
35600
35601         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35602
35603         * modules/getaddrinfo-tests (Makefile.am): Define
35604         test_getaddrinfo_LDADD.
35605
35606 2008-04-11  Bruno Haible  <bruno@clisp.org>
35607
35608         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35609         (init): Fix syntax error.
35610         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35611         is declared.
35612
35613 2008-04-11  Bruno Haible  <bruno@clisp.org>
35614
35615         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35616         * modules/glob (Depends-on): Add stdbool.
35617
35618 2008-04-11  Bruno Haible  <bruno@clisp.org>
35619
35620         * lib/trim.c: Include <string.h>.
35621
35622 2008-04-11  Eric Blake  <ebb9@byu.net>
35623
35624         Avoid compile failure on OS/2.
35625         * lib/regex_internal.h (internal_function): Disable optimization
35626         on OS/2 (__EMX__), where it caused compiler error.
35627         Reported by Elbert Pol.
35628
35629 2008-04-11  Bruno Haible  <bruno@clisp.org>
35630
35631         Flush the standard error stream before aborting. Needed on mingw.
35632         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35633         * tests/test-array_list.c (ASSERT): Likewise.
35634         * tests/test-array_oset.c (ASSERT): Likewise.
35635         * tests/test-avltree_list.c (ASSERT): Likewise.
35636         * tests/test-avltree_oset.c (ASSERT): Likewise.
35637         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35638         * tests/test-binary-io.c (ASSERT): Likewise.
35639         * tests/test-byteswap.c (ASSERT): Likewise.
35640         * tests/test-c-ctype.c (ASSERT): Likewise.
35641         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35642         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35643         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35644         * tests/test-c-strstr.c (ASSERT): Likewise.
35645         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35646         * tests/test-canonicalize.c (ASSERT): Likewise.
35647         * tests/test-carray_list.c (ASSERT): Likewise.
35648         * tests/test-ceilf1.c (ASSERT): Likewise.
35649         * tests/test-ceilf2.c (ASSERT): Likewise.
35650         * tests/test-ceill.c (ASSERT): Likewise.
35651         * tests/test-count-one-bits.c (ASSERT): Likewise.
35652         * tests/test-fbufmode.c (ASSERT): Likewise.
35653         * tests/test-fflush2.c (ASSERT): Likewise.
35654         * tests/test-floorf1.c (ASSERT): Likewise.
35655         * tests/test-floorf2.c (ASSERT): Likewise.
35656         * tests/test-floorl.c (ASSERT): Likewise.
35657         * tests/test-fopen.c (ASSERT): Likewise.
35658         * tests/test-fpending.c (ASSERT): Likewise.
35659         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35660         * tests/test-fpurge.c (ASSERT): Likewise.
35661         * tests/test-freadable.c (ASSERT): Likewise.
35662         * tests/test-freadahead.c (ASSERT): Likewise.
35663         * tests/test-freading.c (ASSERT): Likewise.
35664         * tests/test-freadptr.c (ASSERT): Likewise.
35665         * tests/test-freadptr2.c (ASSERT): Likewise.
35666         * tests/test-freadseek.c (ASSERT): Likewise.
35667         * tests/test-freopen.c (ASSERT): Likewise.
35668         * tests/test-frexp.c (ASSERT): Likewise.
35669         * tests/test-frexpl.c (ASSERT): Likewise.
35670         * tests/test-fseek.c (ASSERT): Likewise.
35671         * tests/test-fseeko.c (ASSERT): Likewise.
35672         * tests/test-fstrcmp.c (ASSERT): Likewise.
35673         * tests/test-ftell.c (ASSERT): Likewise.
35674         * tests/test-ftello.c (ASSERT): Likewise.
35675         * tests/test-func.c (ASSERT): Likewise.
35676         * tests/test-fwritable.c (ASSERT): Likewise.
35677         * tests/test-fwriting.c (ASSERT): Likewise.
35678         * tests/test-getdelim.c (ASSERT): Likewise.
35679         * tests/test-getline.c (ASSERT): Likewise.
35680         * tests/test-i-ring.c (ASSERT): Likewise.
35681         * tests/test-iconv-utf.c (ASSERT): Likewise.
35682         * tests/test-iconv.c (ASSERT): Likewise.
35683         * tests/test-isfinite.c (ASSERT): Likewise.
35684         * tests/test-isnand.c (ASSERT): Likewise.
35685         * tests/test-isnanf.c (ASSERT): Likewise.
35686         * tests/test-isnanl.h (ASSERT): Likewise.
35687         * tests/test-ldexpl.c (ASSERT): Likewise.
35688         * tests/test-linked_list.c (ASSERT): Likewise.
35689         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35690         * tests/test-localename.c (ASSERT): Likewise.
35691         * tests/test-lseek.c (ASSERT): Likewise.
35692         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35693         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35694         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35695         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35696         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35697         * tests/test-mbschr.c (ASSERT): Likewise.
35698         * tests/test-mbscspn.c (ASSERT): Likewise.
35699         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35700         * tests/test-mbspbrk.c (ASSERT): Likewise.
35701         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35702         * tests/test-mbsrchr.c (ASSERT): Likewise.
35703         * tests/test-mbsspn.c (ASSERT): Likewise.
35704         * tests/test-mbsstr1.c (ASSERT): Likewise.
35705         * tests/test-mbsstr2.c (ASSERT): Likewise.
35706         * tests/test-mbsstr3.c (ASSERT): Likewise.
35707         * tests/test-memchr2.c (ASSERT): Likewise.
35708         * tests/test-memmem.c (ASSERT): Likewise.
35709         * tests/test-open.c (ASSERT): Likewise.
35710         * tests/test-printf-frexp.c (ASSERT): Likewise.
35711         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35712         * tests/test-printf-posix.c (ASSERT): Likewise.
35713         * tests/test-quotearg.c (ASSERT): Likewise.
35714         * tests/test-rbtree_list.c (ASSERT): Likewise.
35715         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35716         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35717         * tests/test-round1.c (ASSERT): Likewise.
35718         * tests/test-roundf1.c (ASSERT): Likewise.
35719         * tests/test-roundl.c (ASSERT): Likewise.
35720         * tests/test-signbit.c (ASSERT): Likewise.
35721         * tests/test-sleep.c (ASSERT): Likewise.
35722         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35723         * tests/test-snprintf.c (ASSERT): Likewise.
35724         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35725         * tests/test-stat-time.c (ASSERT): Likewise.
35726         * tests/test-strcasestr.c (ASSERT): Likewise.
35727         * tests/test-strerror.c (ASSERT): Likewise.
35728         * tests/test-striconv.c (ASSERT): Likewise.
35729         * tests/test-striconveh.c (ASSERT): Likewise.
35730         * tests/test-striconveha.c (ASSERT): Likewise.
35731         * tests/test-strsignal.c (ASSERT): Likewise.
35732         * tests/test-strstr.c (ASSERT): Likewise.
35733         * tests/test-strtod.c (ASSERT): Likewise.
35734         * tests/test-trunc1.c (ASSERT): Likewise.
35735         * tests/test-trunc2.c (ASSERT): Likewise.
35736         * tests/test-truncf1.c (ASSERT): Likewise.
35737         * tests/test-truncf2.c (ASSERT): Likewise.
35738         * tests/test-truncl.c (ASSERT): Likewise.
35739         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35740         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35741         * tests/test-vasnprintf.c (ASSERT): Likewise.
35742         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35743         * tests/test-vasprintf.c (ASSERT): Likewise.
35744         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35745         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35746         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35747         * tests/test-vsnprintf.c (ASSERT): Likewise.
35748         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35749         * tests/test-wcwidth.c (ASSERT): Likewise.
35750         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35751         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35752         * tests/test-xvasprintf.c (ASSERT): Likewise.
35753         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35754         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35755         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35756         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35757         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35758         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35759         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35760         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35761         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35762         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35763         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35764         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35765         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35766         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35767         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35768         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35769         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35770         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35771         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35772         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35773         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35774         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35775         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35776         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35777         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35778         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35779         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35780         * tests/unictype/test-combining.c (ASSERT): Likewise.
35781         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35782         * tests/unictype/test-digit.c (ASSERT): Likewise.
35783         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35784         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35785         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35786         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35787         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35788         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35789         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35790         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35791         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35792         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35793         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35794         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35795         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35796         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35797         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35798         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35799         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35800         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35801         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35802         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35803         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35804         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35805         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35806         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35807         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35808         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35809         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35810         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35811         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35812         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35813         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35814         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35815         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35816         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35817         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35818         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35819         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35820         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35821         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35822         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35823         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35824         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35825         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35826         Reported by Eric Blake.
35827
35828 2008-04-11  Bruno Haible  <bruno@clisp.org>
35829
35830         * lib/wchar.in.h: Tweak comment.
35831
35832 2008-04-11  Bruno Haible  <bruno@clisp.org>
35833
35834         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35835         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35836         gl_COMMON.
35837         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35838
35839 2008-04-11  Bruno Haible  <bruno@clisp.org>
35840
35841         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35842
35843 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35844
35845         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35846         of attempting to use non-existing /dev/*random.  Based on patch
35847         from Adam Strzelecki <ono@java.pl> in
35848         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35849
35850 2008-04-08  Bruno Haible  <bruno@clisp.org>
35851
35852         Add tentative support for emx+gcc.
35853         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35854         * lib/fpurge.c (fpurge): Likewise.
35855         * lib/freadable.c (freadable): Likewise.
35856         * lib/freadahead.c (freadahead): Likewise.
35857         * lib/freading.c (freading): Likewise.
35858         * lib/freadptr.c (freadptr): Likewise.
35859         * lib/freadseek.c (freadptrinc): Likewise.
35860         * lib/fseeko.c (rpl_fseeko): Likewise.
35861         * lib/fseterr.c (fseterr): Likewise.
35862         * lib/fwritable.c (fwritable): Likewise.
35863         * lib/fwriting.c (fwriting): Likewise.
35864         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35865
35866 2008-04-09  Eric Blake  <ebb9@byu.net>
35867
35868         Avoid some autoconf warnings.
35869         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35870         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35871         * m4/afs.m4 (gl_AFS): Likewise.
35872         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35873         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35874         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35875         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35876         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35877         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35878         (AC_CHECK_DECLS_ONCE): Likewise.
35879         Rename file...
35880         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35881         gnulib-tool requires autoconf 2.59 or better.
35882         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35883
35884 2008-04-08  Eric Blake  <ebb9@byu.net>
35885
35886         Use 'git describe --match' if present (added in git 1.5.5).
35887         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35888         if possible.
35889
35890 2008-04-08  Bruno Haible  <bruno@clisp.org>
35891
35892         Add tentative support for OpenServer.
35893         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35894         _ptr, _cnt.
35895         * lib/fpurge.c (fpurge): Likewise.
35896         * lib/freadable.c (freadable): Likewise.
35897         * lib/freadahead.c (freadahead): Likewise.
35898         * lib/freading.c (freading): Likewise.
35899         * lib/freadptr.c (freadptr): Likewise.
35900         * lib/freadseek.c (freadptrinc): Likewise.
35901         * lib/fseeko.c (rpl_fseeko): Likewise.
35902         * lib/fseterr.c (fseterr): Likewise.
35903         * lib/fwritable.c (fwritable): Likewise.
35904         * lib/fwriting.c (fwriting): Likewise.
35905         Reported by Roger Cornelius <rac@tenzing.org> and
35906         Brian K. White <brian@aljex.com>.
35907
35908 2008-04-06  Jim Meyering  <meyering@redhat.com>
35909
35910         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35911
35912 2008-04-06  Bruno Haible  <bruno@clisp.org>
35913
35914         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35915         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35916         * tests/test-printf-posix.sh: Likewise.
35917         * tests/test-vfprintf-posix.sh: Likewise.
35918         * tests/test-vprintf-posix.sh: Likewise.
35919         * tests/test-xprintf-posix.sh: Likewise.
35920
35921 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35922
35923         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35924         hide error from 'ls', needed on OS/2.
35925         Report by Elbert Pol <elbert.pol@gmail.com>.
35926
35927 2008-04-04  Eric Blake  <ebb9@byu.net>
35928
35929         Make test-fseeko.c failures meaningful.
35930         * tests/test-fseeko.c: Print line number on failure.
35931         * tests/test-fseek.c: Likewise.
35932         Reported by Nelson H. F. Beebe.
35933
35934         Improve strtod bug detection check.
35935         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35936         required for Solaris 10.
35937         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35938
35939 2008-04-04  Bruno Haible  <bruno@clisp.org>
35940
35941         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35942         by m4/setenv.m4.
35943
35944 2008-04-03  Eric Blake  <ebb9@byu.net>
35945
35946         Ensure sane .version contents.
35947         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35948         version string.
35949         * build-aux/git-version-gen: Improve documentation.
35950
35951         Make GNU make output nicer.
35952         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35953         MAKECMDGOALS to enforce message for all command line targets.  Set
35954         srcdir for use in maint.mk.
35955
35956         Another maintainer tweak.
35957         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35958         a target that regenerates version.
35959
35960 2008-04-03  Jim Meyering  <meyering@redhat.com>
35961
35962         vc-list-files: don't cause coreutils "make po-check" failure
35963         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35964
35965 2008-04-03  Eric Blake  <ebb9@byu.net>
35966
35967         Allow VPATH usage of vc-list-files.
35968         * build-aux/vc-list-files (scriptversion): Add timestamp.
35969         (options): Add --help, --version, -C.
35970         (CVS): Support installed cvsu.
35971
35972 2008-04-02  Bruno Haible  <bruno@clisp.org>
35973
35974         Avoid some "statement with no effect" warnings from gcc.
35975         * tests/test-wctype.c (main): Explicitly ignore unused values.
35976         Reported by Jim Meyering.
35977
35978 2008-04-02  Jim Meyering  <meyering@redhat.com>
35979
35980         Avoid some warnings from "gcc -Wshadow".
35981         * tests/test-frexp.c (exp): Define to a different identifier.
35982         * tests/test-frexpl.c (exp): Likewise.
35983
35984 2008-04-03  Jim Meyering  <meyering@redhat.com>
35985
35986         bootstrap: remove dangling *.[ch] symlinks from lib
35987         * build-aux/bootstrap [dangling symlink removal]: Move find's
35988         -depth option to precede all others, to avoid a warning.
35989         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35990
35991 2008-04-02  Bruno Haible  <bruno@clisp.org>
35992
35993         Avoid some warnings from "gcc -Wshadow".
35994         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35995         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35996         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35997         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35998         Reported by Jim Meyering.
35999
36000 2008-04-01  Bruno Haible  <bruno@clisp.org>
36001
36002         Fix test to work on IRIX 6.5 with cc.
36003         * tests/test-math.c (numeric_equal): New function.
36004         (main): Use it.
36005
36006 2008-04-01  Bruno Haible  <bruno@clisp.org>
36007
36008         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
36009
36010 2008-04-01  Bruno Haible  <bruno@clisp.org>
36011
36012         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
36013         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36014         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
36015         (Depends-on): Remove math.
36016
36017         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
36018         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36019         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
36020         (Depends-on): Remove math.
36021
36022         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
36023         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36024         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36025         (Depends-on): Remove math.
36026         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
36027         (Depends-on): Remove math.
36028
36029         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
36030         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36031         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
36032         (Depends-on): Remove math.
36033         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
36034         (Depends-on): Remove math.
36035
36036         * tests/test-round1.c: Include nan.h.
36037         (main): Use NaNd instead of NAN.
36038         * modules/round-tests (Files): Add tests/nan.h.
36039
36040         * tests/test-trunc1.c: Include nan.h.
36041         (main): Use NaNd instead of NAN.
36042         * modules/trunc-tests (Files): Add tests/nan.h.
36043
36044         * tests/test-roundf1.c: Include nan.h.
36045         (main): Use NaNf instead of NAN.
36046         * modules/roundf-tests (Files): Add tests/nan.h.
36047
36048         * tests/test-truncf1.c: Include nan.h.
36049         (main): Use NaNf instead of NAN.
36050         * modules/truncf-tests (Files): Add tests/nan.h.
36051
36052         * tests/test-ceilf1.c: Include nan.h.
36053         (main): Use NaNf instead of NAN.
36054         * modules/ceilf-tests (Files): Add tests/nan.h.
36055
36056         * tests/test-floorf1.c: Include nan.h.
36057         (main): Use NaNf instead of NAN.
36058         * modules/floorf-tests (Files): Add tests/nan.h.
36059
36060         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
36061         (main): Use NaNf instead of NAN.
36062         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
36063
36064         * tests/test-isnand.c: Include nan.h instead of <math.h>.
36065         (main): Use NaNd instead of NAN.
36066         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
36067
36068         * tests/test-frexp.c: Include nan.h.
36069         (main): Use NaNd instead of NAN.
36070         * modules/frexp-tests (Files): Add tests/nan.h.
36071
36072         * lib/isnan.c: Don't include <math.h>.
36073         (FUNC): Don't use NAN macro.
36074         * modules/isnand-nolibm (Depends-on): Remove math.
36075         * modules/isnanf-nolibm (Depends-on): Remove math.
36076         * modules/isnanl (Depends-on): Remove math.
36077         * modules/isnanl-nolibm (Depends-on): Remove math.
36078
36079         * tests/nan.h: New file.
36080
36081 2008-04-01  Eric Blake  <ebb9@byu.net>
36082
36083         Fix typos.
36084         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36085         values to be the right type.
36086
36087         For now, cater to gnulib strtod inaccuracies.
36088         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36089         fractional results.  While not as nice from a QoI perspective, it
36090         is a quicker patch than correctly implementing decimal to binary
36091         rounding.
36092
36093 2008-03-31  Eric Blake  <ebb9@byu.net>
36094
36095         Guarantee a definition of NAN.
36096         * lib/math.in.h (NAN): Define if missing.
36097         * tests/test-math.c (main): Test it.
36098         * doc/posix-headers/math.texi (math.h): Document this.
36099         * lib/isnan.c (rpl_isnand): Use it.
36100         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36101         * tests/test-floorf1.c (NaN): Likewise.
36102         * tests/test-frexp.c (NaN): Likewise.
36103         * tests/test-isnand.c (NaN): Likewise.
36104         * tests/test-isnanf.c (NaN): Likewise.
36105         * tests/test-round1.c (NaN): Likewise.
36106         * tests/test-roundf1.c (NaN): Likewise.
36107         * tests/test-snprintf-posix.h (NaN): Likewise.
36108         * tests/test-sprintf-posix.h (NaN): Likewise.
36109         * tests/test-trunc1.c (NaN): Likewise.
36110         * tests/test-truncf1.c (NaN): Likewise.
36111         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36112         * tests/test-vasprintf-posix.c (NaN): Likewise.
36113         * modules/isnand-nolibm (Depends-on): Add math.
36114         * modules/isnanf-nolibm (Depends-on): Likewise.
36115         * modules/isnanl (Depends-on): Likewise.
36116         * modules/isnanl-nolibm (Depends-on): Likewise.
36117         * modules/snprintf-posix-tests (Depends-on): Likewise.
36118         * modules/sprintf-posix-tests (Depends-on): Likewise.
36119         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36120         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36121         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36122         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36123
36124 2008-03-31  Bruno Haible  <bruno@clisp.org>
36125
36126         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36127         * doc/posix-functions/strtod.texi: Likewise.
36128
36129 2008-03-31  Bruno Haible  <bruno@clisp.org>
36130
36131         * tests/test-strtod.c (main): Don't use C99 syntax.
36132
36133 2008-03-31  Bruno Haible  <bruno@clisp.org>
36134
36135         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
36136         Reported by Eric Blake.
36137
36138 2008-03-31  Jim Meyering  <meyering@redhat.com>
36139
36140         Don't compare actual signbit return values.
36141         * tests/test-strtod.c (main): Rather, compare only their
36142         zero/non-zero nature.
36143
36144 2008-03-31  Eric Blake  <ebb9@byu.net>
36145
36146         More strtod documentation.
36147         * doc/posix-functions/strtod.texi (strtod): Interpret more test
36148         failures as distinct bugs.
36149
36150 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36151
36152         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
36153         Problem reported by Erik Benada in
36154         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
36155
36156 2008-03-30  Bruno Haible  <bruno@clisp.org>
36157
36158         * tests/test-strtod.c: Add comments about which assertion fails on which
36159         platform.
36160         * doc/posix-functions/strtod.texi: Add info about many more platforms.
36161
36162 2008-03-30  Eric Blake  <ebb9@byu.net>
36163
36164         Test signbit behavior on zeros.
36165         * tests/test-signbit.c (test_signbitf): Add tests for zero.
36166         (test_signbitd, test_signbitl): Likewise.
36167
36168         More strtod touchups.
36169         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
36170         sign of negative underflow, for now.  Use .5, not .1.
36171         * doc/posix-functions/strtod.texi (strtod): Mention these
36172         limitations.
36173         Reported by Jim Meyering.
36174
36175 2008-03-30  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
36178         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
36179
36180 2008-03-30  Bruno Haible  <bruno@clisp.org>
36181
36182         Avoid failure when attempting to return empty iconv results on some
36183         platforms.
36184         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
36185         allocation, don't report ENOMEM when the resulting string is empty.
36186
36187 2008-03-30  Bruno Haible  <bruno@clisp.org>
36188
36189         Fix buffer overrun.
36190         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
36191         Don't consider the width for tmp_length. Check count against tmp_length
36192         before doing the padding. Ensure enough allocation during padding.
36193
36194 2008-03-30  Eric Blake  <ebb9@byu.net>
36195
36196         strtod touchups.
36197         * lib/strtod.c (strtod): Avoid compiler warnings.
36198         Reported by Jim Meyering.
36199
36200 2008-03-30  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
36203         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
36204         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
36205         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
36206         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
36207         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
36208         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
36209         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
36210
36211         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
36212         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
36213         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
36214         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
36215         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
36216         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
36217         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
36218         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
36219
36220         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
36221         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
36222         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
36223         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
36224         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
36225         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
36226         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
36227         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
36228
36229         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
36230         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
36231
36232         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
36233         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
36234
36235         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
36236         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
36237
36238         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
36239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
36240         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
36241
36242         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
36243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
36244         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
36245
36246         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
36247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
36248         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
36249
36250         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
36251         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
36252         * modules/vasprintf (Depends-on): Add EOVERFLOW.
36253
36254         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36255         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36257         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36258         (Depends-on): Add EOVERFLOW.
36259         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36260         (Depends-on): Add EOVERFLOW.
36261         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36262         (Depends-on): Add EOVERFLOW.
36263         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36264         (Depends-on): Add EOVERFLOW.
36265         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36266         (Depends-on): Add EOVERFLOW.
36267         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36268         (Depends-on): Add EOVERFLOW.
36269         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36270         (Depends-on): Add EOVERFLOW.
36271         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36272         (Depends-on): Add EOVERFLOW.
36273
36274         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36275         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36276         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36277
36278         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36280         * modules/snprintf (Depends-on): Add EOVERFLOW.
36281
36282         * lib/poll.c (EOVERFLOW): Remove fallback.
36283         * modules/poll (Depends-on): Add EOVERFLOW.
36284
36285         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36286         * modules/getugroups (Depends-on): Add EOVERFLOW.
36287
36288         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36289         * modules/getdelim (Depends-on): Add EOVERFLOW.
36290
36291         * lib/ftell.c (EOVERFLOW): Remove fallback.
36292         * modules/ftell (Depends-on): Add EOVERFLOW.
36293
36294         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36296         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36297
36298         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36299
36300         * modules/EOVERFLOW-tests: New file.
36301         * tests/test-EOVERFLOW.c: New file.
36302
36303         * modules/EOVERFLOW: New file.
36304         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36305
36306 2008-03-30  Bruno Haible  <bruno@clisp.org>
36307
36308         Fix bug introduced on 2007-06-10.
36309         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36310         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36311
36312 2008-03-30  Bruno Haible  <bruno@clisp.org>
36313
36314         Improve freadseek's efficiency after ungetc.
36315         * lib/freadseek.c: Include freadahead.h.
36316         (freadptrinc): New function, extracted from freadseek.
36317         (freadseek): Use it in a loop. Use freadahead to determine the number
36318         of loop iterations.
36319         * modules/freadseek (Depends-on): Add freadahead.
36320         (configure.ac): Require AC_C_INLINE.
36321
36322 2008-03-30  Bruno Haible  <bruno@clisp.org>
36323
36324         * lib/freadseek.c (freadseek): Don't ignore the return value of
36325         freadptr.
36326
36327 2008-03-29  Eric Blake  <ebb9@byu.net>
36328
36329         Add hex float support.
36330         * modules/strtod (Depends-on): Add c-ctype.
36331         (Link): Mention POW_LIB.
36332         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36333         whitespace between 'e' and exponent.
36334         * tests/test-strtod.c (main): Enable hex float tests.
36335         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36336         now provides.
36337
36338         Document various strtod bugs, with some fixes.
36339         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36340         "-0x", "inf", "nan", and hex constants.
36341         * doc/posix-functions/atof.texi (atof): Likewise.
36342         * modules/stdlib (Makefile.am): Support strtod.
36343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36344         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36345         detect additional strtod bugs.
36346         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36347         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36348         bool where appropriate.  Parse 'inf' and 'nan'.
36349         * tests/test-strtod.c: New file.
36350         * modules/strtod (Depends-on): Add stdbool, stdlib.
36351         (configure.ac): Turn on module indicator.
36352         * modules/strtod-tests: New module.
36353
36354 2008-03-29  Eric Blake  <ebb9@byu.net>
36355
36356         Fix ftell on mingw.
36357         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36358         * modules/ftell-tests (Depends-on): Add binary-io.
36359         * modules/ftello-tests (Depends-on): Likewise.
36360         * tests/test-ftell.c (main): Enhance test to cover behavior after
36361         ungetc.  Enforce binary mode.
36362         * tests/test-ftello.c (main): Likewise.
36363
36364         Pass test-freadseek on cygwin.
36365         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36366         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36367         ungetc buffer.
36368
36369         * tests/test-fflush2.c (main): Fix typo.
36370
36371 2008-03-29  Bruno Haible  <bruno@clisp.org>
36372
36373         * tests/test-fflush2.c (main): Temporarily disable the contents of
36374         this test.
36375         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36376         Reported by Eric Blake.
36377
36378 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36379
36380         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36381         (GC_SHA224_DIGEST_SIZE): Add.
36382
36383         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36384         (gc_hash_digest_length): Likewise.
36385         (gc_hash_buffer): Likewise.
36386
36387 2008-03-25  Bruno Haible  <bruno@clisp.org>
36388
36389         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36390         detail which gettext release to use.
36391         Reported by Simon Josefsson.
36392
36393 2008-03-26  Jim Meyering  <meyering@redhat.com>
36394
36395         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36396         * modules/gnumakefile (clean-GNUmakefile): Also, use
36397         test ... && ... || : syntax rather than if-then ... fi.
36398
36399         gnumakefile: Don't double-quote-expand $(VPATH) value.
36400         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36401
36402 2008-03-24  Eric Blake  <ebb9@byu.net>
36403
36404         Alter GNUmakefile to install into top directory.
36405         * modules/maintainer-makefile: Split, and add dependency...
36406         * modules/gnumakefile: to this new module.
36407         * build-aux/GNUmakefile: Move...
36408         * top/GNUmakefile: ...here.
36409         * build-aux/maint.mk: Move...
36410         * top/maint.mk: ...here.
36411         * MODULES.html.sh (Support for maintaining...): Document new
36412         module.
36413
36414 2008-03-23  Bruno Haible  <bruno@clisp.org>
36415
36416         * gnulib-tool: New options --vc-files, --no-vc-files.
36417         (func_usage): Document them.
36418         (vc_files): New variable.
36419         (func_import): Consider vc_files.
36420         (func_create_testdir): Set vc_files to empty.
36421         Suggested by Jim Meyering and Karl Berry.
36422
36423 2008-03-23  Bruno Haible  <bruno@clisp.org>
36424
36425         Fix regex compilation error on HP-UX 11.
36426         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36427         * modules/regex (Files): Add m4/mbstate_t.m4.
36428         Reported by Ton Voon <ton.voon@altinity.com>.
36429
36430 2008-03-23  Bruno Haible  <bruno@clisp.org>
36431
36432         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36433
36434 2008-03-23  Eric Blake  <ebb9@byu.net>
36435             Bruno Haible  <bruno@clisp.org>
36436
36437         Install files from top/ in the destination directory.
36438         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36439         augmentation also for the files from top/.
36440         (func_import, func_create_testdir): Rewrite file names:
36441         top/filename -> filename.
36442
36443 2008-03-23  Bruno Haible  <bruno@clisp.org>
36444
36445         Tweak "gnulib --version" output.
36446         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36447
36448 2008-03-23  Bruno Haible  <bruno@clisp.org>
36449
36450         Tweak "gnulib --version" output.
36451         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36452         rather than contents of ChangeLog, when possible.
36453
36454 2008-03-21  Eric Blake  <ebb9@byu.net>
36455
36456         More --version tweaks.
36457         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36458         date of last ChangeLog entry.
36459
36460 2008-03-21  Jim Meyering  <meyering@redhat.com>
36461
36462         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36463
36464 2008-03-20  Eric Blake  <ebb9@byu.net>
36465
36466         VPATH fix.
36467         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36468
36469 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36470
36471         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36472         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36473
36474 2008-03-20  Eric Blake  <ebb9@byu.net>
36475
36476         Sync GNUmakefile with coreutils.
36477         * build-aux/GNUmakefile (have-Makefile): Rename...
36478         (_have-Makefile): ...to this, for namespace consideration.
36479         (GNUmakefile.cfg): Include, if present.
36480         (_autoreconf): Define a default.
36481         (_is-dist-target): New rule for rebuilds to pick up intra-release
36482         version.
36483         (maint-cfg.mk): Rename...
36484         (cfg.mk): ...to this.
36485
36486 2008-03-18  Jim Meyering  <meyering@redhat.com>
36487
36488         New script and module: mktempd
36489         * MODULES.html.sh (maint+release support): Add mktempd.
36490         * build-aux/mktempd: New file.
36491         * modules/mktempd: New file.
36492
36493 2008-03-15  Jim Meyering  <meyering@redhat.com>
36494
36495         Undo last change.
36496         * lib/sha1.c, lib/md5.c: 63 != ~63.
36497         Reported by Andreas Schwab.
36498
36499         sha1.c, md5.c: Hoist a redundant expression.
36500         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36501         "ctx->buflen" only once, before calling *_process_block.
36502         * lib/md5.c (md5_process_bytes): Likewise.
36503
36504 2008-03-14  Eric Blake  <ebb9@byu.net>
36505
36506         Bump copyright year in files generated by gnulib-tool.
36507         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36508         gnulib-tool, rather than hard-coding it.
36509
36510         Fix 'gnulib-tool --version' output to work with git.
36511         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36512         (startup): ...here.
36513         (func_version): Use it to invoke git-version-gen, rather than
36514         relying on CVS keyword expansion.  Modernize wording.
36515         (cvsdatestamp, last_checkin_date, version): Kill unused
36516         variables.
36517
36518 2008-03-12  Jim Meyering  <meyering@redhat.com>
36519
36520         Recognize optional cast of the argument to free.
36521         * build-aux/useless-if-before-free: Update regexps.
36522
36523         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36524
36525 2008-03-11  Bruno Haible  <bruno@clisp.org>
36526
36527         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36528         by a single package.
36529         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36530         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36531         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36532         Reported by Sam Steingold <sds@gnu.org>.
36533
36534 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36535
36536         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36537         repositories.
36538
36539 2008-03-11  Bruno Haible  <bruno@clisp.org>
36540
36541         Avoid conflicts between local macro definitions.
36542         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36543         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36544
36545 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36546             Bruno Haible  <bruno@clisp.org>
36547
36548         Make va_copy work with some version of xlc on AIX 5.1.
36549         * lib/stdarg.in.h: New file.
36550         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36551         On AIX, use a <stdarg.h> file substitute.
36552         * modules/stdarg (Files): Add lib/stdarg.in.h.
36553         (Depends-on): Add include_next.
36554         (Makefile.am): Build a stdarg.h substitute if requested.
36555         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36556
36557 2008-03-10  Bruno Haible  <bruno@clisp.org>
36558
36559         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36560         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36561         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36562
36563 2008-03-10  Bruno Haible  <bruno@clisp.org>
36564
36565         * modules/stdlib (Depends-on): Add include_next, remove
36566         absolute-header.
36567
36568 2008-03-09  Bruno Haible  <bruno@clisp.org>
36569
36570         * lib/freadahead.h (freadahead): Document more precisely.
36571         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36572         the sum of both buffer sizes.
36573         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36574         * NEWS: Document the change.
36575
36576 2008-03-09  Bruno Haible  <bruno@clisp.org>
36577
36578         Extend freadptr to return also the buffer size.
36579         * lib/freadptr.h (freadptr): Add sizep argument.
36580         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36581         (freadptr): Add sizep argument. Determine buffer size like freadahead
36582         does.
36583         * tests/test-freadptr.c: Don't include freadahead.h.
36584         (main): Adapt for new calling convention of freadptr.
36585         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36586         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36587         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36588         tests/test-freadptr2.sh.
36589         (Depends): Remove freadahead.
36590         (TESTS): Add test-freadptr2.sh.
36591         (check_PROGRAMS): Add test-freadptr2.
36592
36593 2008-03-09  Bruno Haible  <bruno@clisp.org>
36594
36595         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36596         Report and solution by Simon Josefsson.
36597
36598 2008-03-06  Bruno Haible  <bruno@clisp.org>
36599
36600         Make fflush after ungetc work on BSD platforms.
36601         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36602         * tests/test-fflush2.c: New file.
36603         * tests/test-fflush2.sh: New file.
36604         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36605         tests/test-fflush2.c.
36606         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36607         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36608
36609 2008-03-06  Eric Blake  <ebb9@byu.net>
36610
36611         Likewise for ftello.
36612         * modules/ftello (Dependencies): Add extensions.
36613         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36614
36615 2008-03-06  Bruno Haible  <bruno@clisp.org>
36616
36617         * modules/fseeko (Dependencies): Add extensions.
36618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36619         Needed on glibc systems.
36620
36621 2008-03-06  Bruno Haible  <bruno@clisp.org>
36622
36623         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36624         email address.
36625         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36626
36627 2008-03-06  Bruno Haible  <bruno@clisp.org>
36628
36629         * users.txt: Add libgnupdf.
36630
36631 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36632
36633         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36634         (Header File Substitutes, Function Substitutes,
36635         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36636         (Build robot for gnulib): Fix typo.
36637
36638 2008-03-06  Bruno Haible  <bruno@clisp.org>
36639
36640         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36641         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36642
36643 2008-03-06  Bruno Haible  <bruno@clisp.org>
36644
36645         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36646         * doc/gnulib.texi: Include it.
36647
36648 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36649
36650         * modules/func (License): Change license to unlimited; there was
36651         no LGPL parts in the module anyway.
36652
36653 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36654
36655         * modules/__func__: Renamed to modules/func.
36656         * modules/__func__-tests: Renamed to modules/func-tests.
36657         * tests/test-__func__.c: Renamed to tests/test-func.c.
36658         * m4/__func__.m4: Renamed to m4/func.m4.
36659         * doc/gnulib.texi (__func__): Section renamed to func.
36660         Suggested by Eric Blake <ebb9@byu.net>.
36661
36662 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36663
36664         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36665         about __func__.  Make example self-contained.  Suggested by Eric
36666         Blake <ebb9@byu.net>.
36667
36668         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36669         Suggested by Eric Blake <ebb9@byu.net>.
36670
36671 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36672
36673         * modules/__func__: New file.
36674         * modules/__func__-tests: New file.
36675         * tests/test-__func__.c: New file.
36676         * m4/__func__.m4: New file.
36677         * doc/gnulib.texi (__func__): Document __func__ module.
36678
36679 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36680
36681         * modules/byteswap (License): Re-license as LGPLv2+.
36682
36683 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36684
36685         * doc/Makefile: Add pdf target.
36686
36687 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36688
36689         * modules/inline (License): Use 'unlimited', since there are only
36690         *.m4 files in this module.
36691
36692 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36693             Bruno Haible  <bruno@clisp.org>
36694
36695         Add support for HP C 7.1 on OpenVMS 8.3.
36696         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36697
36698 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36699
36700         Update VMS specifics.
36701         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36702
36703 2008-03-02  Jim Meyering  <meyering@redhat.com>
36704
36705         Remove the last dependency on the "free" module.
36706         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36707         Reported by Bob Proulx.
36708
36709         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36710
36711         Remove useless "if" tests before free.  Deprecate "free" module.
36712         * doc/posix-functions/free.texi: Mention that this
36713         module is no longer useful.
36714         * modules/free (Notice): Say this module is obsolete.
36715         * modules/readutmp (Depends-on): Remove free.
36716         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36717         * lib/putenv.c (putenv): Likewise.
36718         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36719         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36720         * tests/test-c-strcasestr.c (main): Likewise.
36721         * tests/test-c-strstr.c (main): Likewise.
36722         * tests/test-mbscasestr1.c (main): Likewise.
36723         * tests/test-mbscasestr2.c (main): Likewise.
36724         * tests/test-mbsstr1.c (main): Likewise.
36725         * tests/test-mbsstr2.c (main): Likewise.
36726         * tests/test-memmem.c (main): Likewise.
36727         * tests/test-strcasestr.c (main): Likewise.
36728         * tests/test-striconv.c (main): Likewise.
36729         * tests/test-striconveh.c (main): Likewise.
36730         * tests/test-striconveha.c (main): Likewise.
36731         * tests/test-strstr.c (main): Likewise.
36732
36733         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36734
36735         bootstrap: sync from coreutils again
36736         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36737
36738 2008-03-01  Jim Meyering  <meyering@redhat.com>
36739
36740         bootstrap: sync from coreutils
36741         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36742         also when the target doesn't exist.
36743
36744 2008-03-01  Eric Blake  <ebb9@byu.net>
36745
36746         Fix bugs in last patch.
36747         * lib/memchr2.c (memchr2): Fix typo.
36748         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36749         extension.
36750         Reported by Bruce Korb.
36751
36752         New module 'memchr2'.
36753         * modules/memchr2: New file.
36754         * modules/memchr2-tests: Likewise.
36755         * lib/memchr2.h: Likewise.
36756         * lib/memchr2.c: Likewise, based on memchr.c.
36757         * tests/test-memchr2.c: New test.
36758         * MODULES.html.sh (String handling): Add memchr2.
36759
36760 2008-02-29  Bruno Haible  <bruno@clisp.org>
36761
36762         * modules/freadseek-tests: New file.
36763         * tests/test-freadseek.sh: New file.
36764         * tests/test-freadseek.c: New file.
36765
36766         New module 'freadseek'.
36767         * modules/freadseek: New file.
36768         * lib/freadseek.h: New file.
36769         * lib/freadseek.c: New file.
36770         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36771
36772 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36773
36774         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36775         wydawca.
36776
36777         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36778         program_invocation_name and program_invocation_short_name are
36779         present.
36780
36781 2008-02-28  Bruno Haible  <bruno@clisp.org>
36782
36783         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36784         * tests/test-freadptr.sh: Also test non-seekable stdin.
36785
36786 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36787
36788         * build-aux/bootstrap (source_base, m4_base)
36789         (doc_base, tests_base): New variables.
36790         (gnulib_tool_options): Do not hardcode base directories, use
36791         the above variables instead.
36792
36793 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36794
36795         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36796
36797 2008-02-28  Bruno Haible  <bruno@clisp.org>
36798
36799         * modules/freadptr-tests: New file.
36800         * tests/test-freadptr.sh: New file.
36801         * tests/test-freadptr.c: New file.
36802
36803         New module 'freadptr'.
36804         * modules/freadptr: New file.
36805         * lib/freadptr.h: New file.
36806         * lib/freadptr.c: New file.
36807         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36808
36809 2008-02-26  Karl Berry  <karl@freefriends.org>
36810
36811         Sync from Libtool:
36812         * libltdl/argz.c (argz_add, argz_count): New functions.
36813         * libltdl/argz.in.h: Declare them.
36814         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36815
36816 2008-02-22  Bruno Haible  <bruno@clisp.org>
36817
36818         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36819         is a pointer type.  Needed for HP-UX 10.
36820         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36821         * doc/posix-functions/gmtime_r.texi: Likewise.
36822         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36823
36824 2008-02-24  Bruno Haible  <bruno@clisp.org>
36825
36826         * modules/environ-tests: New file.
36827         * tests/test-environ.c: New file.
36828
36829         New module 'environ'.
36830         * modules/environ: New file.
36831         * lib/unistd.in.h (environ): New declaration.
36832         * m4/environ.m4: New file.
36833         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36834         after use.
36835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36836         HAVE_DECL_ENVIRON.
36837         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36838         HAVE_DECL_ENVIRON.
36839         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36840         wrong claim that 'environ' is missing on some systems.
36841         * modules/execute (Depends-on): Add environ.
36842         * lib/execute.c (environ): Remove fallback declaration.
36843         * modules/pipe (Depends-on): Add environ.
36844         * lib/pipe.c (environ): Remove fallback declaration.
36845         * modules/setenv (Depends-on): Add environ.
36846         * lib/setenv.c (environ): Remove fallback declaration.
36847         * modules/unsetenv (Depends-on): Add environ.
36848         * lib/unsetenv.c (environ): Remove fallback declaration.
36849         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36850         m4/environ.m4.
36851         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36852         (gl_PREREQ_UNSETENV): Likewise.
36853
36854 2008-02-24  Bruno Haible  <bruno@clisp.org>
36855
36856         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36857
36858 2008-02-20  Bob Proulx  <bob@proulx.com>
36859
36860         Enable use of older two part flavor 'git describe'.
36861         * build-aux/git-version-gen: If using the older two part flavor of
36862         git version then recreate the third part now present in the
36863         newer three part flavor of git describe.
36864
36865 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36866
36867         * lib/fts.c (fts_build): Typo correction to comment.
36868
36869 2008-02-17  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36872         generating no-op conflicts.
36873
36874 2008-02-17  Bruno Haible  <bruno@clisp.org>
36875
36876         Speed up by 10%.
36877         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36878         result_entries, rather than an index-based loop.
36879
36880 2008-02-17  Bruno Haible  <bruno@clisp.org>
36881
36882         Speed up by 25%.
36883         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36884         'hashcode_cached'.
36885         (entry_create): New function.
36886         (entry_hashcode): Use the cached hashcode if possible.
36887         (read_changelog_file, try_split_merged_entry): Use entry_create.
36888
36889 2008-02-17  Bruno Haible  <bruno@clisp.org>
36890
36891         Speed up from O(n^2) to O(n) for long ChangeLog files.
36892         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36893         (read_changelog_file): Change implementation of entries_reversed list
36894         to rbtreehash.
36895         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36896
36897 2008-02-17  Bruno Haible  <bruno@clisp.org>
36898
36899         New option --split-merged-entry.
36900         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36901         (find_paragraph_end, try_split_merged_entry): New functions.
36902         (long_options): Add option --split-merged-entry.
36903         (usage): Document option --split-merged-entry.
36904         (main): Implement option --split-merged-entry.
36905         Reported by Eric Blake.
36906
36907 2008-02-17  Bruno Haible  <bruno@clisp.org>
36908
36909         * lib/git-merge-changelog.c: Include c-strstr.h.
36910         (main): Support the "git pull --rebase" situation.
36911         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36912         Reported by Eric Blake.
36913
36914 2008-02-16  Eric Blake  <ebb9@byu.net>
36915
36916         Avoid doubling \ in common case of "c-maybe" quoting style.
36917         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36918         eliding outer quotes.
36919         * lib/quotearg.h: Document this.
36920         * tests/test-quotearg.c (result_strings, inputs, results_g)
36921         (flag_results, locale_results): Test it by adding a new string to
36922         each test group.
36923         (compare_strings): Test new string.
36924
36925 2008-02-13  Eric Blake  <ebb9@byu.net>
36926
36927         Avoid trigraph quoting in default output.
36928         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36929         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36930         unless explicitly requested.
36931         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36932
36933 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36934
36935         Don't rely on signed integer overflowing to negative value.
36936         * lib/getugroups.c (getugroups): Include <limits.h>.
36937         Instead, compare against INT_MAX, and increment only if the test passes.
36938
36939 2008-02-13  Jim Meyering  <meyering@redhat.com>
36940         and Eric Blake  <ebb9@byu.net>
36941
36942         Avoid shadowing warning and compile errors on Linux.
36943         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36944         forwarding macros on Linux.
36945         (dcgettext): Define a stub, for Linux.
36946         (results_g, main): Avoid warnings.
36947
36948 2008-02-12  Eric Blake  <ebb9@byu.net>
36949
36950         Silence warning in last patch.
36951         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36952
36953         Quotearg part 4: add tests, fix c-maybe colon quoting.
36954         * lib/quotearg.h: Improve documentation.
36955         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36956         escapes when adding outer quotes.  When quoting trigraphs, use
36957         valid C notation.  When quoting NUL, omit extra characters if next
36958         character is not digit.  Alter prototype.
36959         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36960         callers.
36961         * modules/quotearg-tests: New module.
36962         * tests/test-quotearg.c: New test.
36963
36964 2008-02-07  Eric Blake  <ebb9@byu.net>
36965
36966         Quotearg part 3: add flag to control outer quote elision.
36967         * lib/quotearg.h (c_maybe_quoting_style): New style.
36968         (enum quoting_flags): Better documentation of flags.
36969         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36970         c-maybe style.
36971         (quotearg_buffer_restyled): Handle new flag to elide outer
36972         quotes.
36973
36974         Quotearg part 2: add flag that can control NUL elision.
36975         * lib/quotearg.h (set_quoting_flags): New prototype.
36976         * lib/quotearg.c (struct quoting_options): Add flag field.
36977         (set_quoting_flags): New function.
36978         (quotearg_buffer_restyled): Add flags parameter.
36979         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36980         (quotearg_n_options): Set the flag, since length cannot be
36981         returned.
36982         (quoting_options_from_style): Default flags correctly.
36983
36984         Quotearg part 1: more wrappers, restore quotearg_char state.
36985         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36986         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36987         (quotearg_colon_mem): New wrappers.
36988         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36989         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36990         functions.
36991         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36992         (quotearg_colon_mem): New functions.
36993
36994 2008-02-11  Bruno Haible  <bruno@clisp.org>
36995
36996         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36997         library in the current directory: it does not work with parallel make.
36998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36999
37000 2008-02-11  Bruno Haible  <bruno@clisp.org>
37001
37002         * .gitattributes: New file.
37003
37004 2008-02-11  Jim Meyering  <meyering@redhat.com>
37005
37006         useless-if-before-free: Fix reversed exit values.
37007         * build-aux/useless-if-before-free: Use correct values
37008         for EXIT_MATCH and EXIT_NO_MATCH.
37009
37010         * build-aux/useless-if-before-free: Close stdout carefully.
37011
37012 2008-02-10  Bruno Haible  <bruno@clisp.org>
37013
37014         New module 'git-merge-changelog'.
37015         * modules/git-merge-changelog: New file.
37016         * lib/git-merge-changelog.c: New file.
37017
37018 2008-02-10  Jim Meyering  <meyering@redhat.com>
37019
37020         useless-if-before-free: New option: --list (-l).
37021
37022         useless-if-before-free: Don't exit immediately upon open failure.
37023         * build-aux/useless-if-before-free: Exit 2 for errors.
37024         Upon failure to open a file, don't exit immediately.
37025         Rather, just warn and continue with any remaining files.
37026
37027 2008-02-10  Bruno Haible  <bruno@clisp.org>
37028
37029         New abstract list operation 'node_set_value'.
37030         * lib/gl_list.h (gl_list_node_set_value): New function.
37031         (struct gl_list_implementation): New field node_set_value.
37032         * lib/gl_list.c (gl_list_node_set_value): New function.
37033         * lib/gl_array_list.c (gl_array_node_set_value): New function.
37034         (gl_array_list_implementation): Update.
37035         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
37036         (gl_carray_list_implementation): Update.
37037         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
37038         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37039         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37040         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
37041         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37042         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37043         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37044         Update.
37045         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37046         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
37047         (gl_sublist_list_implementation): Update.
37048
37049 2008-02-10  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
37052         Needed when ELEMENT is #defined to 'some_type *'.
37053
37054 2008-02-10  Jim Meyering  <meyering@redhat.com>
37055
37056         New script and module: useless-if-before-free
37057         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
37058         * build-aux/useless-if-before-free: New file.
37059         * modules/useless-if-before-free: New file.
37060
37061         * build-aux/gitlog-to-changelog: Use committer date, not author date.
37062
37063         xstrtol_error: Fix typo.
37064         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
37065         s/exit_failure/exit_status/.
37066
37067 2008-02-09  Jim Meyering  <meyering@redhat.com>
37068
37069         New script and module: gitlog-to-changelog
37070         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
37071         * modules/gitlog-to-changelog: New file.
37072         * build-aux/gitlog-to-changelog: New file.
37073
37074 2008-02-08  Jim Meyering  <meyering@redhat.com>
37075
37076         Avoid two "parameter unused" warnings.
37077         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37078         Mark "st" as used.
37079
37080         Use "git COMMAND", not "git-COMMAND".
37081         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37082         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37083         * build-aux/git-version-gen: Use "git status", not "git-status".
37084
37085 2008-02-07  Bruno Haible  <bruno@clisp.org>
37086
37087         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37088         Avoids a crash on Windows Vista.
37089         Reported by Adam Strzelecki <ono@java.pl> via
37090         Simon Josefsson <simon@josefsson.org>.
37091
37092 2008-02-06  Bruno Haible  <bruno@clisp.org>
37093
37094         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37095         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37096         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37100         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37101         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37109         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37110         left-adjust flag.
37111         * tests/test-snprintf-posix.h (test_function): Likewise.
37112         * tests/test-sprintf-posix.h (test_function): Likewise.
37113         * tests/test-vasprintf-posix.c (test_function): Likewise.
37114         * doc/posix-functions/fprintf.texi: Update.
37115         * doc/posix-functions/printf.texi: Update.
37116         * doc/posix-functions/snprintf.texi: Update.
37117         * doc/posix-functions/sprintf.texi: Update.
37118         * doc/posix-functions/vfprintf.texi: Update.
37119         * doc/posix-functions/vprintf.texi: Update.
37120         * doc/posix-functions/vsnprintf.texi: Update.
37121         * doc/posix-functions/vsprintf.texi: Update.
37122         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37123
37124 2008-02-06  Bruno Haible  <bruno@clisp.org>
37125
37126         Fix bug introduced on 2008-01-26.
37127         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37128
37129 2008-02-06  Bruno Haible  <bruno@clisp.org>
37130
37131         Fix bug introduced on 2007-06-10.
37132         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
37133         !NEED_PRINTF_FLAG_ZERO.
37134
37135 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
37136
37137         getloadavg: use libperfstat on AIX5
37138         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
37139
37140 2008-02-03  Bruno Haible  <bruno@clisp.org>
37141
37142         * lib/diffseq.h: Add comments about required #includes.
37143         Reported by Michael Biggs <gnulib@doubleplum.net>.
37144
37145 2008-02-01  Bruno Haible  <bruno@clisp.org>
37146
37147         * users.txt: Add gnuit.
37148
37149 2008-01-31  Bruno Haible  <bruno@clisp.org>
37150
37151         * lib/md4.c (set_uint32): Mark as inline.
37152         * lib/md5.c (set_uint32): Likewise.
37153         * lib/sha1.c (set_uint32): Likewise.
37154         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
37155         * m4/md5.m4 (gl_MD5): Likewise.
37156         * m4/sha1.m4 (gl_SHA1): Likewise.
37157
37158 2008-01-31  Jim Meyering  <meyering@redhat.com>
37159
37160         Use "sizeof VAR", rather than a literal "4".
37161         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
37162         * lib/md4.c (md4_read_ctx): Likewise.
37163         * lib/sha1.c (sha1_read_ctx): Likewise.
37164
37165 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37166
37167         * tests/test-sha1.c: New file, based on test-md5.c.
37168
37169         * modules/crypto/sha1-tests: New file.
37170
37171 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37172
37173         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
37174
37175 2008-01-31  Jim Meyering  <meyering@redhat.com>
37176
37177         Prefer "sizeof v" over the equivalent "4".
37178         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
37179         * lib/md5.c (set_uint32): Likewise.
37180         * lib/sha1.c (set_uint32): Likewise.
37181
37182 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37183
37184         * lib/sha1.c (set_uint32): Mark function as static.
37185
37186 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37187
37188         md2: clarify comments to say that alignment is not required.
37189         * lib/md2.h: Remove warning about alignment in comment.
37190         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
37191         never been required.
37192
37193 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37194
37195         md4: adapt alignment constraint fix from sha1.
37196         * lib/md4.c (set_uint32): New function, from sha1.c
37197         (md4_read_ctx): Use it.
37198         (md4_finish_ctx): Doc fix.
37199         * lib/md4.h: Doc fix.
37200
37201 2008-01-31  Simon Josefsson  <simon@josefsson.org>
37202
37203         md5: adapt alignment constraint fix from sha1.
37204         * lib/md5.c (set_uint32): New function, from sha1.c
37205         (md5_read_ctx): Use it.
37206         (md5_finish_ctx): Doc fix.
37207         * lib/md5.h: Doc fix.
37208
37209 2008-01-30  Peter Palfrader  <weasel@debian.org>
37210
37211         sha1: remove the result buffer alignment constraint
37212         * lib/sha1.c (set_uint32): New function.
37213         (sha1_read_ctx): Rewrite to remove the result buffer alignment
37214         constraint.
37215         (sha1_finish_ctx): Remove comment warning about alignment constraint.
37216         * lib/sha1.h: Likewise.
37217
37218 2008-01-30  Andreas Schwab  <schwab@suse.de>
37219             Bruno Haible  <bruno@clisp.org>
37220
37221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
37222         correct definition of LDBL_MIN_EXP.
37223
37224 2008-01-30  Karl Berry  <karl@gnu.org>
37225
37226         * config/srclist-update: try to preserve x bit on updates.
37227         * config/srclistvars.sh: update for karl.
37228
37229 2008-01-29  Jim Meyering  <meyering@redhat.com>
37230
37231         vasnprintf.c: Avoid warning about unused label
37232         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
37233         "overflow" label definition and associated code with the
37234         same cpp condition that guards the sole use of that label.
37235
37236 2008-01-26  Bruno Haible  <bruno@clisp.org>
37237
37238         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
37239         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
37240         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
37241         * lib/isnanl-nolibm.h (isnanl): Likewise.
37242         Reported by Paul Eggert <eggert@cs.ucla.edu>.
37243
37244 2008-01-26  Bruno Haible  <bruno@clisp.org>
37245
37246         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
37247         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
37248
37249 2008-01-26  Bruno Haible  <bruno@clisp.org>
37250
37251         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
37252         GCC >= 4.0 built-in.
37253         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37254
37255 2008-01-26  Bruno Haible  <bruno@clisp.org>
37256
37257         Rename isnan, applicable to 'double' only, to isnand.
37258         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37259         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37260         (configure.ac): Update.
37261         (Include): Replace "isnan.h" with "isnand.h".
37262         * m4/isnand.m4: Renamed from m4/isnan.m4.
37263         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37264         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37265         instead of isnan.c.
37266         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37267         instead of HAVE_ISNAN_IN_LIBC.
37268         (isnand): Renamed from isnan.
37269         * lib/isnand.c: New file.
37270         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37271         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37272         (Makefile.am): Update.
37273         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37274         Include isnand.h instead of isnan.h.
37275         (main): Test isnand instead of isnan.
37276         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37277         isnan-nolibm.
37278         * modules/frexp (Depends-on): Likewise.
37279         * modules/frexp-tests (Depends-on): Likewise.
37280         * modules/frexp-nolibm (Depends-on): Likewise.
37281         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37282         * modules/isfinite (Depends-on): Likewise.
37283         * modules/round-tests (Depends-on): Likewise.
37284         * modules/signbit (Depends-on): Likewise.
37285         * modules/signbit-tests (Depends-on): Likewise.
37286         * modules/snprintf-posix (Depends-on): Likewise.
37287         * modules/sprintf-posix (Depends-on): Likewise.
37288         * modules/trunc-tests (Depends-on): Likewise.
37289         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37290         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37291         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37292         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37293         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37294         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37295         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37296         * modules/vasnprintf-posix (Depends-on): Likewise.
37297         * modules/vasprintf-posix (Depends-on): Likewise.
37298         * modules/vfprintf-posix (Depends-on): Likewise.
37299         * modules/vsnprintf-posix (Depends-on): Likewise.
37300         * modules/vsprintf-posix (Depends-on): Likewise.
37301         * lib/frexp.c: Include isnand.h instead of isnan.h.
37302         (ISNAN): Set to isnand instead of isnan.
37303         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37304         (gl_isfinited): Use isnand instead of isnan.
37305         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37306         (gl_signbitd): Use isnand instead of isnan.
37307         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37308         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37309         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37310         (main): Use isnand instead of isnan.
37311         * tests/test-round1.c: Include isnand.h.
37312         (main): Use isnand instead of isnan.
37313         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37314         (ISNAN): Set to isnand instead of isnan.
37315         * tests/test-trunc1.c: Include isnand.h.
37316         (main): Use isnand instead of isnan.
37317         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37318         (equal): Use isnand instead of isnan.
37319         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37320         isnand-nolibm.
37321         * NEWS: Mention the change.
37322
37323 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37324             Bruno Haible  <bruno@clisp.org>
37325
37326         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37327         the GCC builtins for signbits are present and set
37328         REPLACE_SIGNBIT_USING_GCC if so.
37329         * lib/math.in.h (signbit): Define using GCC builtins if
37330         REPLACE_SIGNBIT_USING_GCC is set.
37331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37332         REPLACE_SIGNBIT_USING_GCC.
37333         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37334
37335 2008-01-25  Jim Meyering  <meyering@redhat.com>
37336
37337         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37338         * lib/poll.c: Include <config.h>, not "config.h".
37339         * tests/test-getaddrinfo.c: Likewise.
37340
37341 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37342
37343         * modules/sockets-tests: New file.
37344
37345 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37346
37347         * modules/sockets: New module, can be used to call WSA_Startup and
37348         WSA_Cleanup when needed.
37349
37350         * lib/sockets.h, lib/sockets.c: New files.
37351
37352         * m4/sockets.m4: New file.
37353
37354         * tests/test-sockets.c: New file.
37355
37356 2008-01-19  Bruno Haible  <bruno@clisp.org>
37357
37358         * doc/posix-headers: Renamed from doc/headers.
37359         * doc/posix-functions: Renamed from doc/functions.
37360         * doc/gnulib.texi: Update.
37361
37362 2008-01-19  Bruno Haible  <bruno@clisp.org>
37363
37364         * doc/glibc-functions/strcasestr.texi: Include contents of
37365         doc/functions/strcasestr.texi, fixing the list of platforms.
37366         * doc/functions/strcasestr.texi: Remove file.
37367
37368 2008-01-19  Bruno Haible  <bruno@clisp.org>
37369
37370         * doc/glibc-functions/memmem.texi: Include contents of
37371         doc/functions/memmem.texi.
37372         * doc/functions/memmem.texi: Remove file.
37373
37374 2008-01-18  Bruno Haible  <bruno@clisp.org>
37375
37376         * doc/glibc-functions/*.texi: New files.
37377         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37378         to use the new files.
37379
37380 2008-01-17  Bruno Haible  <bruno@clisp.org>
37381
37382         * tests/test-gethostname.c (main): Fix printf statement.
37383
37384 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37385
37386         * modules/gethostname-tests: New file.
37387
37388         * tests/test-gethostname.c: New file.
37389
37390 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37391
37392         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37393         used by the UNAME case.  Reported by Bruno Haible
37394         <bruno@clisp.org>.
37395
37396 2008-01-17  Eric Blake  <ebb9@byu.net>
37397
37398         Convert c-strcasestr to be more efficient.
37399         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37400         (Depends-on): Add c-strcase, remove malloca, strnlen.
37401         * tests/test-c-strcasestr.c (main): Enhance test.
37402         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37403
37404 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37405
37406         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37407         Use it in creating po/Makevars.
37408
37409 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37410
37411         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37412         Applications that requires it should initialize libgcrypt
37413         manually.
37414
37415 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37416
37417         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37418
37419 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37420
37421         Fix problem with getdate on mingw32 reported by Simon Josefsson
37422         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37423         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37424         tzname", when deciding whether to declare tzname.
37425         * lib/strftime.c (tzname): Likewise.
37426
37427 2008-01-15  Bruno Haible  <bruno@clisp.org>
37428
37429         Work around a MacOS X 10.5 bug in frexpl().
37430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37431         * doc/functions/frexpl.texi: Document the bug.
37432         Reported by Elias Pipping <pipping@gentoo.org>.
37433
37434 2008-01-14  Eric Blake  <ebb9@byu.net>
37435
37436         Touch up previous patch.
37437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37438         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37439
37440         Convert strcasestr module to use Two-Way algorithm.
37441         * modules/strcasestr-simple: New module, based on the old
37442         strcasestr, but with Two-Way rather than KMP.
37443         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37444         * lib/string.in.h (rpl_strcasestr): Declare.
37445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37446         performance.
37447         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37448         * modules/string (Makefile.am): Support strcasestr.
37449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37450         * modules/strcasestr-tests (Depends-on): Check for alarm.
37451         * tests/test-strcasestr.c: Augment test.
37452         * lib/str-two-way.h: Clean up stray macro.
37453         * NEWS: Document new module.
37454         * MODULES.html.sh (string handling): Likewise.
37455         * doc/functions/strcasestr.texi: New file.
37456         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37457         here, since it is not a POSIX function.
37458
37459 2008-01-14  Colin Watson  <cjwatson@debian.org>
37460             Bruno Haible  <bruno@clisp.org>
37461
37462         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37463         works fine; if not, set REPLACE_STRSIGNAL.
37464         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37466         REPLACE_STRSIGNAL.
37467         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37468         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37469         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37470
37471 2008-01-14  Bruno Haible  <bruno@clisp.org>
37472
37473         * modules/strsignal (Include): Change to <string.h>.
37474
37475 2008-01-14  Colin Watson  <cjwatson@debian.org>
37476
37477         * modules/argp (Notice): Add a notice recommending to change
37478         XGETTEXT_OPTIONS.
37479         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37480
37481 2008-01-13  Colin Watson  <cjwatson@debian.org>
37482
37483         * modules/strsignal-tests: New file.
37484         * tests/test-strsignal.c: New file.
37485
37486         * lib/strsignal.c: New file, from glibc with modifications.
37487         * lib/siglist.h: New file, from glibc with modifications.
37488         * lib/string.in.h (strsignal): New declaration.
37489         * m4/strsignal.m4: New file.
37490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37491         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37492         * modules/strsignal: New file.
37493         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37494         HAVE_DECL_STRSIGNAL.
37495
37496 2008-01-13  Bruno Haible  <bruno@clisp.org>
37497
37498         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37499         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37500         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37501         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37502
37503 2008-01-13  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37506         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37507         * lib/argp.h (__attribute__): Likewise.
37508         * lib/c-stack.c (__attribute__): Likewise.
37509         * lib/error.h (__attribute__): Likewise.
37510         * lib/fts.c (__attribute__): Likewise.
37511         * lib/openat.h (__attribute__): Likewise.
37512         * lib/stdio.in.h (__attribute__): Likewise.
37513         * lib/string.in.h (__attribute__): Likewise.
37514         * lib/utimens.c (__attribute__): Likewise.
37515         * lib/vasnprintf.h (__attribute__): Likewise.
37516         * lib/xalloc.h (__attribute__): Likewise.
37517         * lib/xprintf.h (__attribute__): Likewise.
37518         * lib/xstrtol.h (__attribute__): Likewise.
37519         * lib/xvasprintf.h (__attribute__): Likewise.
37520
37521 2008-01-12  Bruno Haible  <bruno@clisp.org>
37522
37523         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37524         * doc/glibc-headers/a.out.texi: New file.
37525         * doc/glibc-headers/aliases.texi: New file.
37526         * doc/glibc-headers/alloca.texi: New file.
37527         * doc/glibc-headers/ar.texi: New file.
37528         * doc/glibc-headers/argp.texi: New file.
37529         * doc/glibc-headers/argz.texi: New file.
37530         * doc/glibc-headers/byteswap.texi: New file.
37531         * doc/glibc-headers/crypt.texi: New file.
37532         * doc/glibc-headers/endian.texi: New file.
37533         * doc/glibc-headers/envz.texi: New file.
37534         * doc/glibc-headers/err.texi: New file.
37535         * doc/glibc-headers/error.texi: New file.
37536         * doc/glibc-headers/execinfo.texi: New file.
37537         * doc/glibc-headers/fpu_control.texi: New file.
37538         * doc/glibc-headers/fstab.texi: New file.
37539         * doc/glibc-headers/fts.texi: New file.
37540         * doc/glibc-headers/getopt.texi: New file.
37541         * doc/glibc-headers/ieee754.texi: New file.
37542         * doc/glibc-headers/ifaddrs.texi: New file.
37543         * doc/glibc-headers/libintl.texi: New file.
37544         * doc/glibc-headers/mcheck.texi: New file.
37545         * doc/glibc-headers/mntent.texi: New file.
37546         * doc/glibc-headers/obstack.texi: New file.
37547         * doc/glibc-headers/paths.texi: New file.
37548         * doc/glibc-headers/printf.texi: New file.
37549         * doc/glibc-headers/pty.texi: New file.
37550         * doc/glibc-headers/resolv.texi: New file.
37551         * doc/glibc-headers/shadow.texi: New file.
37552         * doc/glibc-headers/sysexits.texi: New file.
37553         * doc/glibc-headers/ttyent.texi: New file.
37554
37555 2008-01-12  Jim Meyering  <meyering@redhat.com>
37556
37557         announce-gen: emit Gnulib's git-based version string.
37558         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37559         New option --gnulib-version=V, where V is expected to be
37560         the output of running git describe in the gnulib directory.
37561         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37562         not useful, and plan to stop publishing an xdelta file with each
37563         coreutils release.
37564
37565         * build-aux/announce-gen: Also check for lzma-compressed files.
37566
37567 2008-01-11  Bruno Haible  <bruno@clisp.org>
37568
37569         * tests/test-memmem.c (main): Increase maximum allowed time.
37570         * tests/test-strstr.c (main): Likewise.
37571
37572 2008-01-11  Bruno Haible  <bruno@clisp.org>
37573
37574         * doc/functions/memmem.texi: Add more precisions about platforms.
37575         * doc/functions/strstr.texi: Likewise.
37576
37577 2008-01-10  Eric Blake  <ebb9@byu.net>
37578
37579         * m4/strstr.m4: Delete cruft from copy-n-paste.
37580         Reported by Bruno Haible.
37581
37582 2008-01-10  Bruno Haible  <bruno@clisp.org>
37583
37584         Make c-strstr rely on strstr.
37585         * lib/c-strstr.c: Don't include str-kmp.h.
37586         (c_strstr): Define in terms of strstr.
37587         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37588         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37589
37590 2008-01-10  Bruno Haible  <bruno@clisp.org>
37591
37592         * doc/gnulib.texi (String Functions in C Locale): New section.
37593         * doc/c-ctype.texi: New file.
37594         * doc/c-strcase.texi: New file.
37595         * doc/c-strcaseeq.texi: New file.
37596         * doc/c-strcasestr.texi: New file.
37597         * doc/c-strstr.texi: New file.
37598         * doc/c-strtod.texi: New file.
37599         * doc/c-strtold.texi: New file.
37600
37601 2008-01-10  Eric Blake  <ebb9@byu.net>
37602
37603         * lib/relocatable.h: Fix a comment.
37604
37605 2008-01-10  Eric Blake  <ebb9@byu.net>
37606
37607         Share two-way algorithm.
37608         * lib/str-two-way.h: New file, merged from...
37609         * lib/memmem.c: ...here...
37610         * lib/strstr.c: ...and here.
37611         * modules/memmem (Files): Use it.
37612         * modules/strstr (Files): Likewise.
37613
37614         Avoid quadratic strstr implementations.
37615         * lib/strstr.c: New file.
37616         * m4/strstr.m4: Likewise.
37617         * modules/strstr: Likewise.
37618         * modules/strstr-tests: Likewise.
37619         * tests/test-strstr.c: Likewise.
37620         * lib/string.in.h (rpl_strstr): Declare.
37621         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37623         * modules/string (Makefile.am): Likewise.
37624         * MODULES.html.sh (string handling): Mention new module.
37625         * doc/functions/strstr.texi (strstr): Document the bug.
37626
37627 2008-01-10  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/relocatable.h (relocate): State whether result is freshly
37630         allocated or not.
37631         * lib/relocatable.c (relocate): Return a freshly allocated string
37632         instead of a pointer to a privately held string.
37633         Reported by Sylvain Beucler <beuc@gnu.org>.
37634
37635 2008-01-10  Colin Watson  <cjwatson@debian.org>
37636
37637         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37638         s/S_ISNLK/S_ISLNK/.
37639
37640 2008-01-09  Bruno Haible  <bruno@clisp.org>
37641
37642         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37643         and other files.
37644         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37645         if it's only a guess.
37646         * modules/memmem: Simplify by depending on memmem-simple.
37647
37648 2008-01-09  Bruno Haible  <bruno@clisp.org>
37649
37650         Work around OpenBSD 4.0 tdelete() bug.
37651         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37652         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37653         macros and don't redefine the enum values.
37654         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37655         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37656         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37657
37658 2008-01-09  Bruno Haible  <bruno@clisp.org>
37659
37660         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37661         (main): Don't perform the tests if setlocale did not install a UTF-8
37662         locale. Needed on OpenBSD 4.0.
37663         * modules/wcwidth-tests (Depends-on): Add localcharset.
37664
37665 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37666
37667         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37668         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37669         * NEWS: announce this.
37670         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37671
37672 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37673         and Eric Blake  <ebb9@byu.net>
37674
37675         Add memmem-simple module.
37676         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37677         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37678         * modules/memmem-simple: New file.
37679         * modules/memmem (Description): Tweak.
37680         * MODULES.html.sh (string handling): Mention new module.
37681         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37682         addressed by memmem-simple.
37683         * NEWS: Document the difference.
37684
37685 2008-01-09  Eric Blake  <ebb9@byu.net>
37686
37687         Give gcc some memmem optimization hints.
37688         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37689         (strcasestr): Declare as pure.
37690         * modules/memmem (Maintainer): Claim my implementation.
37691
37692 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37693
37694         Support AIX 6.1 and higher.
37695         * build-aux/config.libpath: Likewise.
37696         * build-aux/config.rpath: Likewise.
37697
37698 2008-01-08  Jim Meyering  <meyering@redhat.com>
37699             Bruno Haible  <bruno@clisp.org>
37700
37701         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37702         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37703         Reported by Peter Fales in
37704         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37705
37706 2008-01-08  Bruno Haible  <bruno@clisp.org>
37707
37708         * modules/unictype/category-of (Depends-on): Add
37709         unictype/category-none.
37710         * modules/unictype/category-and-tests (Depends-on): Add
37711         unictype/category-{L,N,Lu,Nd}.
37712         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37713         * modules/unictype/category-or-tests (Depends-on): Add
37714         unictype/category-{L,N}.
37715         * modules/unictype/category-name-tests (Depends-on): Add
37716         unictype/category-{Z,Nl}.
37717         Reported by Simon Josefsson.
37718
37719 2008-01-08  Bruno Haible  <bruno@clisp.org>
37720
37721         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37722         convention better.
37723         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37724         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37725         Reported by Peter Miller <millerp@canb.auug.org.au>.
37726
37727 2008-01-08  Eric Blake  <ebb9@byu.net>
37728
37729         Rewrite memmem to guarantee linear complexity without malloc.
37730         * lib/memmem.c (memmem): Use Two-Way rather than
37731         Knuth-Morris-Pratt, to allow O(1) space usage.
37732         (critical_factorization, two_way_short_needle)
37733         (two_way_long_needle): New functions.
37734         (knuth_morris_pratt): Delete.
37735         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37736         Add stdint.
37737         * tests/test-memmem.c (main): Add tests for periodic needle and
37738         sublinear performance.
37739         * doc/functions/memmem.texi (memmem): Document other deficiencies
37740         in cygwin and older glibc.
37741
37742 2008-01-08  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37745         augmentation.
37746
37747 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37748
37749         Add a configure time option: --disable-acl.
37750         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37751         AC_ARG_ENABLE(acl).
37752
37753 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37754
37755         * tests/test-localename.c: Don't include obsolete "setenv.h".
37756
37757         * modules/localename-tests (Depends-on): Need unsetenv.
37758
37759 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37760
37761         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37762
37763 2008-01-06  Colin Watson  <cjwatson@debian.org>
37764
37765         * users.txt: Add man-db.
37766
37767 2008-01-07  Bruno Haible  <bruno@clisp.org>
37768
37769         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37770         previous section name.
37771
37772 2008-01-07  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/progname.c (set_program_name): Don't strip off a leading
37775         "lt-" prefix outside a .libs directory.
37776         Suggested by Paul Eggert.
37777
37778 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37779             Bruno Haible  <bruno@clisp.org>
37780
37781         Improve memory cleanup in 'relocatable' module.
37782         * lib/relocatable.h (compute_curr_prefix): Change return type to
37783         'char *'.
37784         * lib/relocatable.c (compute_curr_prefix): Change return type to
37785         'char *'. Free curr_installdir after use.
37786         (relocate): Free curr_prefix_better after use.
37787         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37788
37789 2008-01-01  Bruno Haible  <bruno@clisp.org>
37790
37791         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37792         failure on older glibc systems.
37793         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37794
37795 2008-01-05  Eric Blake  <ebb9@byu.net>
37796
37797         Avoid quadratic system memmem.
37798         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37799         Reported by Ralf Wildenhues.
37800
37801         Fix memmem test for mingw.
37802         * modules/memmem-tests (configure.ac): Check for alarm.
37803         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37804         it.
37805         * doc/functions/memmem.texi: New file.
37806         * doc/gnulib.texi (Function Substitutes): Add memmem.
37807         Reported by Bruno Haible.
37808
37809 2008-01-04  Bruno Haible  <bruno@clisp.org>
37810
37811         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37812         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37813         gl_HEADER_STRING_H_DEFAULTS.
37814
37815 2008-01-04  Eric Blake  <ebb9@byu.net>
37816
37817         Shorten duration of memmem test.
37818         * tests/test-memmem.c (main): Use alarm to declare failure if test
37819         is taking too long.
37820         Reported by Ralf Wildenhues.
37821
37822 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37823
37824         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37825         string, needed by strerror.
37826
37827 2008-01-03  Colin Watson  <cjwatson@debian.org>
37828             Bruno Haible  <bruno@clisp.org>
37829
37830         * doc/gnulib-tool.texi (Localization): New section.
37831
37832 2008-01-02  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37835         variables to 'unsigned char *' type.
37836         Reported by Paul Eggert.
37837
37838 2008-01-02  Jim Meyering  <jim@meyering.net>
37839
37840         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37841
37842 2007-12-31  Jim Meyering  <jim@meyering.net>
37843
37844         Avoid use of private FTS type name.
37845         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37846
37847 2007-12-30  Karl Berry  <karl@gnu.org>
37848
37849         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37850         work around defect in Texinfo and/or the standalone Info browser.
37851
37852 2007-12-30  Bruno Haible  <bruno@clisp.org>
37853
37854         Unify 5 copies of the KMP code.
37855         * lib/str-kmp.h: New file.
37856         * lib/c-strcasestr.c: Include str-kmp.h.
37857         (knuth_morris_pratt): Remove function.
37858         (c_strcasestr): Update.
37859         * lib/c-strstr.c: Include str-kmp.h.
37860         (knuth_morris_pratt): Remove function.
37861         (c_strcasestr): Update.
37862         * lib/mbscasestr.c: Include str-kmp.h.
37863         (knuth_morris_pratt_unibyte): Remove function.
37864         * lib/mbsstr.c: Include str-kmp.h.
37865         (knuth_morris_pratt_unibyte): Remove function.
37866         * lib/strcasestr.c: Include str-kmp.h.
37867         (knuth_morris_pratt): Remove function.
37868         (strcasestr): Update.
37869         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37870         * modules/c-strstr (Files): Likewise.
37871         * modules/mbscasestr (Files): Likewise.
37872         * modules/mbsstr (Files): Likewise.
37873         * modules/strcasestr (Files): Likewise.
37874         Suggested by Paul Eggert.
37875
37876 2007-12-30  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37879         defined.
37880
37881 2007-12-30  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/xmalloca.h: Include xalloc.h.
37884         (xnmalloca): New macro.
37885
37886 2007-12-30  Bruno Haible  <bruno@clisp.org>
37887
37888         * lib/malloca.h (nmalloca): New macro.
37889         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37890         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37891         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37892         knuth_morris_pratt_multibyte): Likewise.
37893         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37894         knuth_morris_pratt_multibyte): Likewise.
37895         * lib/memmem.c (knuth_morris_pratt): Likewise.
37896         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37897
37898 2007-12-25  Bruno Haible  <bruno@clisp.org>
37899
37900         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37901         * lib/glob.c: Don't include openat.h.
37902         (link_exists2_p): Add back the code that deals with the
37903         !GLOB_ALTDIRFUNC case.
37904         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37905         let it do the filename concatenation.
37906         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37907         * modules/glob (Depends-on): Remove openat.
37908
37909 2007-12-31  Bruno Haible  <bruno@clisp.org>
37910
37911         * modules/dirfd (License): Change to LGPLv2+.
37912         Approved by Jim Meyering.
37913
37914 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37915
37916         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37917         when multiplying M by sizeof (size_t).
37918
37919 2007-12-10  Martin Lambers  <marlam@marlam.de>
37920
37921         Override getpagesize on mingw.
37922         * lib/getpagesize.c: New file.
37923         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37924         * modules/getpagesize (Files): Add lib/getpagesize.c.
37925         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37927         REPLACE_GETPAGESIZE.
37928         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37929
37930 2007-12-25  Bruno Haible  <bruno@clisp.org>
37931
37932         * modules/localcharset (Notice): New field.
37933         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37934         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37935
37936 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37937             Bruno Haible  <bruno@clisp.org>
37938
37939         Avoid using the syntax symbol() in formatted documentation.
37940         * MODULES.html.sh (func_module): When replacing symbol() with a
37941         hyperlink, remove the parentheses. Show an error if some remain.
37942         Recognize and render the '...' syntax.
37943         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37944         Rework. Add paragraph about GCC's inlining.
37945         * doc/alloca.texi: Likewise.
37946         * doc/error.texi: Remove parentheses from symbol reference.
37947         * doc/gnulib-intro.texi: Likewise.
37948         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37949         * modules/fnmatch (Description): Reword to say "the ... function".
37950         * modules/full-read (Description): Likewise.
37951         * modules/full-write (Description): Likewise.
37952         * modules/safe-read (Description): Likewise.
37953         * modules/safe-write (Description): Likewise.
37954         * modules/strchrnul (Description): Likewise.
37955         * modules/trim (Description): Likewise.
37956         * modules/error (Description): Remove parentheses from symbol
37957         references.
37958         * modules/verror (Description): Likewise.
37959         Reported by Karl Berry.
37960
37961 2007-12-25  Bruno Haible  <bruno@clisp.org>
37962
37963         Fixup after 2007-10-16 commit.
37964         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37965
37966 2007-12-24  Bruno Haible  <bruno@clisp.org>
37967
37968         Make --enable-relocatable work with DESTDIR.
37969         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37970         to compute installdir from destprog.
37971         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37972         also set the RELOC_DESTDIR variable.
37973         Reported by Левашев Иван <octagram@bluebottle.com>.
37974
37975 2007-12-24  Bruno Haible  <bruno@clisp.org>
37976
37977         Fix link error due to xalloc_die().
37978         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37979         of xreadlink.
37980         * lib/relocwrapper.c: Update comments.
37981         * build-aux/install-reloc: Remove xreadlink.c from file list.
37982         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37983         xreadlink.c.
37984         Reported by Левашев Иван <octagram@bluebottle.com>.
37985
37986 2007-12-24  Bruno Haible  <bruno@clisp.org>
37987
37988         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37989         * lib/setenv.h: Remove file.
37990         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37991         lib/setenv.h.
37992         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37993         (Depends-on): Add stdlib.
37994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37995         gl_FUNC_UNSETENV.
37996         (Include): Replace setenv.h with <stdlib.h>.
37997         * modules/unsetenv: New file.
37998         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37999         * lib/unsetenv.c: Include <stdlib.h> first.
38000         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
38001         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
38002         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
38003         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
38004         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
38005         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
38007         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38008         * doc/functions/unsetenv.texi: Update.
38009         * modules/xsetenv (Depends-on): Add unsetenv.
38010         * modules/getdate (Depends-on): Likewise.
38011         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38012         * lib/xsetenv.c: Don't include setenv.h.
38013         * lib/getdate.y: Likewise.
38014         * lib/relocwrapper.c: Likewise.
38015         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
38016         (Depends-on): Add stdlib.
38017         * NEWS: Mention the changes.
38018         Reported by Левашев Иван <octagram@bluebottle.com>.
38019
38020 2007-12-23  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/memmem.c (memmem): Use lowercase variable names. Tab
38023         indentation.
38024
38025 2007-12-23  Bruno Haible  <bruno@clisp.org>
38026
38027         * lib/c-strcasestr.c: Add more comments.
38028         * lib/c-strstr.c: Likewise.
38029         * lib/mbscasestr.c: Likewise.
38030         * lib/mbsstr.c: Likewise.
38031         * lib/strcasestr.c: Likewise.
38032         * lib/memmem.c: Likewise.
38033
38034 2007-12-23  Bruno Haible  <bruno@clisp.org>
38035
38036         * tests/test-memmem.c: Include <string.h> first.
38037
38038 2007-12-22  Bruno Haible  <bruno@clisp.org>
38039
38040         * gnulib-tool (func_create_testdir): Change $auxdir while generating
38041         the contents of $testsbase.
38042         Reported by Ralf Wildenhues.
38043
38044 2007-12-22  Bruno Haible  <bruno@clisp.org>
38045
38046         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
38047         two variables local_ldadd_before, local_ldadd_last.
38048
38049 2007-12-20  Eric Blake  <ebb9@byu.net>
38050
38051         Work around circular library issue when cross-compiling.
38052         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
38053         that progname.o does not need to pull in rpl_memcmp.
38054
38055 2007-12-19  Eric Blake  <ebb9@byu.net>
38056
38057         Fix memmem to avoid O(n^2) worst-case complexity.
38058         * lib/memmem.c (knuth_morris_pratt): New function.
38059         (memmem): Use it if first few naive iterations fail.
38060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
38061         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
38062         * modules/memchr (License): Likewise.
38063         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
38064         malloca.
38065         * tests/test-memmem.c: Rewrite, borrowing ideas from
38066         test-mbsstr1.c; the old version wouldn't even compile!
38067         * modules/memmem-tests: New file.
38068         * lib/string.in.h (rpl_memmem): Add declaration.
38069         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
38070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
38071         REPLACE_MEMMEM.
38072
38073 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38074
38075         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38076         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38077         before any system include files, and undef after them all.  This
38078         should fix a problem on VMS reported by John E. Malmberg in
38079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38080
38081 2007-12-17  Eric Blake  <ebb9@byu.net>
38082
38083         Revert addition of verify, for BSD/OS.
38084         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38085         can't handle large files, for the sake of obsolete platforms.
38086         * modules/fseeko (Depends-on): Remove verify.
38087         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38088         * doc/functions/ftello.texi (ftello): Likewise.
38089         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38090         Reported by Larry Jones.
38091
38092 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38093
38094         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38095         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38096
38097 2007-12-17  Jim Meyering  <meyering@redhat.com>
38098
38099         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38100         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38101         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38102         * modules/getcwd (Depends-on): Add openat.
38103         Reported by Petr Salinger.
38104
38105 2007-12-17  Bruno Haible  <bruno@clisp.org>
38106
38107         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38108         avoid a segmentation fault of the configure test on x86_64 systems.
38109
38110 2007-12-15  Jim Meyering  <meyering@redhat.com>
38111
38112         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38113
38114 2007-12-13  Eric Blake  <ebb9@byu.net>
38115
38116         Another fseek test.
38117         * tests/test-fseek.c (main): Also test ungetc handling.
38118         * tests/test-fseeko.c (main): Likewise.
38119         * modules/fseeko (Depends-on): Add verify.
38120         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38121         large.
38122         Reported by Larry Jones.
38123
38124         Fix fseeko on mingw.
38125         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38126         seek.
38127
38128         Beef up fseek tests.
38129         * tests/test-fseek.c (main): Also test eof handling.
38130         * tests/test-fseeko.c (main): Likewise.
38131         Reported by Larry Jones.
38132
38133 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
38134
38135         Fix fseeko on BSD-based platforms.
38136         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
38137         successful seek.
38138
38139 2007-12-12  Eric Blake  <ebb9@byu.net>
38140
38141         Allow circular dependency of separate libtests.a
38142         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
38143         when use_libtests.
38144
38145 2007-12-11  Eric Blake  <ebb9@byu.net>
38146
38147         Fix bug with -0.0L in previous patch.
38148         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
38149         * tests/test-isnan.c (main): Also test on zeroes.
38150         * tests/test-isnanf.c (main): Likewise.
38151         * tests/test-isnanl.h (main): Likewise.
38152
38153         Detect pseudo-denormals on x86 even when cross-compiling.
38154         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
38155         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
38156         invalid bit patterns that happen to satisfy ==.
38157
38158         Avoid link failures with separate libtests.a.
38159         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
38160         last, to satisfy circular dependencies.
38161
38162 2007-12-11  Eric Blake  <ebb9@byu.net>
38163         and Bruno Haible  <bruno@clisp.org>
38164
38165         Fix OpenBSD 4.0 <float.h> handling of long double.
38166         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
38167         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
38168         * doc/headers/float.texi (float.h): Document OpenBSD bug.
38169
38170 2007-12-11  Jim Meyering  <meyering@redhat.com>
38171
38172         * users.txt: Add libvirt.
38173
38174         Support versions of autoconf prior to 2.59c.
38175         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
38176         if it is not already defined.
38177
38178 2007-12-09  Bruno Haible  <bruno@clisp.org>
38179
38180         Let 'gnulib-tool --import' collect sources needed for the tests in
38181         tests/ rather than in lib/.
38182         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
38183         argument. If true, add rules to generate libtests.a, and put libtests.a
38184         into $(LDADD). Consider source files in subdirectories and set
38185         uses_subdirs.
38186         (func_emit_initmacro_start, func_emit_initmacro_end,
38187         func_emit_initmacro_done): Pass all arguments explicitly.
38188         (func_import): Determine two module lists main_modules,
38189         testsrelated_modules. Determine use_libtests. Determine two variables
38190         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
38191         instead of just sed_transform_lib_file. Determine two variables
38192         main_files and testsrelated_files. Compute 'files' as the union of
38193         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
38194         func_add_or_update. In the generated gnulib-comp.m4, collect the
38195         object files for tests/ in different variables than those for lib/.
38196         Substitute LIBTESTS_LIBDEPS.
38197         (func_create_testdir): Combine the uses_subdirs results from
38198         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
38199
38200 2007-12-09  Bruno Haible  <bruno@clisp.org>
38201
38202         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
38203         the build-aux directory.
38204
38205 2007-12-09  Bruno Haible  <bruno@clisp.org>
38206
38207         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
38208         introduced on 2006-09-09.
38209
38210 2007-12-07  Jim Meyering  <meyering@redhat.com>
38211
38212         Let these macros work also with autoconf-2.59.
38213         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
38214         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
38215         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38216
38217 2007-12-06  Jim Meyering  <meyering@redhat.com>
38218
38219         Avoid a configure-time syntax error in gl_FUNC_ACL.
38220         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
38221         function in each branch, before testing the cache variable.
38222
38223 2007-12-04  Eric Blake  <ebb9@byu.net>
38224
38225         Make scripts executable.
38226         * build-aux/config.guess: Add execute permissions.
38227         * build-aux/config.sub: Likewise.
38228         * build-aux/gendocs.sh: Likewise.
38229
38230         Fix frexp on mingw.
38231         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
38232         cross-compiling.
38233         * doc/functions/frexp.texi (frexp): Document the bug.
38234
38235         Make cygwin fseeko check more reliable.
38236         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
38237         version numbers, rather than unrelated feature check.
38238         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
38239         * doc/functions/ftello.texi (ftello): Likewise.
38240         Reported by Bruno Haible.
38241
38242         * m4/strerror.m4: Bump version number.
38243
38244 2007-12-03  Bruno Haible  <bruno@clisp.org>
38245
38246         * doc/functions/mprotect.texi: Mention the mingw problem.
38247
38248 2007-12-03  Eric Blake  <ebb9@byu.net>
38249
38250         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
38251         REPLACE_STRERROR is initialized before this macro.
38252
38253 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38254
38255         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38256         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38257         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38258         put -lsec in even for programs other than 'ls'.  This fixes a problem
38259         for gettext reported by Bruno Haible in
38260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38261         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38262         Add support for Solaris 10.  This isn't efficient, but should get the
38263         job done for now.
38264
38265 2007-12-03  James Youngman  <jay@gnu.org>
38266
38267         * doc/regexprops-generic.texi: change "an close-group" to "a
38268         close-group" and "illegal" to "not allowed".
38269
38270 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38271
38272         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38273         pr_byname.h. Needed for the rare case when the maintainer has done
38274         "make maintainer-clean" in the source directory and then attempts a
38275         build outside the source directory.
38276         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38277         scripts_byname.h.
38278
38279 2007-12-02  Martin Lambers <marlam@marlam.de>
38280             Bruno Haible  <bruno@clisp.org>
38281
38282         * lib/getpagesize.h: Remove file.
38283         * lib/unistd.in.h: Include declaration of getpagesize here.
38284         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38285         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38286         HAVE_SYS_PARAM_H.
38287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38288         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38289         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38290         (Depends-on): Add unistd.
38291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38292         (Include): Use <unistd.h> instead of getpagesize.h.
38293         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38294         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38295         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38296         gl_GETPAGESIZE invocation, already handled by module dependency.
38297         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38298
38299 2007-12-02  Bruno Haible  <bruno@clisp.org>
38300
38301         * modules/strings-tests: New file.
38302         * tests/test-strings.c: New file.
38303
38304         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38305         * lib/strings.in.h: New file.
38306         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38307         * m4/strings_h.m4: New file.
38308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38309         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38310         * modules/strings: New file.
38311         * modules/string (Makefile.am): Update.
38312         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38313         Reported by Karl Berry.
38314
38315 2007-12-01  Eric Blake  <ebb9@byu.net>
38316
38317         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38318         accomodate fix in cygwin 1.5.25.
38319
38320 2007-12-01  Jim Meyering  <meyering@redhat.com>
38321
38322         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38323         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38324         that would inhibit utf8-optimization of a regexp containing line-
38325         or buffer-anchors, e.g., `^', `$'.
38326
38327 2007-11-30  Bruno Haible  <bruno@clisp.org>
38328
38329         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38330         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38331         glthread_recursive_lock_init.
38332         * lib/lock.c (glthread_recursive_lock_init)
38333         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38334         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38335
38336 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38337
38338         New function qset_acl, like set_acl but with syscall semantics.
38339         * lib/acl.h (qset_acl): New decl.
38340         * lib/acl.c (qset_acl): New function.
38341         (set_acl): Use new function.  Use more-consistent diagnostics.
38342
38343 2007-11-28  Jim Meyering  <meyering@redhat.com>
38344
38345         * modules/physmem (License): Change from GPL to LGPLv2+.
38346
38347 2007-11-26  Bruno Haible  <bruno@clisp.org>
38348
38349         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38350         'long double' type has excess precision.
38351         Reported by Jim Meyering in
38352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38353
38354 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38355
38356         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38357         Sync from <http://gnu.org/licenses>.
38358         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38359         with license text from same location.
38360         * doc/maintain.texi, doc/standards.texi:  Sync from
38361         <http://savannah.gnu.org/projects/gnustandards>.
38362
38363 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
38364         and Jim Meyering  <meyering@redhat.com>
38365
38366         Adjust getdate' grammar to accept a slightly more regular language.
38367         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38368         Before, the former was rejected.
38369         * lib/getdate.y (digits_to_date_time): New function, factored
38370         out of ...
38371         (number): ...here.  Just call digits_to_date_time.
38372         (hybrid): New non-terminal to handle an <unsigned number,
38373         signed relative offset> sequence consistently.
38374
38375 2007-11-18  Jim Meyering  <meyering@redhat.com>
38376
38377         Pull my changes from coreutils:
38378         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38379         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38380         use of $gnulib_tool_option_extras, so that it's separated from the
38381         preceding argument.
38382
38383         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38384         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38385         parent destination directories before copying a file into place.
38386
38387 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38388
38389         bootstrap: work also with 4-argument variant of AC_INIT
38390         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38391
38392 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38393
38394         Port test-getaddrinfo to Solaris.
38395         Problem reported by Bruno Haible in
38396         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38397         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38398         explanation of setting 'hints'.
38399         Don't reject an implementation merely because it returns EAI_SERVICE.
38400         (EAI_SERVICE): Define to 0 if not defined.
38401
38402 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38403
38404         The license of gnu-make and posix-shell is now "GPLed build tool".
38405         * modules/gnu-make (License): Likewise.
38406         * modules/posix-shell (License): Likewise.
38407
38408         New module posix-shell, for determining a POSIX shell
38409         or perhaps something that is close enough to a POSIX shell.
38410         * m4/posix-shell.m4: New file.
38411         * modules/posix-shell: New file.
38412
38413         * MODULES.html.sh: Mention new module.
38414
38415         New module gnu-make, for determining whether we're using GNU Make.
38416         * m4/gnu-make.m4: New file.
38417         * modules/gnu-make: New file.
38418         * MODULES.html.sh: Mention new module.
38419
38420 2007-11-14  Jim Meyering  <meyering@redhat.com>
38421
38422         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38423         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38424         use this macro to create a function _definition_.
38425         Remove useless "#undef ARGMATCH_DIE".
38426
38427 2007-11-14  Bruno Haible  <bruno@clisp.org>
38428
38429         * lib/config.charset: Update for OpenBSD 4.1.
38430         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38431
38432 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38433
38434         Document 64-bit #if problems in stdint.texi.
38435         * doc/headers/stdint.texi (stdint.h): Mention problems with
38436         64-bit-#if, and how to work around them.
38437
38438         Don't insist on 'long long int' support in the preprocessor.  It
38439         breaks too many things.  For example, PRIdMAX still uses a 'long
38440         long int' format with the latest Sun compiler, even though
38441         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38442         preprocessor problem.  This causes the latest coreutils to dump
38443         core on Solaris 10 sparc with the Sun C compiler.
38444         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38445         the troublesome expressions at configure-time, not at #if-time.
38446         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38447         preprocessor.
38448         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38449         compile-time C checks, done at 'configure'-time.
38450         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38451         * modules/inttypes (Makefile): Substitute the new symbols that
38452         gl_INTTYPES_H now generates.
38453         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38454
38455 2007-11-12  Bruno Haible  <bruno@clisp.org>
38456
38457         Tests for Unicode character classification functions.
38458
38459         * modules/unictype/bidicategory-byname-tests: New file.
38460         * modules/unictype/bidicategory-name-tests: New file.
38461         * modules/unictype/bidicategory-of-tests: New file.
38462         * modules/unictype/bidicategory-test-tests: New file.
38463         * modules/unictype/block-list-tests: New file.
38464         * modules/unictype/block-of-tests: New file.
38465         * modules/unictype/block-test-tests: New file.
38466         * modules/unictype/category-C-tests: New file.
38467         * modules/unictype/category-Cc-tests: New file.
38468         * modules/unictype/category-Cf-tests: New file.
38469         * modules/unictype/category-Cn-tests: New file.
38470         * modules/unictype/category-Co-tests: New file.
38471         * modules/unictype/category-Cs-tests: New file.
38472         * modules/unictype/category-L-tests: New file.
38473         * modules/unictype/category-Ll-tests: New file.
38474         * modules/unictype/category-Lm-tests: New file.
38475         * modules/unictype/category-Lo-tests: New file.
38476         * modules/unictype/category-Lt-tests: New file.
38477         * modules/unictype/category-Lu-tests: New file.
38478         * modules/unictype/category-M-tests: New file.
38479         * modules/unictype/category-Mc-tests: New file.
38480         * modules/unictype/category-Me-tests: New file.
38481         * modules/unictype/category-Mn-tests: New file.
38482         * modules/unictype/category-N-tests: New file.
38483         * modules/unictype/category-Nd-tests: New file.
38484         * modules/unictype/category-Nl-tests: New file.
38485         * modules/unictype/category-No-tests: New file.
38486         * modules/unictype/category-P-tests: New file.
38487         * modules/unictype/category-Pc-tests: New file.
38488         * modules/unictype/category-Pd-tests: New file.
38489         * modules/unictype/category-Pe-tests: New file.
38490         * modules/unictype/category-Pf-tests: New file.
38491         * modules/unictype/category-Pi-tests: New file.
38492         * modules/unictype/category-Po-tests: New file.
38493         * modules/unictype/category-Ps-tests: New file.
38494         * modules/unictype/category-S-tests: New file.
38495         * modules/unictype/category-Sc-tests: New file.
38496         * modules/unictype/category-Sk-tests: New file.
38497         * modules/unictype/category-Sm-tests: New file.
38498         * modules/unictype/category-So-tests: New file.
38499         * modules/unictype/category-Z-tests: New file.
38500         * modules/unictype/category-Zl-tests: New file.
38501         * modules/unictype/category-Zp-tests: New file.
38502         * modules/unictype/category-Zs-tests: New file.
38503         * modules/unictype/category-and-not-tests: New file.
38504         * modules/unictype/category-and-tests: New file.
38505         * modules/unictype/category-byname-tests: New file.
38506         * modules/unictype/category-name-tests: New file.
38507         * modules/unictype/category-none-tests: New file.
38508         * modules/unictype/category-of-tests: New file.
38509         * modules/unictype/category-or-tests: New file.
38510         * modules/unictype/category-test-withtable-tests: New file.
38511         * modules/unictype/combining-class-tests: New file.
38512         * modules/unictype/ctype-alnum-tests: New file.
38513         * modules/unictype/ctype-alpha-tests: New file.
38514         * modules/unictype/ctype-blank-tests: New file.
38515         * modules/unictype/ctype-cntrl-tests: New file.
38516         * modules/unictype/ctype-digit-tests: New file.
38517         * modules/unictype/ctype-graph-tests: New file.
38518         * modules/unictype/ctype-lower-tests: New file.
38519         * modules/unictype/ctype-print-tests: New file.
38520         * modules/unictype/ctype-punct-tests: New file.
38521         * modules/unictype/ctype-space-tests: New file.
38522         * modules/unictype/ctype-upper-tests: New file.
38523         * modules/unictype/ctype-xdigit-tests: New file.
38524         * modules/unictype/decimal-digit-tests: New file.
38525         * modules/unictype/digit-tests: New file.
38526         * modules/unictype/mirror-tests: New file.
38527         * modules/unictype/numeric-tests: New file.
38528         * modules/unictype/property-alphabetic-tests: New file.
38529         * modules/unictype/property-ascii-hex-digit-tests: New file.
38530         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38531         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38532         * modules/unictype/property-bidi-block-separator-tests: New file.
38533         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38534         * modules/unictype/property-bidi-common-separator-tests: New file.
38535         * modules/unictype/property-bidi-control-tests: New file.
38536         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38537         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38538         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38539         * modules/unictype/property-bidi-european-digit-tests: New file.
38540         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38541         * modules/unictype/property-bidi-left-to-right-tests: New file.
38542         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38543         * modules/unictype/property-bidi-other-neutral-tests: New file.
38544         * modules/unictype/property-bidi-pdf-tests: New file.
38545         * modules/unictype/property-bidi-segment-separator-tests: New file.
38546         * modules/unictype/property-bidi-whitespace-tests: New file.
38547         * modules/unictype/property-byname-tests: New file.
38548         * modules/unictype/property-combining-tests: New file.
38549         * modules/unictype/property-composite-tests: New file.
38550         * modules/unictype/property-currency-symbol-tests: New file.
38551         * modules/unictype/property-dash-tests: New file.
38552         * modules/unictype/property-decimal-digit-tests: New file.
38553         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38554         * modules/unictype/property-deprecated-tests: New file.
38555         * modules/unictype/property-diacritic-tests: New file.
38556         * modules/unictype/property-extender-tests: New file.
38557         * modules/unictype/property-format-control-tests: New file.
38558         * modules/unictype/property-grapheme-base-tests: New file.
38559         * modules/unictype/property-grapheme-extend-tests: New file.
38560         * modules/unictype/property-grapheme-link-tests: New file.
38561         * modules/unictype/property-hex-digit-tests: New file.
38562         * modules/unictype/property-hyphen-tests: New file.
38563         * modules/unictype/property-id-continue-tests: New file.
38564         * modules/unictype/property-id-start-tests: New file.
38565         * modules/unictype/property-ideographic-tests: New file.
38566         * modules/unictype/property-ids-binary-operator-tests: New file.
38567         * modules/unictype/property-ids-trinary-operator-tests: New file.
38568         * modules/unictype/property-ignorable-control-tests: New file.
38569         * modules/unictype/property-iso-control-tests: New file.
38570         * modules/unictype/property-join-control-tests: New file.
38571         * modules/unictype/property-left-of-pair-tests: New file.
38572         * modules/unictype/property-line-separator-tests: New file.
38573         * modules/unictype/property-logical-order-exception-tests: New file.
38574         * modules/unictype/property-lowercase-tests: New file.
38575         * modules/unictype/property-math-tests: New file.
38576         * modules/unictype/property-non-break-tests: New file.
38577         * modules/unictype/property-not-a-character-tests: New file.
38578         * modules/unictype/property-numeric-tests: New file.
38579         * modules/unictype/property-other-alphabetic-tests: New file.
38580         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38581         * modules/unictype/property-other-grapheme-extend-tests: New file.
38582         * modules/unictype/property-other-id-continue-tests: New file.
38583         * modules/unictype/property-other-id-start-tests: New file.
38584         * modules/unictype/property-other-lowercase-tests: New file.
38585         * modules/unictype/property-other-math-tests: New file.
38586         * modules/unictype/property-other-uppercase-tests: New file.
38587         * modules/unictype/property-paired-punctuation-tests: New file.
38588         * modules/unictype/property-paragraph-separator-tests: New file.
38589         * modules/unictype/property-pattern-syntax-tests: New file.
38590         * modules/unictype/property-pattern-white-space-tests: New file.
38591         * modules/unictype/property-private-use-tests: New file.
38592         * modules/unictype/property-punctuation-tests: New file.
38593         * modules/unictype/property-quotation-mark-tests: New file.
38594         * modules/unictype/property-radical-tests: New file.
38595         * modules/unictype/property-sentence-terminal-tests: New file.
38596         * modules/unictype/property-soft-dotted-tests: New file.
38597         * modules/unictype/property-space-tests: New file.
38598         * modules/unictype/property-terminal-punctuation-tests: New file.
38599         * modules/unictype/property-test-tests: New file.
38600         * modules/unictype/property-titlecase-tests: New file.
38601         * modules/unictype/property-unassigned-code-value-tests: New file.
38602         * modules/unictype/property-unified-ideograph-tests: New file.
38603         * modules/unictype/property-uppercase-tests: New file.
38604         * modules/unictype/property-variation-selector-tests: New file.
38605         * modules/unictype/property-white-space-tests: New file.
38606         * modules/unictype/property-xid-continue-tests: New file.
38607         * modules/unictype/property-xid-start-tests: New file.
38608         * modules/unictype/property-zero-width-tests: New file.
38609         * modules/unictype/scripts-tests: New file.
38610         * modules/unictype/syntax-c-ident-tests: New file.
38611         * modules/unictype/syntax-c-whitespace-tests: New file.
38612         * modules/unictype/syntax-java-ident-tests: New file.
38613         * modules/unictype/syntax-java-whitespace-tests: New file.
38614         * tests/unictype/test-bidi_byname.c: New file.
38615         * tests/unictype/test-bidi_name.c: New file.
38616         * tests/unictype/test-bidi_of.c: New file.
38617         * tests/unictype/test-bidi_test.c: New file.
38618         * tests/unictype/test-block_list.c: New file.
38619         * tests/unictype/test-block_of.c: New file.
38620         * tests/unictype/test-block_test.c: New file.
38621         * tests/unictype/test-categ_and.c: New file.
38622         * tests/unictype/test-categ_and_not.c: New file.
38623         * tests/unictype/test-categ_byname.c: New file.
38624         * tests/unictype/test-categ_name.c: New file.
38625         * tests/unictype/test-categ_none.c: New file.
38626         * tests/unictype/test-categ_of.c: New file.
38627         * tests/unictype/test-categ_or.c: New file.
38628         * tests/unictype/test-categ_test_withtable.c: New file.
38629         * tests/unictype/test-combining.c: New file.
38630         * tests/unictype/test-decdigit.c: New file.
38631         * tests/unictype/test-digit.c: New file.
38632         * tests/unictype/test-mirror.c: New file.
38633         * tests/unictype/test-numeric.c: New file.
38634         * tests/unictype/test-pr_byname.c: New file.
38635         * tests/unictype/test-pr_test.c: New file.
38636         * tests/unictype/test-predicate-part1.h: New file.
38637         * tests/unictype/test-predicate-part2.h: New file.
38638         * tests/unictype/test-scripts.c: New file.
38639         * tests/unictype/test-sy_c_ident.c: New file.
38640         * tests/unictype/test-sy_java_ident.c: New file.
38641
38642         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38643         for Unicode 5.0.0.
38644         * tests/unictype/test-categ_Cc.c: Likewise.
38645         * tests/unictype/test-categ_Cf.c: Likewise.
38646         * tests/unictype/test-categ_Cn.c: Likewise.
38647         * tests/unictype/test-categ_Co.c: Likewise.
38648         * tests/unictype/test-categ_Cs.c: Likewise.
38649         * tests/unictype/test-categ_L.c: Likewise.
38650         * tests/unictype/test-categ_Ll.c: Likewise.
38651         * tests/unictype/test-categ_Lm.c: Likewise.
38652         * tests/unictype/test-categ_Lo.c: Likewise.
38653         * tests/unictype/test-categ_Lt.c: Likewise.
38654         * tests/unictype/test-categ_Lu.c: Likewise.
38655         * tests/unictype/test-categ_M.c: Likewise.
38656         * tests/unictype/test-categ_Mc.c: Likewise.
38657         * tests/unictype/test-categ_Me.c: Likewise.
38658         * tests/unictype/test-categ_Mn.c: Likewise.
38659         * tests/unictype/test-categ_N.c: Likewise.
38660         * tests/unictype/test-categ_Nd.c: Likewise.
38661         * tests/unictype/test-categ_Nl.c: Likewise.
38662         * tests/unictype/test-categ_No.c: Likewise.
38663         * tests/unictype/test-categ_P.c: Likewise.
38664         * tests/unictype/test-categ_Pc.c: Likewise.
38665         * tests/unictype/test-categ_Pd.c: Likewise.
38666         * tests/unictype/test-categ_Pe.c: Likewise.
38667         * tests/unictype/test-categ_Pf.c: Likewise.
38668         * tests/unictype/test-categ_Pi.c: Likewise.
38669         * tests/unictype/test-categ_Po.c: Likewise.
38670         * tests/unictype/test-categ_Ps.c: Likewise.
38671         * tests/unictype/test-categ_S.c: Likewise.
38672         * tests/unictype/test-categ_Sc.c: Likewise.
38673         * tests/unictype/test-categ_Sk.c: Likewise.
38674         * tests/unictype/test-categ_Sm.c: Likewise.
38675         * tests/unictype/test-categ_So.c: Likewise.
38676         * tests/unictype/test-categ_Z.c: Likewise.
38677         * tests/unictype/test-categ_Zl.c: Likewise.
38678         * tests/unictype/test-categ_Zp.c: Likewise.
38679         * tests/unictype/test-categ_Zs.c: Likewise.
38680         * tests/unictype/test-ctype_alnum.c: Likewise.
38681         * tests/unictype/test-ctype_alpha.c: Likewise.
38682         * tests/unictype/test-ctype_blank.c: Likewise.
38683         * tests/unictype/test-ctype_cntrl.c: Likewise.
38684         * tests/unictype/test-ctype_digit.c: Likewise.
38685         * tests/unictype/test-ctype_graph.c: Likewise.
38686         * tests/unictype/test-ctype_lower.c: Likewise.
38687         * tests/unictype/test-ctype_print.c: Likewise.
38688         * tests/unictype/test-ctype_punct.c: Likewise.
38689         * tests/unictype/test-ctype_space.c: Likewise.
38690         * tests/unictype/test-ctype_upper.c: Likewise.
38691         * tests/unictype/test-ctype_xdigit.c: Likewise.
38692         * tests/unictype/test-decdigit.h: Likewise.
38693         * tests/unictype/test-digit.h: Likewise.
38694         * tests/unictype/test-numeric.h: Likewise.
38695         * tests/unictype/test-pr_alphabetic.c: Likewise.
38696         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38697         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38698         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38699         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38700         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38701         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38702         * tests/unictype/test-pr_bidi_control.c: Likewise.
38703         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38704         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38705         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38706         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38707         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38708         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38709         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38710         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38711         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38712         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38713         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38714         * tests/unictype/test-pr_combining.c: Likewise.
38715         * tests/unictype/test-pr_composite.c: Likewise.
38716         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38717         * tests/unictype/test-pr_dash.c: Likewise.
38718         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38719         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38720         * tests/unictype/test-pr_deprecated.c: Likewise.
38721         * tests/unictype/test-pr_diacritic.c: Likewise.
38722         * tests/unictype/test-pr_extender.c: Likewise.
38723         * tests/unictype/test-pr_format_control.c: Likewise.
38724         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38725         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38726         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38727         * tests/unictype/test-pr_hex_digit.c: Likewise.
38728         * tests/unictype/test-pr_hyphen.c: Likewise.
38729         * tests/unictype/test-pr_id_continue.c: Likewise.
38730         * tests/unictype/test-pr_id_start.c: Likewise.
38731         * tests/unictype/test-pr_ideographic.c: Likewise.
38732         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38733         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38734         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38735         * tests/unictype/test-pr_iso_control.c: Likewise.
38736         * tests/unictype/test-pr_join_control.c: Likewise.
38737         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38738         * tests/unictype/test-pr_line_separator.c: Likewise.
38739         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38740         * tests/unictype/test-pr_lowercase.c: Likewise.
38741         * tests/unictype/test-pr_math.c: Likewise.
38742         * tests/unictype/test-pr_non_break.c: Likewise.
38743         * tests/unictype/test-pr_not_a_character.c: Likewise.
38744         * tests/unictype/test-pr_numeric.c: Likewise.
38745         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38746         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38747         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38748         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38749         * tests/unictype/test-pr_other_id_start.c: Likewise.
38750         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38751         * tests/unictype/test-pr_other_math.c: Likewise.
38752         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38753         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38754         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38755         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38756         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38757         * tests/unictype/test-pr_private_use.c: Likewise.
38758         * tests/unictype/test-pr_punctuation.c: Likewise.
38759         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38760         * tests/unictype/test-pr_radical.c: Likewise.
38761         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38762         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38763         * tests/unictype/test-pr_space.c: Likewise.
38764         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38765         * tests/unictype/test-pr_titlecase.c: Likewise.
38766         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38767         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38768         * tests/unictype/test-pr_uppercase.c: Likewise.
38769         * tests/unictype/test-pr_variation_selector.c: Likewise.
38770         * tests/unictype/test-pr_white_space.c: Likewise.
38771         * tests/unictype/test-pr_xid_continue.c: Likewise.
38772         * tests/unictype/test-pr_xid_start.c: Likewise.
38773         * tests/unictype/test-pr_zero_width.c: Likewise.
38774         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38775         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38776
38777 2007-11-12  Bruno Haible  <bruno@clisp.org>
38778
38779         Unicode character classification functions.
38780         * lib/unictype.h: New file.
38781         * modules/unictype/base: New file.
38782         * modules/unictype/category-L: New file.
38783         * modules/unictype/category-Lu: New file.
38784         * modules/unictype/category-Ll: New file.
38785         * modules/unictype/category-Lt: New file.
38786         * modules/unictype/category-Lm: New file.
38787         * modules/unictype/category-Lo: New file.
38788         * modules/unictype/category-M: New file.
38789         * modules/unictype/category-Mn: New file.
38790         * modules/unictype/category-Mc: New file.
38791         * modules/unictype/category-Me: New file.
38792         * modules/unictype/category-N: New file.
38793         * modules/unictype/category-Nd: New file.
38794         * modules/unictype/category-Nl: New file.
38795         * modules/unictype/category-No: New file.
38796         * modules/unictype/category-P: New file.
38797         * modules/unictype/category-Pc: New file.
38798         * modules/unictype/category-Pd: New file.
38799         * modules/unictype/category-Ps: New file.
38800         * modules/unictype/category-Pe: New file.
38801         * modules/unictype/category-Pi: New file.
38802         * modules/unictype/category-Pf: New file.
38803         * modules/unictype/category-Po: New file.
38804         * modules/unictype/category-S: New file.
38805         * modules/unictype/category-Sm: New file.
38806         * modules/unictype/category-Sc: New file.
38807         * modules/unictype/category-Sk: New file.
38808         * modules/unictype/category-So: New file.
38809         * modules/unictype/category-Z: New file.
38810         * modules/unictype/category-Zs: New file.
38811         * modules/unictype/category-Zl: New file.
38812         * modules/unictype/category-Zp: New file.
38813         * modules/unictype/category-C: New file.
38814         * modules/unictype/category-Cc: New file.
38815         * modules/unictype/category-Cf: New file.
38816         * modules/unictype/category-Cs: New file.
38817         * modules/unictype/category-Co: New file.
38818         * modules/unictype/category-Cn: New file.
38819         * modules/unictype/category-or: New file.
38820         * modules/unictype/category-of: New file.
38821         * modules/unictype/category-test: New file.
38822         * modules/unictype/category-test-withtable: New file.
38823         * modules/unictype/category-byname: New file.
38824         * modules/unictype/category-none: New file.
38825         * modules/unictype/category-and: New file.
38826         * modules/unictype/category-and-not: New file.
38827         * modules/unictype/category-name: New file.
38828         * modules/unictype/combining-class: New file.
38829         * modules/unictype/category-all: New file.
38830         * modules/unictype/bidicategory-all: New file.
38831         * modules/unictype/bidicategory-byname: New file.
38832         * modules/unictype/bidicategory-name: New file.
38833         * modules/unictype/bidicategory-of: New file.
38834         * modules/unictype/bidicategory-test: New file.
38835         * modules/unictype/decimal-digit: New file.
38836         * modules/unictype/digit: New file.
38837         * modules/unictype/numeric: New file.
38838         * modules/unictype/mirror: New file.
38839         * modules/unictype/property-white-space: New file.
38840         * modules/unictype/property-alphabetic: New file.
38841         * modules/unictype/property-other-alphabetic: New file.
38842         * modules/unictype/property-not-a-character: New file.
38843         * modules/unictype/property-default-ignorable-code-point: New file.
38844         * modules/unictype/property-other-default-ignorable-code-point: New
38845         file.
38846         * modules/unictype/property-deprecated: New file.
38847         * modules/unictype/property-logical-order-exception: New file.
38848         * modules/unictype/property-variation-selector: New file.
38849         * modules/unictype/property-private-use: New file.
38850         * modules/unictype/property-unassigned-code-value: New file.
38851         * modules/unictype/property-uppercase: New file.
38852         * modules/unictype/property-other-uppercase: New file.
38853         * modules/unictype/property-lowercase: New file.
38854         * modules/unictype/property-other-lowercase: New file.
38855         * modules/unictype/property-titlecase: New file.
38856         * modules/unictype/property-soft-dotted: New file.
38857         * modules/unictype/property-id-start: New file.
38858         * modules/unictype/property-other-id-start: New file.
38859         * modules/unictype/property-id-continue: New file.
38860         * modules/unictype/property-other-id-continue: New file.
38861         * modules/unictype/property-xid-start: New file.
38862         * modules/unictype/property-xid-continue: New file.
38863         * modules/unictype/property-pattern-white-space: New file.
38864         * modules/unictype/property-pattern-syntax: New file.
38865         * modules/unictype/property-join-control: New file.
38866         * modules/unictype/property-grapheme-base: New file.
38867         * modules/unictype/property-grapheme-extend: New file.
38868         * modules/unictype/property-other-grapheme-extend: New file.
38869         * modules/unictype/property-grapheme-link: New file.
38870         * modules/unictype/property-bidi-control: New file.
38871         * modules/unictype/property-bidi-left-to-right: New file.
38872         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38873         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38874         * modules/unictype/property-bidi-european-digit: New file.
38875         * modules/unictype/property-bidi-eur-num-separator: New file.
38876         * modules/unictype/property-bidi-eur-num-terminator: New file.
38877         * modules/unictype/property-bidi-arabic-digit: New file.
38878         * modules/unictype/property-bidi-common-separator: New file.
38879         * modules/unictype/property-bidi-block-separator: New file.
38880         * modules/unictype/property-bidi-segment-separator: New file.
38881         * modules/unictype/property-bidi-whitespace: New file.
38882         * modules/unictype/property-bidi-non-spacing-mark: New file.
38883         * modules/unictype/property-bidi-boundary-neutral: New file.
38884         * modules/unictype/property-bidi-pdf: New file.
38885         * modules/unictype/property-bidi-embedding-or-override: New file.
38886         * modules/unictype/property-bidi-other-neutral: New file.
38887         * modules/unictype/property-hex-digit: New file.
38888         * modules/unictype/property-ascii-hex-digit: New file.
38889         * modules/unictype/property-ideographic: New file.
38890         * modules/unictype/property-unified-ideograph: New file.
38891         * modules/unictype/property-radical: New file.
38892         * modules/unictype/property-ids-binary-operator: New file.
38893         * modules/unictype/property-ids-trinary-operator: New file.
38894         * modules/unictype/property-zero-width: New file.
38895         * modules/unictype/property-space: New file.
38896         * modules/unictype/property-non-break: New file.
38897         * modules/unictype/property-iso-control: New file.
38898         * modules/unictype/property-format-control: New file.
38899         * modules/unictype/property-dash: New file.
38900         * modules/unictype/property-hyphen: New file.
38901         * modules/unictype/property-punctuation: New file.
38902         * modules/unictype/property-line-separator: New file.
38903         * modules/unictype/property-paragraph-separator: New file.
38904         * modules/unictype/property-quotation-mark: New file.
38905         * modules/unictype/property-sentence-terminal: New file.
38906         * modules/unictype/property-terminal-punctuation: New file.
38907         * modules/unictype/property-currency-symbol: New file.
38908         * modules/unictype/property-math: New file.
38909         * modules/unictype/property-other-math: New file.
38910         * modules/unictype/property-paired-punctuation: New file.
38911         * modules/unictype/property-left-of-pair: New file.
38912         * modules/unictype/property-combining: New file.
38913         * modules/unictype/property-composite: New file.
38914         * modules/unictype/property-decimal-digit: New file.
38915         * modules/unictype/property-numeric: New file.
38916         * modules/unictype/property-diacritic: New file.
38917         * modules/unictype/property-extender: New file.
38918         * modules/unictype/property-ignorable-control: New file.
38919         * modules/unictype/property-test: New file.
38920         * modules/unictype/property-byname: New file.
38921         * modules/unictype/property-all: New file.
38922         * modules/unictype/scripts: New file.
38923         * modules/unictype/scripts-all: New file.
38924         * modules/unictype/block-of: New file.
38925         * modules/unictype/block-test: New file.
38926         * modules/unictype/block-list: New file.
38927         * modules/unictype/block-all: New file.
38928         * modules/unictype/syntax-c-whitespace: New file.
38929         * modules/unictype/syntax-java-whitespace: New file.
38930         * modules/unictype/syntax-c-ident: New file.
38931         * modules/unictype/syntax-java-ident: New file.
38932         * modules/unictype/ctype-alnum: New file.
38933         * modules/unictype/ctype-alpha: New file.
38934         * modules/unictype/ctype-cntrl: New file.
38935         * modules/unictype/ctype-digit: New file.
38936         * modules/unictype/ctype-graph: New file.
38937         * modules/unictype/ctype-lower: New file.
38938         * modules/unictype/ctype-print: New file.
38939         * modules/unictype/ctype-punct: New file.
38940         * modules/unictype/ctype-space: New file.
38941         * modules/unictype/ctype-upper: New file.
38942         * modules/unictype/ctype-xdigit: New file.
38943         * modules/unictype/ctype-blank: New file.
38944         * lib/unictype/bidi_byname.c: New file.
38945         * lib/unictype/bidi_name.c: New file.
38946         * lib/unictype/bidi_of.c: New file.
38947         * lib/unictype/bidi_test.c: New file.
38948         * lib/unictype/bitmap.h: New file.
38949         * lib/unictype/block_test.c: New file.
38950         * lib/unictype/blocks.c: New file.
38951         * lib/unictype/categ_C.c: New file.
38952         * lib/unictype/categ_Cc.c: New file.
38953         * lib/unictype/categ_Cf.c: New file.
38954         * lib/unictype/categ_Cn.c: New file.
38955         * lib/unictype/categ_Co.c: New file.
38956         * lib/unictype/categ_Cs.c: New file.
38957         * lib/unictype/categ_L.c: New file.
38958         * lib/unictype/categ_Ll.c: New file.
38959         * lib/unictype/categ_Lm.c: New file.
38960         * lib/unictype/categ_Lo.c: New file.
38961         * lib/unictype/categ_Lt.c: New file.
38962         * lib/unictype/categ_Lu.c: New file.
38963         * lib/unictype/categ_M.c: New file.
38964         * lib/unictype/categ_Mc.c: New file.
38965         * lib/unictype/categ_Me.c: New file.
38966         * lib/unictype/categ_Mn.c: New file.
38967         * lib/unictype/categ_N.c: New file.
38968         * lib/unictype/categ_Nd.c: New file.
38969         * lib/unictype/categ_Nl.c: New file.
38970         * lib/unictype/categ_No.c: New file.
38971         * lib/unictype/categ_P.c: New file.
38972         * lib/unictype/categ_Pc.c: New file.
38973         * lib/unictype/categ_Pd.c: New file.
38974         * lib/unictype/categ_Pe.c: New file.
38975         * lib/unictype/categ_Pf.c: New file.
38976         * lib/unictype/categ_Pi.c: New file.
38977         * lib/unictype/categ_Po.c: New file.
38978         * lib/unictype/categ_Ps.c: New file.
38979         * lib/unictype/categ_S.c: New file.
38980         * lib/unictype/categ_Sc.c: New file.
38981         * lib/unictype/categ_Sk.c: New file.
38982         * lib/unictype/categ_Sm.c: New file.
38983         * lib/unictype/categ_So.c: New file.
38984         * lib/unictype/categ_Z.c: New file.
38985         * lib/unictype/categ_Zl.c: New file.
38986         * lib/unictype/categ_Zp.c: New file.
38987         * lib/unictype/categ_Zs.c: New file.
38988         * lib/unictype/categ_and.c: New file.
38989         * lib/unictype/categ_and_not.c: New file.
38990         * lib/unictype/categ_byname.c: New file.
38991         * lib/unictype/categ_name.c: New file.
38992         * lib/unictype/categ_none.c: New file.
38993         * lib/unictype/categ_of.c: New file.
38994         * lib/unictype/categ_or.c: New file.
38995         * lib/unictype/categ_test.c: New file.
38996         * lib/unictype/combining.c: New file.
38997         * lib/unictype/ctype_alnum.c: New file.
38998         * lib/unictype/ctype_alpha.c: New file.
38999         * lib/unictype/ctype_blank.c: New file.
39000         * lib/unictype/ctype_cntrl.c: New file.
39001         * lib/unictype/ctype_digit.c: New file.
39002         * lib/unictype/ctype_graph.c: New file.
39003         * lib/unictype/ctype_lower.c: New file.
39004         * lib/unictype/ctype_print.c: New file.
39005         * lib/unictype/ctype_punct.c: New file.
39006         * lib/unictype/ctype_space.c: New file.
39007         * lib/unictype/ctype_upper.c: New file.
39008         * lib/unictype/ctype_xdigit.c: New file.
39009         * lib/unictype/decdigit.c: New file.
39010         * lib/unictype/digit.c: New file.
39011         * lib/unictype/identsyntaxmap.h: New file.
39012         * lib/unictype/mirror.c: New file.
39013         * lib/unictype/numeric.c: New file.
39014         * lib/unictype/pr_alphabetic.c: New file.
39015         * lib/unictype/pr_ascii_hex_digit.c: New file.
39016         * lib/unictype/pr_bidi_arabic_digit.c: New file.
39017         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
39018         * lib/unictype/pr_bidi_block_separator.c: New file.
39019         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
39020         * lib/unictype/pr_bidi_common_separator.c: New file.
39021         * lib/unictype/pr_bidi_control.c: New file.
39022         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
39023         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39024         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39025         * lib/unictype/pr_bidi_european_digit.c: New file.
39026         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
39027         * lib/unictype/pr_bidi_left_to_right.c: New file.
39028         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
39029         * lib/unictype/pr_bidi_other_neutral.c: New file.
39030         * lib/unictype/pr_bidi_pdf.c: New file.
39031         * lib/unictype/pr_bidi_segment_separator.c: New file.
39032         * lib/unictype/pr_bidi_whitespace.c: New file.
39033         * lib/unictype/pr_byname.c: New file.
39034         * lib/unictype/pr_byname.gperf: New file.
39035         * lib/unictype/pr_combining.c: New file.
39036         * lib/unictype/pr_composite.c: New file.
39037         * lib/unictype/pr_currency_symbol.c: New file.
39038         * lib/unictype/pr_dash.c: New file.
39039         * lib/unictype/pr_decimal_digit.c: New file.
39040         * lib/unictype/pr_default_ignorable_code_point.c: New file.
39041         * lib/unictype/pr_deprecated.c: New file.
39042         * lib/unictype/pr_diacritic.c: New file.
39043         * lib/unictype/pr_extender.c: New file.
39044         * lib/unictype/pr_format_control.c: New file.
39045         * lib/unictype/pr_grapheme_base.c: New file.
39046         * lib/unictype/pr_grapheme_extend.c: New file.
39047         * lib/unictype/pr_grapheme_link.c: New file.
39048         * lib/unictype/pr_hex_digit.c: New file.
39049         * lib/unictype/pr_hyphen.c: New file.
39050         * lib/unictype/pr_id_continue.c: New file.
39051         * lib/unictype/pr_id_start.c: New file.
39052         * lib/unictype/pr_ideographic.c: New file.
39053         * lib/unictype/pr_ids_binary_operator.c: New file.
39054         * lib/unictype/pr_ids_trinary_operator.c: New file.
39055         * lib/unictype/pr_ignorable_control.c: New file.
39056         * lib/unictype/pr_iso_control.c: New file.
39057         * lib/unictype/pr_join_control.c: New file.
39058         * lib/unictype/pr_left_of_pair.c: New file.
39059         * lib/unictype/pr_line_separator.c: New file.
39060         * lib/unictype/pr_logical_order_exception.c: New file.
39061         * lib/unictype/pr_lowercase.c: New file.
39062         * lib/unictype/pr_math.c: New file.
39063         * lib/unictype/pr_non_break.c: New file.
39064         * lib/unictype/pr_not_a_character.c: New file.
39065         * lib/unictype/pr_numeric.c: New file.
39066         * lib/unictype/pr_other_alphabetic.c: New file.
39067         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
39068         * lib/unictype/pr_other_grapheme_extend.c: New file.
39069         * lib/unictype/pr_other_id_continue.c: New file.
39070         * lib/unictype/pr_other_id_start.c: New file.
39071         * lib/unictype/pr_other_lowercase.c: New file.
39072         * lib/unictype/pr_other_math.c: New file.
39073         * lib/unictype/pr_other_uppercase.c: New file.
39074         * lib/unictype/pr_paired_punctuation.c: New file.
39075         * lib/unictype/pr_paragraph_separator.c: New file.
39076         * lib/unictype/pr_pattern_syntax.c: New file.
39077         * lib/unictype/pr_pattern_white_space.c: New file.
39078         * lib/unictype/pr_private_use.c: New file.
39079         * lib/unictype/pr_punctuation.c: New file.
39080         * lib/unictype/pr_quotation_mark.c: New file.
39081         * lib/unictype/pr_radical.c: New file.
39082         * lib/unictype/pr_sentence_terminal.c: New file.
39083         * lib/unictype/pr_soft_dotted.c: New file.
39084         * lib/unictype/pr_space.c: New file.
39085         * lib/unictype/pr_terminal_punctuation.c: New file.
39086         * lib/unictype/pr_test.c: New file.
39087         * lib/unictype/pr_titlecase.c: New file.
39088         * lib/unictype/pr_unassigned_code_value.c: New file.
39089         * lib/unictype/pr_unified_ideograph.c: New file.
39090         * lib/unictype/pr_uppercase.c: New file.
39091         * lib/unictype/pr_variation_selector.c: New file.
39092         * lib/unictype/pr_white_space.c: New file.
39093         * lib/unictype/pr_xid_continue.c: New file.
39094         * lib/unictype/pr_xid_start.c: New file.
39095         * lib/unictype/pr_zero_width.c: New file.
39096         * lib/unictype/scripts.c: New file.
39097         * lib/unictype/sy_c_ident.c: New file.
39098         * lib/unictype/sy_c_whitespace.c: New file.
39099         * lib/unictype/sy_java_ident.c: New file.
39100         * lib/unictype/sy_java_whitespace.c: New file.
39101
39102         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39103         Unicode 5.0.0.
39104         * lib/unictype/blocks.h: Likewise.
39105         * lib/unictype/categ_C.h: Likewise.
39106         * lib/unictype/categ_Cc.h: Likewise.
39107         * lib/unictype/categ_Cf.h: Likewise.
39108         * lib/unictype/categ_Cn.h: Likewise.
39109         * lib/unictype/categ_Co.h: Likewise.
39110         * lib/unictype/categ_Cs.h: Likewise.
39111         * lib/unictype/categ_L.h: Likewise.
39112         * lib/unictype/categ_Ll.h: Likewise.
39113         * lib/unictype/categ_Lm.h: Likewise.
39114         * lib/unictype/categ_Lo.h: Likewise.
39115         * lib/unictype/categ_Lt.h: Likewise.
39116         * lib/unictype/categ_Lu.h: Likewise.
39117         * lib/unictype/categ_M.h: Likewise.
39118         * lib/unictype/categ_Mc.h: Likewise.
39119         * lib/unictype/categ_Me.h: Likewise.
39120         * lib/unictype/categ_Mn.h: Likewise.
39121         * lib/unictype/categ_N.h: Likewise.
39122         * lib/unictype/categ_Nd.h: Likewise.
39123         * lib/unictype/categ_Nl.h: Likewise.
39124         * lib/unictype/categ_No.h: Likewise.
39125         * lib/unictype/categ_P.h: Likewise.
39126         * lib/unictype/categ_Pc.h: Likewise.
39127         * lib/unictype/categ_Pd.h: Likewise.
39128         * lib/unictype/categ_Pe.h: Likewise.
39129         * lib/unictype/categ_Pf.h: Likewise.
39130         * lib/unictype/categ_Pi.h: Likewise.
39131         * lib/unictype/categ_Po.h: Likewise.
39132         * lib/unictype/categ_Ps.h: Likewise.
39133         * lib/unictype/categ_S.h: Likewise.
39134         * lib/unictype/categ_Sc.h: Likewise.
39135         * lib/unictype/categ_Sk.h: Likewise.
39136         * lib/unictype/categ_Sm.h: Likewise.
39137         * lib/unictype/categ_So.h: Likewise.
39138         * lib/unictype/categ_Z.h: Likewise.
39139         * lib/unictype/categ_Zl.h: Likewise.
39140         * lib/unictype/categ_Zp.h: Likewise.
39141         * lib/unictype/categ_Zs.h: Likewise.
39142         * lib/unictype/categ_of.h: Likewise.
39143         * lib/unictype/combining.h: Likewise.
39144         * lib/unictype/ctype_alnum.h: Likewise.
39145         * lib/unictype/ctype_alpha.h: Likewise.
39146         * lib/unictype/ctype_blank.h: Likewise.
39147         * lib/unictype/ctype_cntrl.h: Likewise.
39148         * lib/unictype/ctype_digit.h: Likewise.
39149         * lib/unictype/ctype_graph.h: Likewise.
39150         * lib/unictype/ctype_lower.h: Likewise.
39151         * lib/unictype/ctype_print.h: Likewise.
39152         * lib/unictype/ctype_punct.h: Likewise.
39153         * lib/unictype/ctype_space.h: Likewise.
39154         * lib/unictype/ctype_upper.h: Likewise.
39155         * lib/unictype/ctype_xdigit.h: Likewise.
39156         * lib/unictype/decdigit.h: Likewise.
39157         * lib/unictype/digit.h: Likewise.
39158         * lib/unictype/mirror.h: Likewise.
39159         * lib/unictype/numeric.h: Likewise.
39160         * lib/unictype/pr_alphabetic.h: Likewise.
39161         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39162         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39163         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39164         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39165         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39166         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39167         * lib/unictype/pr_bidi_control.h: Likewise.
39168         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39169         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39170         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39171         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39172         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39173         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39174         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39175         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39176         * lib/unictype/pr_bidi_pdf.h: Likewise.
39177         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39178         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39179         * lib/unictype/pr_combining.h: Likewise.
39180         * lib/unictype/pr_composite.h: Likewise.
39181         * lib/unictype/pr_currency_symbol.h: Likewise.
39182         * lib/unictype/pr_dash.h: Likewise.
39183         * lib/unictype/pr_decimal_digit.h: Likewise.
39184         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39185         * lib/unictype/pr_deprecated.h: Likewise.
39186         * lib/unictype/pr_diacritic.h: Likewise.
39187         * lib/unictype/pr_extender.h: Likewise.
39188         * lib/unictype/pr_format_control.h: Likewise.
39189         * lib/unictype/pr_grapheme_base.h: Likewise.
39190         * lib/unictype/pr_grapheme_extend.h: Likewise.
39191         * lib/unictype/pr_grapheme_link.h: Likewise.
39192         * lib/unictype/pr_hex_digit.h: Likewise.
39193         * lib/unictype/pr_hyphen.h: Likewise.
39194         * lib/unictype/pr_id_continue.h: Likewise.
39195         * lib/unictype/pr_id_start.h: Likewise.
39196         * lib/unictype/pr_ideographic.h: Likewise.
39197         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39198         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39199         * lib/unictype/pr_ignorable_control.h: Likewise.
39200         * lib/unictype/pr_iso_control.h: Likewise.
39201         * lib/unictype/pr_join_control.h: Likewise.
39202         * lib/unictype/pr_left_of_pair.h: Likewise.
39203         * lib/unictype/pr_line_separator.h: Likewise.
39204         * lib/unictype/pr_logical_order_exception.h: Likewise.
39205         * lib/unictype/pr_lowercase.h: Likewise.
39206         * lib/unictype/pr_math.h: Likewise.
39207         * lib/unictype/pr_non_break.h: Likewise.
39208         * lib/unictype/pr_not_a_character.h: Likewise.
39209         * lib/unictype/pr_numeric.h: Likewise.
39210         * lib/unictype/pr_other_alphabetic.h: Likewise.
39211         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39212         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39213         * lib/unictype/pr_other_id_continue.h: Likewise.
39214         * lib/unictype/pr_other_id_start.h: Likewise.
39215         * lib/unictype/pr_other_lowercase.h: Likewise.
39216         * lib/unictype/pr_other_math.h: Likewise.
39217         * lib/unictype/pr_other_uppercase.h: Likewise.
39218         * lib/unictype/pr_paired_punctuation.h: Likewise.
39219         * lib/unictype/pr_paragraph_separator.h: Likewise.
39220         * lib/unictype/pr_pattern_syntax.h: Likewise.
39221         * lib/unictype/pr_pattern_white_space.h: Likewise.
39222         * lib/unictype/pr_private_use.h: Likewise.
39223         * lib/unictype/pr_punctuation.h: Likewise.
39224         * lib/unictype/pr_quotation_mark.h: Likewise.
39225         * lib/unictype/pr_radical.h: Likewise.
39226         * lib/unictype/pr_sentence_terminal.h: Likewise.
39227         * lib/unictype/pr_soft_dotted.h: Likewise.
39228         * lib/unictype/pr_space.h: Likewise.
39229         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39230         * lib/unictype/pr_titlecase.h: Likewise.
39231         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39232         * lib/unictype/pr_unified_ideograph.h: Likewise.
39233         * lib/unictype/pr_uppercase.h: Likewise.
39234         * lib/unictype/pr_variation_selector.h: Likewise.
39235         * lib/unictype/pr_white_space.h: Likewise.
39236         * lib/unictype/pr_xid_continue.h: Likewise.
39237         * lib/unictype/pr_xid_start.h: Likewise.
39238         * lib/unictype/pr_zero_width.h: Likewise.
39239         * lib/unictype/scripts.h: Likewise.
39240         * lib/unictype/scripts_byname.gperf: Likewise.
39241         * lib/unictype/sy_c_ident.h: Likewise.
39242         * lib/unictype/sy_c_whitespace.h: Likewise.
39243         * lib/unictype/sy_java_ident.h: Likewise.
39244         * lib/unictype/sy_java_whitespace.h: Likewise.
39245
39246         * lib/unictype/Makefile: New file.
39247         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
39248         glibc.
39249         * lib/unictype/3level.h: New file, copied from glibc.
39250         * lib/unictype/3levelbit.h: New file.
39251
39252 2007-11-11  Bruno Haible  <bruno@clisp.org>
39253
39254         * modules/gperf: New file.
39255         * modules/iconv_open (Depends-on): Add it.
39256         (Makefile.am): Remove the GPERF definition.
39257
39258 2007-11-11  Bruno Haible  <bruno@clisp.org>
39259
39260         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39261         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39262
39263 2007-11-11  Bruno Haible  <bruno@clisp.org>
39264
39265         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39266         (usage): Remove function.
39267
39268 2007-11-11  Bruno Haible  <bruno@clisp.org>
39269
39270         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39271         gl_FUNC_CEILF_LIBS.
39272         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39273         gl_FUNC_CEIL_LIBS.
39274         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39275         gl_FUNC_CEILL_LIBS.
39276         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39277         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39278         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39279
39280 2007-11-11  Bruno Haible  <bruno@clisp.org>
39281
39282         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39283         roundf were declared but do not exist on functions.
39284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39285         roundl were declared but do not exist on functions.
39286         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39287         HAVE_FLOORL_AND_CEILL, respectively.
39288         Needed for Sun C on Solaris 10.
39289
39290 2007-11-11  Bruno Haible  <bruno@clisp.org>
39291
39292         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39293         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39294         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39295         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39296         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39297         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39298         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39299         HAVE_DECL_ROUNDF.
39300         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39301         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39303         of HAVE_DECL_ROUND*.
39304         * modules/math (Makefile.am): Update.
39305
39306 2007-11-10  Bruno Haible  <bruno@clisp.org>
39307
39308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39309         ptrdiff_t as m4/intl.m4.
39310
39311 2007-11-10  Jim Meyering  <meyering@redhat.com>
39312
39313         Avoid link failure for the argmatch test.
39314         * tests/test-argmatch.c (usage): Define function to avoid a link
39315         failure: argmatch_die requires a usage function.
39316
39317 2007-11-09  Bruno Haible  <bruno@clisp.org>
39318
39319         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39320         * doc/functions/vsnprintf.texi: Likewise.
39321         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39322         with a size argument < 2.
39323
39324 2007-11-09  Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39327         buffer. Fixes an inefficiency introduced on 2007-11-03.
39328
39329 2007-11-09  Bruno Haible  <bruno@clisp.org>
39330
39331         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39332         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39333
39334 2007-11-08  Jim Meyering  <meyering@redhat.com>
39335
39336         Change cache variable name prefix "jm_" to "gl_" everywhere.
39337         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39338         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39339         * m4/uptime.m4: s/gl_/jm_/
39340
39341 2007-11-07  Bruno Haible  <bruno@clisp.org>
39342
39343         Update to GNU gettext 0.17.
39344         * m4/intl.m4: Update to GNU gettext 0.17.
39345         * m4/po.m4: Likewise.
39346         * modules/gettext (Files): Remove m4/ulonglong.m4.
39347         (configure.ac): Require gettext infrastructure from version 0.17.
39348
39349 2007-11-06  Bruno Haible  <bruno@clisp.org>
39350
39351         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39352         symbolic values are not defined in a public header.
39353         * lib/freadable.c (freadable) [QNX]: Likewise.
39354         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39355         * lib/freading.c (freading) [QNX]: Likewise.
39356         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39357         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39358         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39359         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39360         Reported by Alain Magloire.
39361
39362         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39363
39364 2007-11-05  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39367         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39368         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39369         Reported by Eric Blake.
39370
39371 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39372             Bruno Haible  <bruno@clisp.org>
39373
39374         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39375         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39376         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39377         (malloc): Undefine also before including <stdlib.h>.
39378         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39379         Needed on OSF/1 4.0.
39380
39381 2007-11-05  Jim Meyering  <meyering@redhat.com>
39382
39383         git-version-gen: sync from coreutils.
39384         * build-aux/git-version-gen: Add comments.
39385         Change the first '-' to '.' in the snapshot version string,
39386         e.g., 6.9-377-08144 -> 6.9.377-08144
39387         Remove first parameter.
39388         Don't declare a version "-dirty" merely because a time
39389         stamp has changed.
39390
39391 2007-11-04  Bruno Haible  <bruno@clisp.org>
39392
39393         * lib/lock.h: Protect all macro definitions containing an 'if'
39394         statement through a "do { ... } while (0)".
39395         * lib/tls.h: Likewise.
39396
39397 2007-11-04  Bruno Haible  <bruno@clisp.org>
39398
39399         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39400
39401 2007-11-04  Bruno Haible  <bruno@clisp.org>
39402
39403         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39404         * modules/fprintf-posix (Depends-on): Add nocrash.
39405         * modules/snprintf-posix (Depends-on): Likewise.
39406         * modules/sprintf-posix (Depends-on): Likewise.
39407         * modules/vasnprintf-posix (Depends-on): Likewise.
39408         * modules/vasprintf-posix (Depends-on): Likewise.
39409         * modules/vfprintf-posix (Depends-on): Likewise.
39410         * modules/vsnprintf-posix (Depends-on): Likewise.
39411         * modules/vsprintf-posix (Depends-on): Likewise.
39412         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39413         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39414         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39415         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39416         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39417         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39418         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39419
39420 2007-11-04  Bruno Haible  <bruno@clisp.org>
39421
39422         * modules/nocrash: New file.
39423         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39424         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39425
39426 2007-11-04  Bruno Haible  <bruno@clisp.org>
39427
39428         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39429         precision handling.
39430         * tests/test-vasprintf-posix.c (test_function): Likewise.
39431         * tests/test-snprintf-posix.h (test_function): Likewise.
39432         * tests/test-sprintf-posix.h (test_function): Likewise.
39433
39434         Fix *printf behaviour for large precisions on mingw and BeOS.
39435         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39436         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39438         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39439         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39440         gl_PRINTF_PRECISION and test its result. Invoke
39441         gl_PREREQ_VASNPRINTF_PRECISION.
39442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39446         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39449         * doc/functions/fprintf.texi: Update.
39450         * doc/functions/printf.texi: Update.
39451         * doc/functions/snprintf.texi: Update.
39452         * doc/functions/sprintf.texi: Update.
39453         * doc/functions/vfprintf.texi: Update.
39454         * doc/functions/vprintf.texi: Update.
39455         * doc/functions/vsnprintf.texi: Update.
39456         * doc/functions/vsprintf.texi: Update.
39457
39458 2007-11-04  Bruno Haible  <bruno@clisp.org>
39459
39460         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39461
39462 2007-11-04  Bruno Haible  <bruno@clisp.org>
39463
39464         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39465         Reported by Sylvain Beucler <beuc@gnu.org>.
39466
39467 2007-11-03  Bruno Haible  <bruno@clisp.org>
39468
39469         * tests/test-fprintf-posix2.sh: New file.
39470         * tests/test-fprintf-posix2.c: New file.
39471         * modules/fprintf-posix-tests (Files): Add them.
39472         (TESTS): Add test-fprintf-posix2.sh.
39473         (configure.ac): Check for getrlimit and setrlimit.
39474         (check_PROGRAMS): Add test-fprintf-posix2.
39475
39476         * tests/test-printf-posix2.sh: New file.
39477         * tests/test-printf-posix2.c: New file.
39478         * modules/printf-posix-tests (Files): Add them.
39479         (TESTS): Add test-printf-posix2.sh.
39480         (configure.ac): Check for getrlimit and setrlimit.
39481         (check_PROGRAMS): Add test-printf-posix2.
39482
39483         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39484         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39485         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39486         (decode_double): New function, copied from decode_long_double.
39487         (scale10_round_decimal_decoded): New function, extracted from
39488         scale10_round_decimal_long_double.
39489         (scale10_round_decimal_long_double): Use it.
39490         (scale10_round_decimal_double): New function.
39491         (floorlog10): New function.
39492         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39494         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39496         gl_PRINTF_ENOMEM and test its result. Invoke
39497         gl_PREREQ_VASNPRINTF_ENOMEM.
39498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39500         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39505         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39506         * modules/snprintf-posix (Depends-on): Likewise.
39507         * modules/sprintf-posix (Depends-on): Likewise.
39508         * modules/vasnprintf-posix (Depends-on): Likewise.
39509         * modules/vasprintf-posix (Depends-on): Likewise.
39510         * modules/vfprintf-posix (Depends-on): Likewise.
39511         * modules/vsnprintf-posix (Depends-on): Likewise.
39512         * modules/vsprintf-posix (Depends-on): Likewise.
39513         * doc/functions/fprintf.texi: Update.
39514         * doc/functions/printf.texi: Update.
39515         * doc/functions/snprintf.texi: Update.
39516         * doc/functions/sprintf.texi: Update.
39517         * doc/functions/vfprintf.texi: Update.
39518         * doc/functions/vprintf.texi: Update.
39519         * doc/functions/vsnprintf.texi: Update.
39520         * doc/functions/vsprintf.texi: Update.
39521
39522 2007-11-03  Bruno Haible  <bruno@clisp.org>
39523
39524         * modules/frexp-nolibm-tests: New file.
39525
39526         * modules/frexp-nolibm: New file.
39527         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39528
39529 2007-11-03  Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39532         value is C99 compliant.
39533         Needed for OSF/1 5.1.
39534
39535 2007-11-03  Bruno Haible  <bruno@clisp.org>
39536
39537         Fix out-of-memory handling of vasnprintf.
39538         * lib/printf-parse.c: Include <errno.h>.
39539         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39540         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39541         is already set.
39542
39543 2007-11-02  Eric Blake  <ebb9@byu.net>
39544
39545         Fix tests on cygwin.
39546         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39547
39548 2007-11-01  Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39551         warning.
39552         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39553         needed for POSIX compatibility.
39554
39555 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39556
39557         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39558         for compatibility with GNU.
39559
39560 2007-11-01  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39563         (putenv): Renamed from rpl_putenv. Change argument type from
39564         'const char *' to 'char *'.
39565         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39566         of defining putenv in config.h, just set REPLACE_PUTENV.
39567         * modules/putenv (Depends-on): Add stdlib.
39568         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39569         (Include): Use <stdlib.h>.
39570         * lib/stdlib.in.h (putenv): New declaration.
39571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39572         REPLACE_PUTENV.
39573         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39574         REPLACE_PUTENV.
39575         Needed for MacOS X 10.5.0.
39576         Reported by Peter O'Gorman <peter@pogma.com>.
39577
39578 2007-11-01  Jim Meyering  <meyering@redhat.com>
39579
39580         Treat an empty date string exactly like "0".
39581         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39582         if the remaining date string (to be parsed) is empty, use "0".
39583         Reported by Mischa Molhoek and discussed in this thread:
39584         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39585
39586 2007-10-31  Bruno Haible  <bruno@clisp.org>
39587
39588         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39589         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39590         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39591         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39592         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39593         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39594
39595 2007-10-31  Bruno Haible  <bruno@clisp.org>
39596
39597         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39598         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39599         (AC_TYPE_LONG_LONG_INT): Use it.
39600         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39601         it as well.
39602         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39603         to m4/longlong.m4.
39604         * modules/stdint (Files): Remove m4/ulonglong.m4.
39605         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39606         m4/ulonglong.m4.
39607         * modules/strtoumax (Files): Likewise.
39608
39609 2007-10-30  Bruno Haible  <bruno@clisp.org>
39610
39611         * modules/xvasprintf-posix: New file.
39612         Suggested by Eric Blake.
39613
39614 2007-10-30  Bruno Haible  <bruno@clisp.org>
39615
39616         * modules/xprintf-posix-tests: New file.
39617         * tests/test-xprintf-posix.sh: New file.
39618         * tests/test-xprintf-posix.c: New file.
39619         * tests/test-xfprintf-posix.c: New file.
39620
39621         * modules/xprintf-posix: New file.
39622
39623 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39624
39625         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39626         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39627         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39628
39629 2007-10-29  Bruno Haible  <bruno@clisp.org>
39630
39631         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39632         contain the special marker '_cv_'.
39633         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39634         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39635         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39636         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39637         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39638         Reported by Ralf Wildenhues.
39639
39640 2007-10-29  Bruno Haible  <bruno@clisp.org>
39641
39642         * gnulib-tool (func_import): When --lgpl is not specified, set
39643         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39644         GPLv3.
39645         Reported by Simon Josefsson.
39646
39647 2007-10-28  Bruno Haible  <bruno@clisp.org>
39648
39649         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39650         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39651         HAVE_DECL_ISFINITE.
39652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39653         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39654         HAVE_DECL_ISFINITE.
39655
39656 2007-10-28  Bruno Haible  <bruno@clisp.org>
39657
39658         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39659         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39660
39661 2007-10-28  Bruno Haible  <bruno@clisp.org>
39662
39663         Fix link errors with Sun C 5.0 on Solaris 10.
39664         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39665         function is declared but not present in the compiler's libm.
39666         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39667         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39668         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39669         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39670         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39671         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39672         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39674         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39675         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39676         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39677         HAVE_DECL_FLOORL.
39678
39679 2007-10-28  Bruno Haible  <bruno@clisp.org>
39680
39681         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39682         gl_FUNC_FLOORL. Cache the result.
39683         (gl_FUNC_FLOORL): Use it.
39684         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39685         gl_FUNC_CEILL. Cache the result.
39686         (gl_FUNC_CEILL): Use it.
39687
39688         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39689         gl_FUNC_FLOOR. Cache the result.
39690         (gl_FUNC_FLOOR): Use it.
39691         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39692         gl_FUNC_CEIL. Cache the result.
39693         (gl_FUNC_CEIL): Use it.
39694
39695         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39696         gl_FUNC_FLOORF. Cache the result.
39697         (gl_FUNC_FLOORF): Use it.
39698         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39699         gl_FUNC_CEILF. Cache the result.
39700         (gl_FUNC_CEILF): Use it.
39701
39702 2007-10-28  Bruno Haible  <bruno@clisp.org>
39703
39704         * gnulib-tool: Allow specifying the LGPL version number through
39705         --lgpl=2 or --lgpl=3.
39706         (func_usage): Document --lgpl with argument.
39707         Handle --lgpl=... arguments.
39708         (func_import): Recognize also gl_LGPL calls with an argument. When
39709         --lgpl=2 is used and the module's license is just LGPL, report an
39710         error. Set sed_transform_lib_file according to the lgpl variable. In
39711         the generated files, use --lgpl or gl_LGPL invocations with argument,
39712         if necessary.
39713         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39714         an LGPv2+ license.
39715         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39716         gl_LGPL macro.
39717
39718 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39719             Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39722         (u16_uctomb_aux): Likewise.
39723         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39724         !HAVE_INLINE.
39725         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39726
39727 2007-10-28  Bruno Haible  <bruno@clisp.org>
39728
39729         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39730         Invoke AM_GETTEXT_OPTION if it exists.
39731         * modules/vasprintf: Likewise.
39732         * modules/verror: Likewise.
39733         * modules/xprintf: Likewise.
39734         * modules/xvasprintf: Likewise.
39735
39736 2007-10-27  Ben Pfaff  <blp@gnu.org>
39737
39738         * lib/math.in.h: Define isfinite macro and prototypes for
39739         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39740         implementations.
39741         * m4/math_h.m4: New substitutions for isfinite module.
39742         * lib/isfinite.c: New file.
39743         * m4/isfinite.m4: New file.
39744         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39745         * modules/isfinite: New file.
39746         * modules/isfinite-tests: New file.
39747         * tests/tests-isfinite.c: New file.
39748         * doc/functions/isfinite.texi: Mention isfinite module.
39749         * MODULES.html.sh: Mention new module.
39750
39751 2007-10-27  Ben Pfaff  <blp@gnu.org>
39752
39753         Ralf Wildenhues reported that Tru64 4.0D declares the round
39754         functions but does not have definitions.
39755         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39756         cannot be found in any library, set the output variable to
39757         "missing" instead of "".
39758         * m4/round.m4: Also use our substitute if we cannot find round in
39759         any library, even if it is declared.
39760         * m4/roundf.m4: Likewise for roundf.
39761         * m4/roundl.m4: Likewise for roundl.
39762         * lib/math.in.h: Undefine roundf, round, roundl before defining
39763         their replacements, to allow for hypothetical systems where these
39764         may be defined as macros but not available in libraries.
39765
39766 2007-10-27  Bruno Haible  <bruno@clisp.org>
39767
39768         * doc/gnulib.texi: Invoke @firstparagraphindent.
39769         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39770         changes in gnulib.
39771         (Source changes): New section.
39772
39773 2007-10-26  Bruno Haible  <bruno@clisp.org>
39774
39775         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39776         borrowed from autoconf.
39777
39778 2007-10-26  Bruno Haible  <bruno@clisp.org>
39779
39780         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39781         strerror returned the empty string. Needed on HP-UX 11.00.
39782
39783 2007-10-24  Micah Cowan  <micah@cowan.name>
39784
39785         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39786         * build-aux/bootstrap: Remove support for now-unnecessary option,
39787         --cvs-user, and envvars CVS_USER, CVS_RSH.
39788
39789 2007-10-24  Jim Meyering  <meyering@redhat.com>
39790
39791         Avoid diagnostics from sha1sum when there is no cached checksum.
39792         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39793         if the po.s1 file hasn't been created yet.
39794
39795         * build-aux/bootstrap: Sync from coreutils:
39796         2007-10-24  Jim Meyering  <meyering@redhat.com>
39797         Get gnulib from the git repository, not from an obsolete cvs one.
39798         * build-aux/bootstrap: Suggestion from Micah Cowan.
39799         2007-10-04  Jim Meyering  <jim@meyering.net>
39800         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39801         (update_po_files): Work also when there are no .po files in po/.
39802
39803 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39804
39805         * README: Append ".git" to git and cg examples.
39806         Problem reported by Benoit Sigoure.
39807
39808 2007-10-23  Micah Cowan  <micah@cowan.name>
39809
39810         * users.txt: Add wget.
39811
39812 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39813
39814         Fix linking of some unistdio tests on FreeBSD.
39815         * modules/unistdio/u16-vsnprintf-tests
39816         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39817         * modules/unistdio/u16-vsprintf-tests
39818         (test_u16_vsnprintf1_LDADD): Likewise.
39819         * modules/unistdio/u32-vsnprintf-tests
39820         (test_u32_vsnprintf1_LDADD): Likewise.
39821         * modules/unistdio/u32-vsprintf-tests
39822         (test_u32_vsprintf1_LDADD): Likewise.
39823         * modules/unistdio/u8-vsnprintf-tests
39824         (test_u8_vsnprintf1_LDADD): Likewise.
39825         * modules/unistdio/u8-vsprintf-tests
39826         (test_u8_vsprintf1_LDADD): Likewise.
39827         * modules/unistdio/ulc-vsnprintf-tests
39828         (test_ulc_vsnprintf1_LDADD): Likewise.
39829         * modules/unistdio/ulc-vsprintf-tests
39830         (test_ulc_vsprintf1_LDADD): Likewise.
39831
39832         Fix linking of some uniconv tests on FreeBSD.
39833         * modules/uniconv/u16-conv-from-enc-tests
39834         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39835         * modules/uniconv/u16-conv-to-enc-tests
39836         (test_u16_conv_to_enc_LDADD): Likewise.
39837         * modules/uniconv/u16-strconv-from-enc-tests
39838         (test_u16_strconv_from_enc_LDADD): Likewise.
39839         * modules/uniconv/u16-strconv-to-enc-tests
39840         (test_u16_strconv_to_enc_LDADD): Likewise.
39841         * modules/uniconv/u32-conv-from-enc-tests
39842         (test_u32_conv_from_enc_LDADD): Likewise.
39843         * modules/uniconv/u32-conv-to-enc-tests
39844         (test_u32_conv_to_enc_LDADD): Likewise.
39845         * modules/uniconv/u32-strconv-from-enc-tests
39846         (test_u32_strconv_from_enc_LDADD): Likewise.
39847         * modules/uniconv/u32-strconv-to-enc-tests
39848         (test_u32_strconv_to_enc_LDADD): Likewise.
39849         * modules/uniconv/u8-conv-from-enc-tests
39850         (test_u8_conv_from_enc_LDADD): Likewise.
39851         * modules/uniconv/u8-conv-to-enc-tests
39852         (test_u8_conv_to_enc_LDADD): Likewise.
39853         * modules/uniconv/u8-strconv-from-enc-tests
39854         (test_u8_strconv_from_enc_LDADD): Likewise.
39855         * modules/uniconv/u8-strconv-to-enc-tests
39856         (test_u8_strconv_to_enc_LDADD): Likewise.
39857
39858 2007-10-22  Bruno Haible  <bruno@clisp.org>
39859
39860         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39861         size.
39862
39863 2007-10-22  Eric Blake  <ebb9@byu.net>
39864
39865         Tweak x*printf documentation.
39866         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39867         variable name and comments.
39868         Suggested by Bruno Haible.
39869
39870 2007-10-22  Bruno Haible  <bruno@clisp.org>
39871
39872         * lib/acl.c (copy_acl): Fix file name in comment.
39873
39874 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39875
39876         Fix Tru64 problem with stdbool.h.
39877         * lib/stdbool.in.h (false, true):
39878         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39879         Don't declare as an enum in this situation; it runs afoul of Tru64.
39880         Problem reported by Steven M. Schweda in
39881         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39882
39883 2007-10-22  Eric Blake  <ebb9@byu.net>
39884
39885         Also wrap vf?printf.
39886         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39887         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39888         (xvprintf, xvfprintf): New functions.
39889
39890 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39891
39892         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39893         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39894
39895         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39896         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39897
39898 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39899
39900         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39901         by Bruno Haible.
39902
39903 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39904
39905         * lib/getloadavg.c
39906         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39907         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39908
39909         * tests/test-i-ring.c: Work for C89.
39910
39911 2007-10-22  Bruno Haible  <bruno@clisp.org>
39912
39913         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39914         -1u, in preprocessor expression, so that we don't test for the bug
39915         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39917
39918 2007-10-22  Eric Blake  <ebb9@byu.net>
39919
39920         * tests/test-yesno.sh: Silence stderr during test.
39921
39922 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39923
39924         * modules/crypto/gc-camellia: New file.
39925
39926         * m4/gc-camellia.m4: New file.
39927
39928         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39929
39930         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39931
39932 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39933
39934         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39935         --help to stdout.  Reported by sms@antinode.org (Steven
39936         M. Schweda).
39937
39938 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39939
39940         * users.txt: Fix link to libksba.
39941
39942 2007-10-21  Ben Pfaff  <blp@gnu.org>
39943
39944         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39945         round.c roundf implementation that depends on floorf and ceilf to
39946         be tested unconditionally.
39947
39948 2007-10-21  Ben Pfaff  <blp@gnu.org>
39949
39950         * m4/check-libm-func.m4: Removed.
39951         * m4/check-math-lib.m4: New file.
39952         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39953         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39954         definition and lack of AC_LIBOBJ([roundf]).
39955         * m4/roundl.m4: Ditto, and similarly for roundl.
39956         * modules/round: Reference new m4 file.
39957         * modules/roundf: Ditto.
39958         * modules/roundl: Ditto.
39959         * tests/test-round2.c (main): Use ROUND instead of round.
39960         Bug report from Bruno Haible.
39961
39962 2007-10-21  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39965         context.
39966
39967 2007-10-21  Bruno Haible  <bruno@clisp.org>
39968
39969         * tests/test-wcwidth.c (main): Allow negative result for some control
39970         characters.
39971
39972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39973         Needed on OSF/1 5.1.
39974
39975 2007-10-21  Bruno Haible  <bruno@clisp.org>
39976
39977         * tests/test-floorf1.c: Include isnanf.h.
39978         (main): Use isnanf() instead of isnan().
39979         * tests/test-ceilf1.c: Include isnanf.h.
39980         (main): Use isnanf() instead of isnan().
39981         * tests/test-truncf1.c: Include isnanf.h.
39982         (main): Use isnanf() instead of isnan().
39983         * tests/test-roundf1.c: Include isnanf.h.
39984         (main): Use isnanf() instead of isnan().
39985
39986 2007-10-21  Eric Blake  <ebb9@byu.net>
39987
39988         * users.txt: Update URL for m4.
39989
39990 2007-10-21  Bruno Haible  <bruno@clisp.org>
39991
39992         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39993
39994 2007-10-21  Bruno Haible  <bruno@clisp.org>
39995
39996         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39997         Git's management files if the CVS files are not present.
39998
39999 2007-10-20  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
40002         gcc-3.4.x.
40003
40004 2007-10-20  Ben Pfaff  <blp@gnu.org>
40005
40006         * lib/math.in.h: Declare round, roundf, roundl if we are providing
40007         implementations.
40008         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
40009         * lib/round.c: New file.
40010         * lib/roundf.c: New file.
40011         * lib/roundl.c: New file.
40012         * m4/round.m4: New file.
40013         * m4/roundf.m4: New file.
40014         * m4/roundl.m4: New file.
40015         * m4/check-libm-func-m4: New file.
40016         * modules/math: Replace round, roundf, roundl related @VARS@ in
40017         math.in.h.
40018         * modules/round: New file.
40019         * modules/round-tests: New file.
40020         * modules/roundf: New file.
40021         * modules/roundf-tests: New file.
40022         * modules/roundl: New file.
40023         * modules/roundl-tests: New file.
40024         * tests/test-round1.c: New file.
40025         * tests/test-round2.c: New file.
40026         * tests/test-roundf1.c: New file.
40027         * tests/test-roundf2.c: New file.
40028         * tests/test-roundl.c: New file.
40029         * doc/functions/round.texi: Mention round module.
40030         * doc/functions/roundf.texi: Mention roundf module.
40031         * doc/functions/roundl.texi: Mention roundl module.
40032         * MODULES.html.sh: Mention new modules.
40033         Thanks to Bruno Haible for suggestions.
40034
40035 2007-10-20  Jim Meyering  <meyering@redhat.com>
40036
40037         * lib/xprintf.c: Include <config.h> unconditionally.
40038
40039         Change xprintf's license to GPL.
40040         * modules/xprintf (License): s/LGPL/GPL/, since this module
40041         depends on modules (exit and exitfail) which are GPL.
40042         Suggestion from Bruno Haible.
40043
40044         xprintf fixes.
40045         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
40046         Use a clearer diagnostic.
40047         Patch from Bruno Haible.
40048
40049 2007-10-20  Bruno Haible  <bruno@clisp.org>
40050
40051         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
40052         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
40053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40054
40055 2007-10-20  Bruno Haible  <bruno@clisp.org>
40056
40057         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
40058         precision in the comparison result > x - 1 or similar.
40059         * tests/test-ceilf2.c (correct_result_p): Likewise.
40060         * tests/test-truncf2.c (correct_result_p): Likewise.
40061         * tests/test-trunc2.c (correct_result_p): Likewise.
40062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40063
40064 2007-10-20  Bruno Haible  <bruno@clisp.org>
40065
40066         * modules/ceil: New file.
40067         * m4/ceil.m4: New file.
40068         * doc/functions/ceil.texi: Mention the 'ceil' module.
40069
40070 2007-10-20  Bruno Haible  <bruno@clisp.org>
40071
40072         * modules/floor: New file.
40073         * m4/floor.m4: New file.
40074         * doc/functions/floor.texi: Mention the 'floor' module.
40075
40076 2007-10-20  Bruno Haible  <bruno@clisp.org>
40077
40078         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40079         of %a.
40080         * modules/floorf-tests (Depends-on): Likewise.
40081         * modules/truncf-tests (Depends-on): Likewise.
40082         * modules/trunc-tests (Depends-on): Likewise.
40083         Reported by Ben Pfaff.
40084
40085 2007-10-19  Jim Meyering  <meyering@redhat.com>
40086
40087         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40088         Don't bother testing specific errno values.  Just test ferror.
40089
40090         New module: xprintf
40091         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40092
40093 2007-10-19  Bruno Haible  <bruno@clisp.org>
40094
40095         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40096         syntax.
40097         * modules/javaexec (Makefile.am): Likewise.
40098         * modules/relocatable-prog (Makefile.am): Likewise.
40099         Suggested by Jim Meyering.
40100
40101 2007-10-18  Bruno Haible  <bruno@clisp.org>
40102
40103         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40104         Reported by Jim Meyering.
40105
40106 2007-10-18  Eric Blake  <ebb9@byu.net>
40107
40108         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40109
40110 2007-10-18  Bruno Haible  <bruno@clisp.org>
40111
40112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40113         the format string into writable memory. Needed in Fortify conditions.
40114
40115 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40116             Bruno Haible  <bruno@clisp.org>
40117
40118         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40119         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40120         * modules/trim (Depends-on): Add mbchar.
40121         (configure.ac): Add gl_FUNC_MBRTOWC.
40122         (Makefile.am): Augment lib_SOURCES.
40123
40124 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40125
40126         Modify glob.c to use fstatat and dirfd, to simplify it.
40127         Suggested by Eric Blake.
40128         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40129         Don't include <stdbool.h>; not used.
40130         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
40131         (link_exists_p): Simplify implementation, since we can now assume
40132         dirfd and fstatat.
40133         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
40134
40135 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40136
40137         * gnulib-tool (func_get_dependencies): Fix sed script to
40138         match only tests.
40139
40140 2007-10-17  Bruno Haible  <bruno@clisp.org>
40141
40142         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
40143         allow locale names without encoding suffix.
40144         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
40145         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
40146
40147 2007-10-16  Bruno Haible  <bruno@clisp.org>
40148
40149         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
40150         * lib/getgroups.c (getgroups): Likewise.
40151         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
40152
40153 2007-10-16  Bruno Haible  <bruno@clisp.org>
40154
40155         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
40156         * modules/malloc-posix (License): Likewise.
40157         * modules/realloc-posix (License): Likewise.
40158         * modules/calloc-posix (License): Likewise.
40159         * modules/intprops (License): Change from GPL to LGPL, with
40160         Paul Eggert's approval.
40161
40162 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40163
40164         Merge glibc changes into lib/glob.c.
40165
40166         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
40167         2007-10-15 04:59:03 UTC.  Here are the changes:
40168
40169         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
40170
40171         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
40172
40173         * lib/glob.c: Add some branch prediction throughout.
40174
40175         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
40176
40177         [BZ #5103]
40178         * lib/glob.c (glob): Recognize patterns starting \/.
40179
40180         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
40181
40182         [BZ #3996]
40183         * lib/glob.c (attribute_hidden): Define if not defined.
40184         (glob): Unescape dirname, filename or username when needed and not
40185         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
40186         is NULL.  Handle unescaped [ in pattern without closing ].
40187         Don't pass GLOB_CHECK down to recursive glob for directories.
40188         (__glob_pattern_type): New function.
40189         (__glob_pattern_p): Implement using __glob_pattern_type.
40190         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
40191         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
40192         Remove unreachable code.
40193
40194         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
40195
40196         * lib/glob.c (glob_in_dir): Add some comments and asserts to
40197         explain why there are no leaks.
40198
40199         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
40200
40201         [BZ #3253]
40202         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
40203         time, rather allocate increasingly bigger arrays of pointers, if
40204         possible with alloca, if too large with malloc.
40205
40206 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40207
40208         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
40209         Problem reported by H.Merijn Brand in
40210         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
40211         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
40212         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40213
40214 2007-10-15  Bruno Haible  <bruno@clisp.org>
40215
40216         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
40217         with explicit rpl_ prefix.
40218         * lib/fopen.c (fopen): Likewise.
40219         * lib/freopen.c (freopen): Likewise.
40220         * lib/iconv.c (iconv): Likewise.
40221         * lib/iconv_close.c (iconv_close): Likewise.
40222
40223 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40224
40225         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
40226
40227 2007-10-15  Bruno Haible  <bruno@clisp.org>
40228
40229         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
40230         <stddef.h> instead of <stdlib.h> since we only need NULL.
40231         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40232
40233 2007-10-15  Bruno Haible  <bruno@clisp.org>
40234
40235         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
40236         Replace paragraph talking about LIBOBJS.
40237         Reported by Colin Watson <cjwatson@debian.org>.
40238
40239 2007-10-15  Bruno Haible  <bruno@clisp.org>
40240
40241         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
40242         <stdlib.h> before using NULL.
40243
40244 2007-10-15  Simon Josefsson  <simon@josefsson.org>
40245
40246         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
40247         Reported by Albert Chin <china@thewrittenword.com>.
40248
40249 2007-10-14  Bruno Haible  <bruno@clisp.org>
40250
40251         * modules/iconv_open-utf-tests: New file.
40252         * tests/test-iconv-utf.c: New file.
40253
40254         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40255         * modules/iconv_open-utf: New file.
40256         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40257         (iconv, iconv_close): New declarations.
40258         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40259         be defined.
40260         (iconv_open): Add special handling of conversion between UTF-8 and
40261         UTF-{16,32}{BE,LE}.
40262         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40263         * lib/iconv_close.c: New file.
40264         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40265         gl_FUNC_ICONV_OPEN.
40266         (gl_FUNC_ICONV_OPEN): Use it.
40267         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40268         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40269         and REPLACE_ICONV_UTF.
40270         * modules/iconv_open (Depends-on): Add c-strcase.
40271         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40272         ICONV_CONST.
40273         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40274
40275 2007-10-13  Albert Chin  <china@thewrittenword.com>
40276             Bruno Haible  <bruno@clisp.org>
40277
40278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40279         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40280
40281 2007-10-13  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40284         defined, use the ISO C99 inline semantics.
40285         * lib/argp.h (ARGP_EI): Likewise.
40286
40287 2007-10-13  Bruno Haible  <bruno@clisp.org>
40288
40289         Handle 'inline' change in gcc 4.3.0.
40290         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40291         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40292         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40293         argp_fmtstream_point): Disable 'extern' declaration if the function
40294         definition is going to be provided inline.
40295         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40296         semantics, not the ISO C99 inline semantics.
40297         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40298         'extern' declaration if the function definition is going to be provided
40299         inline.
40300         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40301         the GNU C inline semantics, not the ISO C99 inline semantics. With
40302         GCC 4.2, avoid a warning.
40303
40304 2007-10-13  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/freading.h (freading): Enable the use of __freading for
40307         glibc >= 2.7.
40308         * lib/freading.c (freading): Likewise.
40309
40310 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40311
40312         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40313         "warning: C99 inline functions are not supported; using GNU89".
40314
40315 2007-10-12  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40318         of 2.
40319         * tests/test-ceilf2.c: New file.
40320         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40321
40322         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40323         * modules/ceilf-tests: Update.
40324
40325 2007-10-12  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40328         of 2.
40329         * tests/test-floorf2.c: New file.
40330         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40331
40332         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40333         * modules/floorf-tests: Update.
40334
40335 2007-10-12  Bruno Haible  <bruno@clisp.org>
40336
40337         * tests/test-trunc2.c: New file.
40338         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40339
40340         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40341         * modules/trunc-tests: Update.
40342
40343 2007-10-12  Bruno Haible  <bruno@clisp.org>
40344
40345         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40346         of 2.
40347         * tests/test-truncf2.c: New file.
40348         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40349
40350         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40351         * modules/truncf-tests: Update.
40352
40353 2007-10-11  Eric Blake  <ebb9@byu.net>
40354
40355         Don't claim strerror is broken on Interix.
40356         * doc/functions/strerror.texi (strerror): Known broken systems are
40357         now Solaris 8, and not Interix.
40358         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40359         Interix on cross-compile.
40360         Reported by Martin Koeppe in
40361         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40362
40363 2007-10-11  Bruno Haible  <bruno@clisp.org>
40364
40365         * modules/i-ring-tests: New file.
40366         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40367         instead of assert.
40368
40369 2007-10-11  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/filenamecat-tests: New file.
40372         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40373         * lib/filenamecat.c: Remove test code.
40374
40375 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40376
40377         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40378
40379         * lib/strerror.c: Include <string.h> always, to test interface,
40380         and to remove the need for the dummy.
40381         Include intprops.h to compute width instead of doing it ourselves
40382         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40383         (strerror): Define it to return NULL if there's no system strerror.
40384         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40385         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40386         ancient pre-strerror Unix systems well any more.  Saying "unknown
40387         system error" is enough.
40388         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40389         simpler strerror.c implementation.
40390         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40391         Simplify the tests to reflect the simpler strerror implementation.
40392         * modules/strerror (Depends-on): Add intprops.
40393
40394 2007-10-09  Eric Blake  <ebb9@byu.net>
40395
40396         Silence test-fpending.
40397         * modules/fpending-tests (Files): Add wrapper script.
40398         * tests/test-fpending.sh: New file.
40399
40400 2007-10-09  Bruno Haible  <bruno@clisp.org>
40401
40402         * MODULES.html.sh (func_module): Don't create a hyperlink for
40403         function names like 'printf_frexp'.
40404         (Misc): Add crc, memxor.
40405         (Characteristics of floating types): New section.
40406         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40407         isnanf-nolibm, signbit, trunc, truncf, truncl.
40408         (Enhancements for ISO C 99 functions): New subsection Input/output.
40409         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40410         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40411         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40412         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40413         (Enhancements for POSIX:2001 functions): Add chdir-long.
40414         (File system functions): Add areadlink, chdir-safer, read-file.
40415         Remove cycle-check.
40416         (File system as inode set): New section.
40417         (Date and time): Add gethrxtime.
40418         (Multithreading): Add openmp.
40419         (Internationalization functions): Add localename.
40420         (Unicode string functions): Add unistr/u*-mbsnlen.
40421         (Support for maintaining and releasing projects): Add git-version-gen.
40422         (Lone files): Remove directories.
40423
40424 2007-10-08  Ben Pfaff  <blp@gnu.org>
40425
40426         * lib/xmalloca.h: Fix typo in comment.
40427
40428 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40429
40430         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40431         when avoiding problems with integer overflow.  Use a portable test
40432         instead.
40433
40434 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40435
40436         * modules/dummy (License): Change to LGPLv2+.
40437         * modules/float (License): Likewise
40438         * modules/realloc (License): Likewise
40439         * modules/stdlib (License): Likewise
40440
40441 2007-10-07  Bruno Haible  <bruno@clisp.org>
40442
40443         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40444         * floor.c (TWO_MANT_DIG): Likewise.
40445         * ceil.c (TWO_MANT_DIG): Likewise.
40446         Reported by Ben Pfaff.
40447
40448 2007-10-07  Bruno Haible  <bruno@clisp.org>
40449
40450         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40451         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40452         * lib/frexp.c (FUNC): Likewise.
40453         * lib/printf-frexp.h (printf_frexp): Likewise.
40454         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40455         * lib/printf-frexp.c (FUNC): Likewise.
40456         Suggested by Jim Meyering.
40457
40458 2007-10-07  Jim Meyering  <meyering@redhat.com>
40459
40460         Make xnanosleep's integer overflow test more robust.
40461         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40462         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40463
40464 2007-10-07  Bruno Haible  <bruno@clisp.org>
40465
40466         * NEWS: Mention the license change.
40467
40468         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40469         abbreviations in the modules files.
40470
40471         Change copyright notice from GPLv2+ to GPLv3+.
40472         * README: Change copyright notice.
40473         * MODULES.html.sh: Likewise.
40474         * build-aux/bootstrap.conf: Likewise.
40475         * build-aux/config.libpath: Likewise.
40476         * build-aux/csharpcomp.sh.in: Likewise.
40477         * build-aux/csharpexec.sh.in: Likewise.
40478         * build-aux/install-reloc: Likewise.
40479         * build-aux/javacomp.sh.in: Likewise.
40480         * build-aux/javaexec.sh.in: Likewise.
40481         * build-aux/ldd.sh.in: Likewise.
40482         * build-aux/reloc-ldflags: Likewise.
40483         * build-aux/relocatable.sh.in: Likewise.
40484         * build-aux/x-to-1.in: Likewise.
40485         * check-module: Likewise.
40486         * config/srclistvars.sh: Likewise.
40487         * gnulib-tool: Likewise.
40488         * lib/acl-internal.h: Likewise.
40489         * lib/acl.c: Likewise.
40490         * lib/acl.h: Likewise.
40491         * lib/acl_entries.c: Likewise.
40492         * lib/areadlink-with-size.c: Likewise.
40493         * lib/areadlink.c: Likewise.
40494         * lib/areadlink.h: Likewise.
40495         * lib/argmatch.c: Likewise.
40496         * lib/argmatch.h: Likewise.
40497         * lib/argp-ba.c: Likewise.
40498         * lib/argp-eexst.c: Likewise.
40499         * lib/argp-fmtstream.c: Likewise.
40500         * lib/argp-fmtstream.h: Likewise.
40501         * lib/argp-fs-xinl.c: Likewise.
40502         * lib/argp-help.c: Likewise.
40503         * lib/argp-namefrob.h: Likewise.
40504         * lib/argp-parse.c: Likewise.
40505         * lib/argp-pin.c: Likewise.
40506         * lib/argp-pv.c: Likewise.
40507         * lib/argp-pvh.c: Likewise.
40508         * lib/argp-xinl.c: Likewise.
40509         * lib/argp.h: Likewise.
40510         * lib/at-func.c: Likewise.
40511         * lib/atanl.c: Likewise.
40512         * lib/backupfile.c: Likewise.
40513         * lib/backupfile.h: Likewise.
40514         * lib/basename.c: Likewise.
40515         * lib/binary-io.h: Likewise.
40516         * lib/byteswap.in.h: Likewise.
40517         * lib/c-stack.c: Likewise.
40518         * lib/c-stack.h: Likewise.
40519         * lib/c-strcasestr.c: Likewise.
40520         * lib/c-strcasestr.h: Likewise.
40521         * lib/c-strstr.c: Likewise.
40522         * lib/c-strstr.h: Likewise.
40523         * lib/c-strtod.c: Likewise.
40524         * lib/calloc.c: Likewise.
40525         * lib/canon-host.c: Likewise.
40526         * lib/canon-host.h: Likewise.
40527         * lib/canonicalize-lgpl.c: Likewise.
40528         * lib/canonicalize.c: Likewise.
40529         * lib/canonicalize.h: Likewise.
40530         * lib/ceil.c: Likewise.
40531         * lib/ceilf.c: Likewise.
40532         * lib/ceill.c: Likewise.
40533         * lib/chdir-long.c: Likewise.
40534         * lib/chdir-long.h: Likewise.
40535         * lib/chdir-safer.c: Likewise.
40536         * lib/chdir-safer.h: Likewise.
40537         * lib/chown.c: Likewise.
40538         * lib/classpath.c: Likewise.
40539         * lib/classpath.h: Likewise.
40540         * lib/clean-temp.c: Likewise.
40541         * lib/clean-temp.h: Likewise.
40542         * lib/cloexec.c: Likewise.
40543         * lib/close-stream.c: Likewise.
40544         * lib/closein.c: Likewise.
40545         * lib/closein.h: Likewise.
40546         * lib/closeout.c: Likewise.
40547         * lib/closeout.h: Likewise.
40548         * lib/concat-filename.c: Likewise.
40549         * lib/copy-file.c: Likewise.
40550         * lib/copy-file.h: Likewise.
40551         * lib/count-one-bits.h: Likewise.
40552         * lib/crc.c: Likewise.
40553         * lib/crc.h: Likewise.
40554         * lib/creat-safer.c: Likewise.
40555         * lib/csharpcomp.c: Likewise.
40556         * lib/csharpcomp.h: Likewise.
40557         * lib/csharpexec.c: Likewise.
40558         * lib/csharpexec.h: Likewise.
40559         * lib/cycle-check.c: Likewise.
40560         * lib/cycle-check.h: Likewise.
40561         * lib/diacrit.c: Likewise.
40562         * lib/diacrit.h: Likewise.
40563         * lib/diffseq.h: Likewise.
40564         * lib/dirchownmod.c: Likewise.
40565         * lib/dirent.in.h: Likewise.
40566         * lib/dirfd.c: Likewise.
40567         * lib/dirfd.h: Likewise.
40568         * lib/dirname.c: Likewise.
40569         * lib/dirname.h: Likewise.
40570         * lib/dummy.c: Likewise.
40571         * lib/dup-safer.c: Likewise.
40572         * lib/dup2.c: Likewise.
40573         * lib/eealloc.h: Likewise.
40574         * lib/error.c: Likewise.
40575         * lib/error.h: Likewise.
40576         * lib/euidaccess.c: Likewise.
40577         * lib/exclude.c: Likewise.
40578         * lib/exclude.h: Likewise.
40579         * lib/execute.c: Likewise.
40580         * lib/execute.h: Likewise.
40581         * lib/exitfail.c: Likewise.
40582         * lib/exitfail.h: Likewise.
40583         * lib/expl.c: Likewise.
40584         * lib/fatal-signal.c: Likewise.
40585         * lib/fatal-signal.h: Likewise.
40586         * lib/fbufmode.c: Likewise.
40587         * lib/fbufmode.h: Likewise.
40588         * lib/fchdir.c: Likewise.
40589         * lib/fchmodat.c: Likewise.
40590         * lib/fchownat.c: Likewise.
40591         * lib/fcntl--.h: Likewise.
40592         * lib/fcntl-safer.h: Likewise.
40593         * lib/fcntl.in.h: Likewise.
40594         * lib/fd-safer.c: Likewise.
40595         * lib/fflush.c: Likewise.
40596         * lib/file-has-acl.c: Likewise.
40597         * lib/file-set.c: Likewise.
40598         * lib/file-type.c: Likewise.
40599         * lib/file-type.h: Likewise.
40600         * lib/fileblocks.c: Likewise.
40601         * lib/filemode.c: Likewise.
40602         * lib/filemode.h: Likewise.
40603         * lib/filename.h: Likewise.
40604         * lib/filenamecat.c: Likewise.
40605         * lib/filenamecat.h: Likewise.
40606         * lib/findprog.c: Likewise.
40607         * lib/findprog.h: Likewise.
40608         * lib/float.in.h: Likewise.
40609         * lib/floor.c: Likewise.
40610         * lib/floorf.c: Likewise.
40611         * lib/floorl.c: Likewise.
40612         * lib/fopen-safer.c: Likewise.
40613         * lib/fopen.c: Likewise.
40614         * lib/fpending.c: Likewise.
40615         * lib/fpending.h: Likewise.
40616         * lib/fprintf.c: Likewise.
40617         * lib/fprintftime.h: Likewise.
40618         * lib/fpucw.h: Likewise.
40619         * lib/fpurge.c: Likewise.
40620         * lib/fpurge.h: Likewise.
40621         * lib/freadable.c: Likewise.
40622         * lib/freadable.h: Likewise.
40623         * lib/freadahead.c: Likewise.
40624         * lib/freadahead.h: Likewise.
40625         * lib/freading.c: Likewise.
40626         * lib/freading.h: Likewise.
40627         * lib/free.c: Likewise.
40628         * lib/freopen.c: Likewise.
40629         * lib/frexp.c: Likewise.
40630         * lib/frexpl.c: Likewise.
40631         * lib/fseek.c: Likewise.
40632         * lib/fseterr.c: Likewise.
40633         * lib/fseterr.h: Likewise.
40634         * lib/fstatat.c: Likewise.
40635         * lib/fstrcmp.c: Likewise.
40636         * lib/fstrcmp.h: Likewise.
40637         * lib/fsusage.c: Likewise.
40638         * lib/fsusage.h: Likewise.
40639         * lib/ftell.c: Likewise.
40640         * lib/ftello.c: Likewise.
40641         * lib/fts-cycle.c: Likewise.
40642         * lib/fts.c: Likewise.
40643         * lib/fts_.h: Likewise.
40644         * lib/full-read.c: Likewise.
40645         * lib/full-read.h: Likewise.
40646         * lib/full-write.c: Likewise.
40647         * lib/full-write.h: Likewise.
40648         * lib/fwritable.c: Likewise.
40649         * lib/fwritable.h: Likewise.
40650         * lib/fwriteerror.c: Likewise.
40651         * lib/fwriteerror.h: Likewise.
40652         * lib/fwriting.c: Likewise.
40653         * lib/fwriting.h: Likewise.
40654         * lib/gcd.c: Likewise.
40655         * lib/gcd.h: Likewise.
40656         * lib/getcwd.c: Likewise.
40657         * lib/getdate.h: Likewise.
40658         * lib/getdate.y: Likewise.
40659         * lib/getdomainname.c: Likewise.
40660         * lib/getdomainname.h: Likewise.
40661         * lib/getgroups.c: Likewise.
40662         * lib/gethostname.c: Likewise.
40663         * lib/gethrxtime.c: Likewise.
40664         * lib/gethrxtime.h: Likewise.
40665         * lib/getloadavg.c: Likewise.
40666         * lib/getndelim2.c: Likewise.
40667         * lib/getndelim2.h: Likewise.
40668         * lib/getnline.c: Likewise.
40669         * lib/getnline.h: Likewise.
40670         * lib/getopt.c: Likewise.
40671         * lib/getopt.in.h: Likewise.
40672         * lib/getopt1.c: Likewise.
40673         * lib/getopt_int.h: Likewise.
40674         * lib/getpagesize.h: Likewise.
40675         * lib/getsubopt.c: Likewise.
40676         * lib/gettime.c: Likewise.
40677         * lib/getugroups.c: Likewise.
40678         * lib/getugroups.h: Likewise.
40679         * lib/getusershell.c: Likewise.
40680         * lib/gl_anyavltree_list1.h: Likewise.
40681         * lib/gl_anyavltree_list2.h: Likewise.
40682         * lib/gl_anyhash_list1.h: Likewise.
40683         * lib/gl_anyhash_list2.h: Likewise.
40684         * lib/gl_anylinked_list1.h: Likewise.
40685         * lib/gl_anylinked_list2.h: Likewise.
40686         * lib/gl_anyrbtree_list1.h: Likewise.
40687         * lib/gl_anyrbtree_list2.h: Likewise.
40688         * lib/gl_anytree_list1.h: Likewise.
40689         * lib/gl_anytree_list2.h: Likewise.
40690         * lib/gl_anytree_oset.h: Likewise.
40691         * lib/gl_anytreehash_list1.h: Likewise.
40692         * lib/gl_anytreehash_list2.h: Likewise.
40693         * lib/gl_array_list.c: Likewise.
40694         * lib/gl_array_list.h: Likewise.
40695         * lib/gl_array_oset.c: Likewise.
40696         * lib/gl_array_oset.h: Likewise.
40697         * lib/gl_avltree_list.c: Likewise.
40698         * lib/gl_avltree_list.h: Likewise.
40699         * lib/gl_avltree_oset.c: Likewise.
40700         * lib/gl_avltree_oset.h: Likewise.
40701         * lib/gl_avltreehash_list.c: Likewise.
40702         * lib/gl_avltreehash_list.h: Likewise.
40703         * lib/gl_carray_list.c: Likewise.
40704         * lib/gl_carray_list.h: Likewise.
40705         * lib/gl_linked_list.c: Likewise.
40706         * lib/gl_linked_list.h: Likewise.
40707         * lib/gl_linkedhash_list.c: Likewise.
40708         * lib/gl_linkedhash_list.h: Likewise.
40709         * lib/gl_list.c: Likewise.
40710         * lib/gl_list.h: Likewise.
40711         * lib/gl_oset.c: Likewise.
40712         * lib/gl_oset.h: Likewise.
40713         * lib/gl_rbtree_list.c: Likewise.
40714         * lib/gl_rbtree_list.h: Likewise.
40715         * lib/gl_rbtree_oset.c: Likewise.
40716         * lib/gl_rbtree_oset.h: Likewise.
40717         * lib/gl_rbtreehash_list.c: Likewise.
40718         * lib/gl_rbtreehash_list.h: Likewise.
40719         * lib/gl_sublist.c: Likewise.
40720         * lib/gl_sublist.h: Likewise.
40721         * lib/group-member.c: Likewise.
40722         * lib/group-member.h: Likewise.
40723         * lib/hard-locale.c: Likewise.
40724         * lib/hard-locale.h: Likewise.
40725         * lib/hash-pjw.c: Likewise.
40726         * lib/hash-pjw.h: Likewise.
40727         * lib/hash-triple.c: Likewise.
40728         * lib/hash.c: Likewise.
40729         * lib/hash.h: Likewise.
40730         * lib/human.c: Likewise.
40731         * lib/human.h: Likewise.
40732         * lib/i-ring.c: Likewise.
40733         * lib/i-ring.h: Likewise.
40734         * lib/idcache.c: Likewise.
40735         * lib/imaxabs.c: Likewise.
40736         * lib/imaxdiv.c: Likewise.
40737         * lib/inet_pton.c: Likewise.
40738         * lib/inet_pton.h: Likewise.
40739         * lib/intprops.h: Likewise.
40740         * lib/inttostr.c: Likewise.
40741         * lib/inttostr.h: Likewise.
40742         * lib/inttypes.in.h: Likewise.
40743         * lib/isapipe.c: Likewise.
40744         * lib/isdir.c: Likewise.
40745         * lib/isnan.c: Likewise.
40746         * lib/isnan.h: Likewise.
40747         * lib/isnanf.c: Likewise.
40748         * lib/isnanf.h: Likewise.
40749         * lib/isnanl-nolibm.h: Likewise.
40750         * lib/isnanl.c: Likewise.
40751         * lib/isnanl.h: Likewise.
40752         * lib/javacomp.c: Likewise.
40753         * lib/javacomp.h: Likewise.
40754         * lib/javaexec.c: Likewise.
40755         * lib/javaexec.h: Likewise.
40756         * lib/javaversion.c: Likewise.
40757         * lib/javaversion.h: Likewise.
40758         * lib/javaversion.java: Likewise.
40759         * lib/lbrkprop.h: Likewise.
40760         * lib/lchmod.h: Likewise.
40761         * lib/lchown.c: Likewise.
40762         * lib/ldexpl.c: Likewise.
40763         * lib/linebreak.c: Likewise.
40764         * lib/linebreak.h: Likewise.
40765         * lib/linebuffer.c: Likewise.
40766         * lib/linebuffer.h: Likewise.
40767         * lib/locale.in.h: Likewise.
40768         * lib/logl.c: Likewise.
40769         * lib/long-options.c: Likewise.
40770         * lib/long-options.h: Likewise.
40771         * lib/lstat.c: Likewise.
40772         * lib/lstat.h: Likewise.
40773         * lib/math.in.h: Likewise.
40774         * lib/mbchar.c: Likewise.
40775         * lib/mbchar.h: Likewise.
40776         * lib/mbfile.h: Likewise.
40777         * lib/mbiter.h: Likewise.
40778         * lib/mbscasecmp.c: Likewise.
40779         * lib/mbscasestr.c: Likewise.
40780         * lib/mbschr.c: Likewise.
40781         * lib/mbscspn.c: Likewise.
40782         * lib/mbslen.c: Likewise.
40783         * lib/mbsncasecmp.c: Likewise.
40784         * lib/mbsnlen.c: Likewise.
40785         * lib/mbspbrk.c: Likewise.
40786         * lib/mbspcasecmp.c: Likewise.
40787         * lib/mbsrchr.c: Likewise.
40788         * lib/mbssep.c: Likewise.
40789         * lib/mbsspn.c: Likewise.
40790         * lib/mbsstr.c: Likewise.
40791         * lib/mbstok_r.c: Likewise.
40792         * lib/mbswidth.c: Likewise.
40793         * lib/mbswidth.h: Likewise.
40794         * lib/mbuiter.h: Likewise.
40795         * lib/memcasecmp.c: Likewise.
40796         * lib/memcasecmp.h: Likewise.
40797         * lib/memchr.c: Likewise.
40798         * lib/memcmp.c: Likewise.
40799         * lib/memcoll.c: Likewise.
40800         * lib/memcoll.h: Likewise.
40801         * lib/memcpy.c: Likewise.
40802         * lib/memrchr.c: Likewise.
40803         * lib/mkancesdirs.c: Likewise.
40804         * lib/mkdir-p.c: Likewise.
40805         * lib/mkdir-p.h: Likewise.
40806         * lib/mkdir.c: Likewise.
40807         * lib/mkdirat.c: Likewise.
40808         * lib/mkdtemp.c: Likewise.
40809         * lib/mkstemp-safer.c: Likewise.
40810         * lib/mkstemp.c: Likewise.
40811         * lib/modechange.c: Likewise.
40812         * lib/modechange.h: Likewise.
40813         * lib/mountlist.c: Likewise.
40814         * lib/mountlist.h: Likewise.
40815         * lib/mpsort.c: Likewise.
40816         * lib/nanosleep.c: Likewise.
40817         * lib/obstack.c: Likewise.
40818         * lib/obstack.h: Likewise.
40819         * lib/open-safer.c: Likewise.
40820         * lib/open.c: Likewise.
40821         * lib/openat-die.c: Likewise.
40822         * lib/openat-priv.h: Likewise.
40823         * lib/openat-proc.c: Likewise.
40824         * lib/openat.c: Likewise.
40825         * lib/openat.h: Likewise.
40826         * lib/pagealign_alloc.c: Likewise.
40827         * lib/pagealign_alloc.h: Likewise.
40828         * lib/physmem.c: Likewise.
40829         * lib/physmem.h: Likewise.
40830         * lib/pipe-safer.c: Likewise.
40831         * lib/pipe.c: Likewise.
40832         * lib/pipe.h: Likewise.
40833         * lib/posixtm.c: Likewise.
40834         * lib/posixtm.h: Likewise.
40835         * lib/posixver.c: Likewise.
40836         * lib/printf-frexp.c: Likewise.
40837         * lib/printf-frexp.h: Likewise.
40838         * lib/printf-frexpl.c: Likewise.
40839         * lib/printf-frexpl.h: Likewise.
40840         * lib/printf.c: Likewise.
40841         * lib/progname.c: Likewise.
40842         * lib/progname.h: Likewise.
40843         * lib/progreloc.c: Likewise.
40844         * lib/putenv.c: Likewise.
40845         * lib/quote.c: Likewise.
40846         * lib/quote.h: Likewise.
40847         * lib/quotearg.c: Likewise.
40848         * lib/quotearg.h: Likewise.
40849         * lib/raise.c: Likewise.
40850         * lib/readline.c: Likewise.
40851         * lib/readline.h: Likewise.
40852         * lib/readlink.c: Likewise.
40853         * lib/readtokens.c: Likewise.
40854         * lib/readtokens.h: Likewise.
40855         * lib/readtokens0.c: Likewise.
40856         * lib/readtokens0.h: Likewise.
40857         * lib/readutmp.c: Likewise.
40858         * lib/readutmp.h: Likewise.
40859         * lib/realloc.c: Likewise.
40860         * lib/relocwrapper.c: Likewise.
40861         * lib/rename-dest-slash.c: Likewise.
40862         * lib/rename.c: Likewise.
40863         * lib/rmdir.c: Likewise.
40864         * lib/rpmatch.c: Likewise.
40865         * lib/safe-read.c: Likewise.
40866         * lib/safe-read.h: Likewise.
40867         * lib/safe-write.c: Likewise.
40868         * lib/safe-write.h: Likewise.
40869         * lib/same-inode.h: Likewise.
40870         * lib/same.c: Likewise.
40871         * lib/same.h: Likewise.
40872         * lib/save-cwd.c: Likewise.
40873         * lib/save-cwd.h: Likewise.
40874         * lib/savedir.c: Likewise.
40875         * lib/savedir.h: Likewise.
40876         * lib/savewd.c: Likewise.
40877         * lib/savewd.h: Likewise.
40878         * lib/search.in.h: Likewise.
40879         * lib/setenv.c: Likewise.
40880         * lib/setenv.h: Likewise.
40881         * lib/settime.c: Likewise.
40882         * lib/sh-quote.c: Likewise.
40883         * lib/sh-quote.h: Likewise.
40884         * lib/sig2str.c: Likewise.
40885         * lib/sig2str.h: Likewise.
40886         * lib/signal.in.h: Likewise.
40887         * lib/signbitd.c: Likewise.
40888         * lib/signbitf.c: Likewise.
40889         * lib/signbitl.c: Likewise.
40890         * lib/sigprocmask.c: Likewise.
40891         * lib/sincosl.c: Likewise.
40892         * lib/sleep.c: Likewise.
40893         * lib/sprintf.c: Likewise.
40894         * lib/sqrtl.c: Likewise.
40895         * lib/stat-time.h: Likewise.
40896         * lib/stdio--.h: Likewise.
40897         * lib/stdio-safer.h: Likewise.
40898         * lib/stdlib--.h: Likewise.
40899         * lib/stdlib-safer.h: Likewise.
40900         * lib/stdlib.in.h: Likewise.
40901         * lib/stpcpy.c: Likewise.
40902         * lib/stpncpy.c: Likewise.
40903         * lib/strchrnul.c: Likewise.
40904         * lib/strcspn.c: Likewise.
40905         * lib/strerror.c: Likewise.
40906         * lib/strftime.c: Likewise.
40907         * lib/strftime.h: Likewise.
40908         * lib/striconveh.c: Likewise.
40909         * lib/striconveh.h: Likewise.
40910         * lib/striconveha.c: Likewise.
40911         * lib/striconveha.h: Likewise.
40912         * lib/stripslash.c: Likewise.
40913         * lib/strnlen1.c: Likewise.
40914         * lib/strnlen1.h: Likewise.
40915         * lib/strtod.c: Likewise.
40916         * lib/strtoimax.c: Likewise.
40917         * lib/strtok_r.c: Likewise.
40918         * lib/strtol.c: Likewise.
40919         * lib/strtoll.c: Likewise.
40920         * lib/strtoul.c: Likewise.
40921         * lib/strtoull.c: Likewise.
40922         * lib/sysexits.in.h: Likewise.
40923         * lib/tempname.c: Likewise.
40924         * lib/tempname.h: Likewise.
40925         * lib/timespec.h: Likewise.
40926         * lib/tls.c: Likewise.
40927         * lib/tls.h: Likewise.
40928         * lib/tmpdir.c: Likewise.
40929         * lib/tmpdir.h: Likewise.
40930         * lib/tmpfile-safer.c: Likewise.
40931         * lib/tmpfile.c: Likewise.
40932         * lib/trigl.c: Likewise.
40933         * lib/trigl.h: Likewise.
40934         * lib/trim.c: Likewise.
40935         * lib/trim.h: Likewise.
40936         * lib/trunc.c: Likewise.
40937         * lib/truncf.c: Likewise.
40938         * lib/truncl.c: Likewise.
40939         * lib/tsearch.c: Likewise.
40940         * lib/unicodeio.c: Likewise.
40941         * lib/unicodeio.h: Likewise.
40942         * lib/unistd--.h: Likewise.
40943         * lib/unistd-safer.h: Likewise.
40944         * lib/unistdio/ulc-fprintf.c: Likewise.
40945         * lib/unistdio/ulc-vfprintf.c: Likewise.
40946         * lib/unlinkdir.c: Likewise.
40947         * lib/unlinkdir.h: Likewise.
40948         * lib/unlocked-io.h: Likewise.
40949         * lib/unsetenv.c: Likewise.
40950         * lib/userspec.c: Likewise.
40951         * lib/utime.c: Likewise.
40952         * lib/utimecmp.c: Likewise.
40953         * lib/utimecmp.h: Likewise.
40954         * lib/utimens.c: Likewise.
40955         * lib/verify.h: Likewise.
40956         * lib/verror.c: Likewise.
40957         * lib/verror.h: Likewise.
40958         * lib/version-etc-fsf.c: Likewise.
40959         * lib/version-etc.c: Likewise.
40960         * lib/version-etc.h: Likewise.
40961         * lib/vfprintf.c: Likewise.
40962         * lib/vprintf.c: Likewise.
40963         * lib/vsprintf.c: Likewise.
40964         * lib/w32spawn.h: Likewise.
40965         * lib/wait-process.c: Likewise.
40966         * lib/wait-process.h: Likewise.
40967         * lib/wcwidth.c: Likewise.
40968         * lib/write-any-file.c: Likewise.
40969         * lib/xalloc-die.c: Likewise.
40970         * lib/xalloc.h: Likewise.
40971         * lib/xasprintf.c: Likewise.
40972         * lib/xgetcwd.c: Likewise.
40973         * lib/xgetcwd.h: Likewise.
40974         * lib/xgetdomainname.c: Likewise.
40975         * lib/xgetdomainname.h: Likewise.
40976         * lib/xgethostname.c: Likewise.
40977         * lib/xmalloc.c: Likewise.
40978         * lib/xmalloca.c: Likewise.
40979         * lib/xmalloca.h: Likewise.
40980         * lib/xmemcoll.c: Likewise.
40981         * lib/xnanosleep.c: Likewise.
40982         * lib/xreadlink.c: Likewise.
40983         * lib/xreadlink.h: Likewise.
40984         * lib/xsetenv.c: Likewise.
40985         * lib/xsetenv.h: Likewise.
40986         * lib/xstriconv.c: Likewise.
40987         * lib/xstriconv.h: Likewise.
40988         * lib/xstrndup.c: Likewise.
40989         * lib/xstrndup.h: Likewise.
40990         * lib/xstrtod.c: Likewise.
40991         * lib/xstrtod.h: Likewise.
40992         * lib/xstrtol-error.c: Likewise.
40993         * lib/xstrtol.c: Likewise.
40994         * lib/xstrtol.h: Likewise.
40995         * lib/xtime.h: Likewise.
40996         * lib/xvasprintf.c: Likewise.
40997         * lib/xvasprintf.h: Likewise.
40998         * lib/yesno.c: Likewise.
40999         * lib/yesno.h: Likewise.
41000         * posix-modules: Likewise.
41001         * tests/test-alloca-opt.c: Likewise.
41002         * tests/test-arcfour.c: Likewise.
41003         * tests/test-arctwo.c: Likewise.
41004         * tests/test-argmatch.c: Likewise.
41005         * tests/test-argp-2.sh: Likewise.
41006         * tests/test-argp.c: Likewise.
41007         * tests/test-arpa_inet.c: Likewise.
41008         * tests/test-array_list.c: Likewise.
41009         * tests/test-array_oset.c: Likewise.
41010         * tests/test-atexit.c: Likewise.
41011         * tests/test-avltree_list.c: Likewise.
41012         * tests/test-avltree_oset.c: Likewise.
41013         * tests/test-avltreehash_list.c: Likewise.
41014         * tests/test-base64.c: Likewise.
41015         * tests/test-binary-io.c: Likewise.
41016         * tests/test-byteswap.c: Likewise.
41017         * tests/test-c-ctype.c: Likewise.
41018         * tests/test-c-strcasecmp.c: Likewise.
41019         * tests/test-c-strcasestr.c: Likewise.
41020         * tests/test-c-strncasecmp.c: Likewise.
41021         * tests/test-c-strstr.c: Likewise.
41022         * tests/test-canonicalize-lgpl.c: Likewise.
41023         * tests/test-canonicalize.c: Likewise.
41024         * tests/test-carray_list.c: Likewise.
41025         * tests/test-ceilf.c: Likewise.
41026         * tests/test-ceill.c: Likewise.
41027         * tests/test-count-one-bits.c: Likewise.
41028         * tests/test-crc.c: Likewise.
41029         * tests/test-dirname.c: Likewise.
41030         * tests/test-fbufmode.c: Likewise.
41031         * tests/test-fcntl.c: Likewise.
41032         * tests/test-fflush.c: Likewise.
41033         * tests/test-floorf.c: Likewise.
41034         * tests/test-floorl.c: Likewise.
41035         * tests/test-fopen.c: Likewise.
41036         * tests/test-fprintf-posix.c: Likewise.
41037         * tests/test-fprintf-posix.h: Likewise.
41038         * tests/test-fpurge.c: Likewise.
41039         * tests/test-freadable.c: Likewise.
41040         * tests/test-freadahead.c: Likewise.
41041         * tests/test-freading.c: Likewise.
41042         * tests/test-freopen.c: Likewise.
41043         * tests/test-frexp.c: Likewise.
41044         * tests/test-frexpl.c: Likewise.
41045         * tests/test-fseek.c: Likewise.
41046         * tests/test-fseeko.c: Likewise.
41047         * tests/test-fseterr.c: Likewise.
41048         * tests/test-fstrcmp.c: Likewise.
41049         * tests/test-ftell.c: Likewise.
41050         * tests/test-ftello.c: Likewise.
41051         * tests/test-fwritable.c: Likewise.
41052         * tests/test-fwriting.c: Likewise.
41053         * tests/test-getaddrinfo.c: Likewise.
41054         * tests/test-getpass.c: Likewise.
41055         * tests/test-gettimeofday.c: Likewise.
41056         * tests/test-hmac-md5.c: Likewise.
41057         * tests/test-hmac-sha1.c: Likewise.
41058         * tests/test-iconv.c: Likewise.
41059         * tests/test-iconvme.c: Likewise.
41060         * tests/test-inttypes.c: Likewise.
41061         * tests/test-isnan.c: Likewise.
41062         * tests/test-isnanf.c: Likewise.
41063         * tests/test-isnanl-nolibm.c: Likewise.
41064         * tests/test-isnanl.c: Likewise.
41065         * tests/test-isnanl.h: Likewise.
41066         * tests/test-ldexpl.c: Likewise.
41067         * tests/test-linked_list.c: Likewise.
41068         * tests/test-linkedhash_list.c: Likewise.
41069         * tests/test-locale.c: Likewise.
41070         * tests/test-localename.c: Likewise.
41071         * tests/test-lock.c: Likewise.
41072         * tests/test-lseek.c: Likewise.
41073         * tests/test-malloca.c: Likewise.
41074         * tests/test-math.c: Likewise.
41075         * tests/test-mbscasecmp.c: Likewise.
41076         * tests/test-mbscasestr1.c: Likewise.
41077         * tests/test-mbscasestr2.c: Likewise.
41078         * tests/test-mbscasestr3.c: Likewise.
41079         * tests/test-mbscasestr4.c: Likewise.
41080         * tests/test-mbschr.c: Likewise.
41081         * tests/test-mbscspn.c: Likewise.
41082         * tests/test-mbsncasecmp.c: Likewise.
41083         * tests/test-mbspbrk.c: Likewise.
41084         * tests/test-mbspcasecmp.c: Likewise.
41085         * tests/test-mbsrchr.c: Likewise.
41086         * tests/test-mbsspn.c: Likewise.
41087         * tests/test-mbsstr1.c: Likewise.
41088         * tests/test-mbsstr2.c: Likewise.
41089         * tests/test-mbsstr3.c: Likewise.
41090         * tests/test-md5.c: Likewise.
41091         * tests/test-memmem.c: Likewise.
41092         * tests/test-netinet_in.c: Likewise.
41093         * tests/test-open.c: Likewise.
41094         * tests/test-printf-frexp.c: Likewise.
41095         * tests/test-printf-frexpl.c: Likewise.
41096         * tests/test-printf-posix.c: Likewise.
41097         * tests/test-printf-posix.h: Likewise.
41098         * tests/test-rbtree_list.c: Likewise.
41099         * tests/test-rbtree_oset.c: Likewise.
41100         * tests/test-rbtreehash_list.c: Likewise.
41101         * tests/test-read-file.c: Likewise.
41102         * tests/test-rijndael.c: Likewise.
41103         * tests/test-search.c: Likewise.
41104         * tests/test-signbit.c: Likewise.
41105         * tests/test-sleep.c: Likewise.
41106         * tests/test-snprintf-posix.c: Likewise.
41107         * tests/test-snprintf-posix.h: Likewise.
41108         * tests/test-snprintf.c: Likewise.
41109         * tests/test-sprintf-posix.c: Likewise.
41110         * tests/test-sprintf-posix.h: Likewise.
41111         * tests/test-stat-time.c: Likewise.
41112         * tests/test-stdbool.c: Likewise.
41113         * tests/test-stdint.c: Likewise.
41114         * tests/test-stdio.c: Likewise.
41115         * tests/test-stdlib.c: Likewise.
41116         * tests/test-stpncpy.c: Likewise.
41117         * tests/test-strcasestr.c: Likewise.
41118         * tests/test-striconv.c: Likewise.
41119         * tests/test-striconveh.c: Likewise.
41120         * tests/test-striconveha.c: Likewise.
41121         * tests/test-string.c: Likewise.
41122         * tests/test-sys_select.c: Likewise.
41123         * tests/test-sys_socket.c: Likewise.
41124         * tests/test-sys_stat.c: Likewise.
41125         * tests/test-sys_time.c: Likewise.
41126         * tests/test-sysexits.c: Likewise.
41127         * tests/test-time.c: Likewise.
41128         * tests/test-tls.c: Likewise.
41129         * tests/test-trunc.c: Likewise.
41130         * tests/test-truncf.c: Likewise.
41131         * tests/test-truncl.c: Likewise.
41132         * tests/test-unistd.c: Likewise.
41133         * tests/test-vasnprintf-posix.c: Likewise.
41134         * tests/test-vasnprintf-posix2.c: Likewise.
41135         * tests/test-vasnprintf.c: Likewise.
41136         * tests/test-vasprintf-posix.c: Likewise.
41137         * tests/test-vasprintf.c: Likewise.
41138         * tests/test-verify.c: Likewise.
41139         * tests/test-vfprintf-posix.c: Likewise.
41140         * tests/test-vprintf-posix.c: Likewise.
41141         * tests/test-vsnprintf-posix.c: Likewise.
41142         * tests/test-vsnprintf.c: Likewise.
41143         * tests/test-vsprintf-posix.c: Likewise.
41144         * tests/test-wchar.c: Likewise.
41145         * tests/test-wctype.c: Likewise.
41146         * tests/test-wcwidth.c: Likewise.
41147         * tests/test-xstrtol.c: Likewise.
41148         * tests/test-xvasprintf.c: Likewise.
41149         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41150         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41151         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41152         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41153         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41154         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41155         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41156         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41157         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41158         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41159         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41160         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41161         * tests/uniname/test-uninames.c: Likewise.
41162         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41163         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
41164         * tests/unistdio/test-u16-printf1.h: Likewise.
41165         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41166         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41167         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41168         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41169         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41170         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41171         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41172         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
41173         * tests/unistdio/test-u32-printf1.h: Likewise.
41174         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41175         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41176         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41177         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41178         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41179         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41180         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41181         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
41182         * tests/unistdio/test-u8-printf1.h: Likewise.
41183         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41184         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41185         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41186         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41187         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41188         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41189         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41190         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
41191         * tests/unistdio/test-ulc-printf1.h: Likewise.
41192         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41193         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41194         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41195         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41196         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41197         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41198         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41199         * tests/uniwidth/test-u16-width.c: Likewise.
41200         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41201         * tests/uniwidth/test-u32-width.c: Likewise.
41202         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41203         * tests/uniwidth/test-u8-width.c: Likewise.
41204         * tests/uniwidth/test-uc_width.c: Likewise.
41205         * config/srclist-update: Likewise.
41206         (fixlicense): Update to GPLv3+.
41207
41208         Change copyright notice from LGPLv2.1+ to LGPLv3+.
41209         * tests/test-tsearch.c: Change copyright notice.
41210
41211         Change copyright notice from LGPLv2.0+ to LGPLv3+.
41212         * lib/c-strcaseeq.h: Change copyright notice.
41213         * lib/streq.h: Likewise.
41214         * lib/uniconv.h: Likewise.
41215         * lib/uniconv/u-conv-from-enc.h: Likewise.
41216         * lib/uniconv/u-conv-to-enc.h: Likewise.
41217         * lib/uniconv/u-strconv-from-enc.h: Likewise.
41218         * lib/uniconv/u-strconv-to-enc.h: Likewise.
41219         * lib/uniconv/u16-conv-from-enc.c: Likewise.
41220         * lib/uniconv/u16-conv-to-enc.c: Likewise.
41221         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
41222         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
41223         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
41224         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
41225         * lib/uniconv/u32-conv-from-enc.c: Likewise.
41226         * lib/uniconv/u32-conv-to-enc.c: Likewise.
41227         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
41228         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
41229         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
41230         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
41231         * lib/uniconv/u8-conv-from-enc.c: Likewise.
41232         * lib/uniconv/u8-conv-to-enc.c: Likewise.
41233         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
41234         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
41235         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
41236         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
41237         * lib/uniname.h: Likewise.
41238         * lib/uniname/uniname.c: Likewise.
41239         * lib/unistdio.h: Likewise.
41240         * lib/unistdio/u-asnprintf.h: Likewise.
41241         * lib/unistdio/u-asprintf.h: Likewise.
41242         * lib/unistdio/u-printf-args.c: Likewise.
41243         * lib/unistdio/u-printf-args.h: Likewise.
41244         * lib/unistdio/u-printf-parse.h: Likewise.
41245         * lib/unistdio/u-snprintf.h: Likewise.
41246         * lib/unistdio/u-sprintf.h: Likewise.
41247         * lib/unistdio/u-vasprintf.h: Likewise.
41248         * lib/unistdio/u-vsnprintf.h: Likewise.
41249         * lib/unistdio/u-vsprintf.h: Likewise.
41250         * lib/unistdio/u16-asnprintf.c: Likewise.
41251         * lib/unistdio/u16-asprintf.c: Likewise.
41252         * lib/unistdio/u16-printf-parse.c: Likewise.
41253         * lib/unistdio/u16-snprintf.c: Likewise.
41254         * lib/unistdio/u16-sprintf.c: Likewise.
41255         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41256         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41257         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41258         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41259         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41260         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41261         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41262         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41263         * lib/unistdio/u16-vasnprintf.c: Likewise.
41264         * lib/unistdio/u16-vasprintf.c: Likewise.
41265         * lib/unistdio/u16-vsnprintf.c: Likewise.
41266         * lib/unistdio/u16-vsprintf.c: Likewise.
41267         * lib/unistdio/u32-asnprintf.c: Likewise.
41268         * lib/unistdio/u32-asprintf.c: Likewise.
41269         * lib/unistdio/u32-printf-parse.c: Likewise.
41270         * lib/unistdio/u32-snprintf.c: Likewise.
41271         * lib/unistdio/u32-sprintf.c: Likewise.
41272         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41273         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41274         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41275         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41276         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41277         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41278         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41279         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41280         * lib/unistdio/u32-vasnprintf.c: Likewise.
41281         * lib/unistdio/u32-vasprintf.c: Likewise.
41282         * lib/unistdio/u32-vsnprintf.c: Likewise.
41283         * lib/unistdio/u32-vsprintf.c: Likewise.
41284         * lib/unistdio/u8-asnprintf.c: Likewise.
41285         * lib/unistdio/u8-asprintf.c: Likewise.
41286         * lib/unistdio/u8-printf-parse.c: Likewise.
41287         * lib/unistdio/u8-snprintf.c: Likewise.
41288         * lib/unistdio/u8-sprintf.c: Likewise.
41289         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41290         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41291         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41292         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41293         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41294         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41295         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41296         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41297         * lib/unistdio/u8-vasnprintf.c: Likewise.
41298         * lib/unistdio/u8-vasprintf.c: Likewise.
41299         * lib/unistdio/u8-vsnprintf.c: Likewise.
41300         * lib/unistdio/u8-vsprintf.c: Likewise.
41301         * lib/unistdio/ulc-asnprintf.c: Likewise.
41302         * lib/unistdio/ulc-asprintf.c: Likewise.
41303         * lib/unistdio/ulc-printf-parse.c: Likewise.
41304         * lib/unistdio/ulc-snprintf.c: Likewise.
41305         * lib/unistdio/ulc-sprintf.c: Likewise.
41306         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41307         * lib/unistdio/ulc-vasprintf.c: Likewise.
41308         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41309         * lib/unistdio/ulc-vsprintf.c: Likewise.
41310         * lib/unistr.h: Likewise.
41311         * lib/unistr/u-cpy-alloc.h: Likewise.
41312         * lib/unistr/u-cpy.h: Likewise.
41313         * lib/unistr/u-endswith.h: Likewise.
41314         * lib/unistr/u-move.h: Likewise.
41315         * lib/unistr/u-set.h: Likewise.
41316         * lib/unistr/u-startswith.h: Likewise.
41317         * lib/unistr/u-stpcpy.h: Likewise.
41318         * lib/unistr/u-stpncpy.h: Likewise.
41319         * lib/unistr/u-strcat.h: Likewise.
41320         * lib/unistr/u-strcpy.h: Likewise.
41321         * lib/unistr/u-strcspn.h: Likewise.
41322         * lib/unistr/u-strdup.h: Likewise.
41323         * lib/unistr/u-strlen.h: Likewise.
41324         * lib/unistr/u-strncat.h: Likewise.
41325         * lib/unistr/u-strncpy.h: Likewise.
41326         * lib/unistr/u-strnlen.h: Likewise.
41327         * lib/unistr/u-strpbrk.h: Likewise.
41328         * lib/unistr/u-strspn.h: Likewise.
41329         * lib/unistr/u-strstr.h: Likewise.
41330         * lib/unistr/u-strtok.h: Likewise.
41331         * lib/unistr/u16-check.c: Likewise.
41332         * lib/unistr/u16-chr.c: Likewise.
41333         * lib/unistr/u16-cmp.c: Likewise.
41334         * lib/unistr/u16-cpy-alloc.c: Likewise.
41335         * lib/unistr/u16-cpy.c: Likewise.
41336         * lib/unistr/u16-endswith.c: Likewise.
41337         * lib/unistr/u16-mblen.c: Likewise.
41338         * lib/unistr/u16-mbsnlen.c: Likewise.
41339         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41340         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41341         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41342         * lib/unistr/u16-mbtouc.c: Likewise.
41343         * lib/unistr/u16-mbtoucr.c: Likewise.
41344         * lib/unistr/u16-move.c: Likewise.
41345         * lib/unistr/u16-next.c: Likewise.
41346         * lib/unistr/u16-prev.c: Likewise.
41347         * lib/unistr/u16-set.c: Likewise.
41348         * lib/unistr/u16-startswith.c: Likewise.
41349         * lib/unistr/u16-stpcpy.c: Likewise.
41350         * lib/unistr/u16-stpncpy.c: Likewise.
41351         * lib/unistr/u16-strcat.c: Likewise.
41352         * lib/unistr/u16-strchr.c: Likewise.
41353         * lib/unistr/u16-strcmp.c: Likewise.
41354         * lib/unistr/u16-strcpy.c: Likewise.
41355         * lib/unistr/u16-strcspn.c: Likewise.
41356         * lib/unistr/u16-strdup.c: Likewise.
41357         * lib/unistr/u16-strlen.c: Likewise.
41358         * lib/unistr/u16-strmblen.c: Likewise.
41359         * lib/unistr/u16-strmbtouc.c: Likewise.
41360         * lib/unistr/u16-strncat.c: Likewise.
41361         * lib/unistr/u16-strncmp.c: Likewise.
41362         * lib/unistr/u16-strncpy.c: Likewise.
41363         * lib/unistr/u16-strnlen.c: Likewise.
41364         * lib/unistr/u16-strpbrk.c: Likewise.
41365         * lib/unistr/u16-strrchr.c: Likewise.
41366         * lib/unistr/u16-strspn.c: Likewise.
41367         * lib/unistr/u16-strstr.c: Likewise.
41368         * lib/unistr/u16-strtok.c: Likewise.
41369         * lib/unistr/u16-to-u32.c: Likewise.
41370         * lib/unistr/u16-to-u8.c: Likewise.
41371         * lib/unistr/u16-uctomb-aux.c: Likewise.
41372         * lib/unistr/u16-uctomb.c: Likewise.
41373         * lib/unistr/u32-check.c: Likewise.
41374         * lib/unistr/u32-chr.c: Likewise.
41375         * lib/unistr/u32-cmp.c: Likewise.
41376         * lib/unistr/u32-cpy-alloc.c: Likewise.
41377         * lib/unistr/u32-cpy.c: Likewise.
41378         * lib/unistr/u32-endswith.c: Likewise.
41379         * lib/unistr/u32-mblen.c: Likewise.
41380         * lib/unistr/u32-mbsnlen.c: Likewise.
41381         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41382         * lib/unistr/u32-mbtouc.c: Likewise.
41383         * lib/unistr/u32-mbtoucr.c: Likewise.
41384         * lib/unistr/u32-move.c: Likewise.
41385         * lib/unistr/u32-next.c: Likewise.
41386         * lib/unistr/u32-prev.c: Likewise.
41387         * lib/unistr/u32-set.c: Likewise.
41388         * lib/unistr/u32-startswith.c: Likewise.
41389         * lib/unistr/u32-stpcpy.c: Likewise.
41390         * lib/unistr/u32-stpncpy.c: Likewise.
41391         * lib/unistr/u32-strcat.c: Likewise.
41392         * lib/unistr/u32-strchr.c: Likewise.
41393         * lib/unistr/u32-strcmp.c: Likewise.
41394         * lib/unistr/u32-strcpy.c: Likewise.
41395         * lib/unistr/u32-strcspn.c: Likewise.
41396         * lib/unistr/u32-strdup.c: Likewise.
41397         * lib/unistr/u32-strlen.c: Likewise.
41398         * lib/unistr/u32-strmblen.c: Likewise.
41399         * lib/unistr/u32-strmbtouc.c: Likewise.
41400         * lib/unistr/u32-strncat.c: Likewise.
41401         * lib/unistr/u32-strncmp.c: Likewise.
41402         * lib/unistr/u32-strncpy.c: Likewise.
41403         * lib/unistr/u32-strnlen.c: Likewise.
41404         * lib/unistr/u32-strpbrk.c: Likewise.
41405         * lib/unistr/u32-strrchr.c: Likewise.
41406         * lib/unistr/u32-strspn.c: Likewise.
41407         * lib/unistr/u32-strstr.c: Likewise.
41408         * lib/unistr/u32-strtok.c: Likewise.
41409         * lib/unistr/u32-to-u16.c: Likewise.
41410         * lib/unistr/u32-to-u8.c: Likewise.
41411         * lib/unistr/u32-uctomb.c: Likewise.
41412         * lib/unistr/u8-check.c: Likewise.
41413         * lib/unistr/u8-chr.c: Likewise.
41414         * lib/unistr/u8-cmp.c: Likewise.
41415         * lib/unistr/u8-cpy-alloc.c: Likewise.
41416         * lib/unistr/u8-cpy.c: Likewise.
41417         * lib/unistr/u8-endswith.c: Likewise.
41418         * lib/unistr/u8-mblen.c: Likewise.
41419         * lib/unistr/u8-mbsnlen.c: Likewise.
41420         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41421         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41422         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41423         * lib/unistr/u8-mbtouc.c: Likewise.
41424         * lib/unistr/u8-mbtoucr.c: Likewise.
41425         * lib/unistr/u8-move.c: Likewise.
41426         * lib/unistr/u8-next.c: Likewise.
41427         * lib/unistr/u8-prev.c: Likewise.
41428         * lib/unistr/u8-set.c: Likewise.
41429         * lib/unistr/u8-startswith.c: Likewise.
41430         * lib/unistr/u8-stpcpy.c: Likewise.
41431         * lib/unistr/u8-stpncpy.c: Likewise.
41432         * lib/unistr/u8-strcat.c: Likewise.
41433         * lib/unistr/u8-strchr.c: Likewise.
41434         * lib/unistr/u8-strcmp.c: Likewise.
41435         * lib/unistr/u8-strcpy.c: Likewise.
41436         * lib/unistr/u8-strcspn.c: Likewise.
41437         * lib/unistr/u8-strdup.c: Likewise.
41438         * lib/unistr/u8-strlen.c: Likewise.
41439         * lib/unistr/u8-strmblen.c: Likewise.
41440         * lib/unistr/u8-strmbtouc.c: Likewise.
41441         * lib/unistr/u8-strncat.c: Likewise.
41442         * lib/unistr/u8-strncmp.c: Likewise.
41443         * lib/unistr/u8-strncpy.c: Likewise.
41444         * lib/unistr/u8-strnlen.c: Likewise.
41445         * lib/unistr/u8-strpbrk.c: Likewise.
41446         * lib/unistr/u8-strrchr.c: Likewise.
41447         * lib/unistr/u8-strspn.c: Likewise.
41448         * lib/unistr/u8-strstr.c: Likewise.
41449         * lib/unistr/u8-strtok.c: Likewise.
41450         * lib/unistr/u8-to-u16.c: Likewise.
41451         * lib/unistr/u8-to-u32.c: Likewise.
41452         * lib/unistr/u8-uctomb-aux.c: Likewise.
41453         * lib/unistr/u8-uctomb.c: Likewise.
41454         * lib/unitypes.h: Likewise.
41455         * lib/uniwidth.h: Likewise.
41456         * lib/uniwidth/cjk.h: Likewise.
41457         * lib/uniwidth/u16-strwidth.c: Likewise.
41458         * lib/uniwidth/u16-width.c: Likewise.
41459         * lib/uniwidth/u32-strwidth.c: Likewise.
41460         * lib/uniwidth/u32-width.c: Likewise.
41461         * lib/uniwidth/u8-strwidth.c: Likewise.
41462         * lib/uniwidth/u8-width.c: Likewise.
41463         * lib/uniwidth/width.c: Likewise.
41464
41465 2007-10-07  Bruno Haible  <bruno@clisp.org>
41466
41467         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41468         The file is still under LGPL (see modules/inttypes).
41469
41470 2007-10-06  Bruno Haible  <bruno@clisp.org>
41471
41472         * modules/trunc (Dependencies): Add 'extensions'.
41473         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41474         Reported by Ben Pfaff <blp@gnu.org>.
41475
41476 2007-10-06  Bruno Haible  <bruno@clisp.org>
41477
41478         * modules/freopen-tests: New file.
41479         * tests/test-freopen.c: New file.
41480
41481         * modules/fopen-tests: New file.
41482         * tests/test-fopen.c: New file.
41483
41484         * modules/fopen: New file.
41485         * lib/fopen.c: New file.
41486         * m4/fopen.m4: New file.
41487         * modules/freopen: New file.
41488         * lib/freopen.c: New file.
41489         * m4/freopen.m4: New file.
41490         * lib/stdio.in.h (fopen, freopen): New declarations.
41491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41492         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41493         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41494         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41495         * doc/functions/fopen.texi: Mention the 'fopen' module.
41496         * doc/functions/freopen.texi: Mention the 'freopen' module.
41497
41498 2007-10-06  Bruno Haible  <bruno@clisp.org>
41499
41500         * modules/open-tests: New file.
41501         * tests/test-open.c: New file.
41502
41503         * modules/open: New file.
41504         * lib/open.c: New file.
41505         * m4/open.m4: New file.
41506         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41507         lib/open.c does.
41508         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41509         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41510         macros.
41511         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41512         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41513         REPLACE_OPEN.
41514         * doc/functions/open.texi: Mention the 'open' module.
41515
41516 2007-10-04  Bruno Haible  <bruno@clisp.org>
41517
41518         * modules/ceill-tests: New file.
41519         * tests/test-ceill.c: New file.
41520
41521         * modules/ceill: New file.
41522         * lib/ceill.c: Replace entire file.
41523         * m4/ceill.m4: New file.
41524         * lib/math.in.h (ceill): Replace declaration.
41525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41526         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41527         * doc/functions/ceill.texi: Mention the 'ceill' module.
41528         * modules/mathl (Files): Remove lib/ceill.c.
41529         (Depends-on): Add ceill.
41530
41531 2007-10-04  Bruno Haible  <bruno@clisp.org>
41532
41533         * modules/ceilf-tests: New file.
41534         * tests/test-ceilf.c: New file.
41535
41536         * modules/ceilf: New file.
41537         * lib/ceil.c: New file.
41538         * lib/ceilf.c: New file.
41539         * m4/ceilf.m4: New file.
41540         * lib/math.in.h (ceilf): New declaration.
41541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41542         HAVE_DECL_CEILF.
41543         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41544         HAVE_DECL_CEILF.
41545         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41546
41547 2007-10-04  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/floorl-tests: New file.
41550         * tests/test-floorl.c: New file.
41551
41552         * modules/floorl: New file.
41553         * lib/floorl.c: Replace entire file.
41554         * m4/floorl.m4: New file.
41555         * lib/math.in.h (floorl): Replace declaration.
41556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41557         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41558         * doc/functions/floorl.texi: Mention the 'floorl' module.
41559         * modules/mathl (Files): Remove lib/floorl.c.
41560         (Depends-on): Add floorl.
41561
41562 2007-10-04  Bruno Haible  <bruno@clisp.org>
41563
41564         * modules/floorf-tests: New file.
41565         * tests/test-floorf.c: New file.
41566
41567         * modules/floorf: New file.
41568         * lib/floor.c: New file.
41569         * lib/floorf.c: New file.
41570         * m4/floorf.m4: New file.
41571         * lib/math.in.h (floorf): New declaration.
41572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41573         HAVE_DECL_FLOORF.
41574         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41575         HAVE_DECL_FLOORF.
41576         * doc/functions/floorf.texi: Mention the 'floorf' module.
41577
41578 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41579             Bruno Haible  <bruno@clisp.org>
41580
41581         Advertise for the Git server instead of the CVS server.
41582         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41583         repository instead of the CVS one.
41584         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41585         about all VCS systems generically.
41586         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41587
41588 2007-10-04  Bruno Haible  <bruno@clisp.org>
41589
41590         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41591         means.
41592         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41593
41594 2007-10-04  Bruno Haible  <bruno@clisp.org>
41595
41596         * modules/truncl-tests: New file.
41597         * tests/test-truncl.c: New file.
41598
41599         * modules/truncl: New file.
41600         * lib/truncl.c: New file.
41601         * m4/truncl.m4: New file.
41602         * lib/math.in.h (truncl): New declaration.
41603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41604         HAVE_DECL_TRUNCL.
41605         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41606         HAVE_DECL_TRUNCL.
41607         * doc/functions/truncl.texi: Mention the 'truncl' module.
41608
41609 2007-10-04  Bruno Haible  <bruno@clisp.org>
41610
41611         * modules/truncf-tests: New file.
41612         * tests/test-truncf.c: New file.
41613
41614         * modules/truncf: New file.
41615         * lib/trunc.c: Make paramerizable through USE_* macros.
41616         * lib/truncf.c: New file.
41617         * m4/truncf.m4: New file.
41618         * lib/math.in.h (truncf): New declaration.
41619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41620         HAVE_DECL_TRUNCF.
41621         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41622         HAVE_DECL_TRUNCF.
41623         * doc/functions/truncf.texi: Mention the 'truncf' module.
41624
41625 2007-10-03  Bruno Haible  <bruno@clisp.org>
41626
41627         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41628         augmentation also for tests modules.
41629         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41630         * modules/atexit-tests (Makefile.am): Likewise.
41631         * modules/binary-io-tests (Makefile.am): Likewise.
41632         * modules/c-strcase-tests (Makefile.am): Likewise.
41633         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41634         * modules/canonicalize-tests (Makefile.am): Likewise.
41635         * modules/closein-tests (Makefile.am): Likewise.
41636         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41637         * modules/freadahead-tests (Makefile.am): Likewise.
41638         * modules/fseek-tests (Makefile.am): Likewise.
41639         * modules/fseeko-tests (Makefile.am): Likewise.
41640         * modules/ftell-tests (Makefile.am): Likewise.
41641         * modules/ftello-tests (Makefile.am): Likewise.
41642         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41643         * modules/isnanl-tests (Makefile.am): Likewise.
41644         * modules/lseek-tests (Makefile.am): Likewise.
41645         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41646         * modules/mbscasestr-tests (Makefile.am): Likewise.
41647         * modules/mbschr-tests (Makefile.am): Likewise.
41648         * modules/mbscspn-tests (Makefile.am): Likewise.
41649         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41650         * modules/mbspbrk-tests (Makefile.am): Likewise.
41651         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41652         * modules/mbsrchr-tests (Makefile.am): Likewise.
41653         * modules/mbsspn-tests (Makefile.am): Likewise.
41654         * modules/mbsstr-tests (Makefile.am): Likewise.
41655         * modules/printf-posix-tests (Makefile.am): Likewise.
41656         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41657         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41658         * modules/tsearch-tests (Makefile.am): Likewise.
41659         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41660         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41661         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41662         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41663         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41664         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41665         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41666         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41667         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41668         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41669         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41670         * modules/xstrtol-tests (Makefile.am): Likewise.
41671         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41672         * modules/yesno-tests (Makefile.am): Likewise.
41673
41674 2007-10-03  Bruno Haible  <bruno@clisp.org>
41675
41676         * modules/trunc-tests: New file.
41677         * tests/test-trunc.c: New file.
41678
41679         * modules/trunc: New file.
41680         * lib/trunc.c: New file.
41681         * m4/trunc.m4: New file.
41682         * lib/math.in.h (trunc): New declaration.
41683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41684         HAVE_DECL_TRUNC.
41685         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41686         HAVE_DECL_TRUNC.
41687         * doc/functions/trunc.texi: Mention the 'trunc' module.
41688
41689 2007-10-03  Bruno Haible  <bruno@clisp.org>
41690
41691         * tests/test-fpending.c: New file, mostly copied
41692         from coreutils/lib/t-fpending.c.
41693         * modules/fpending-tests: New file.
41694
41695 2007-10-03  Bruno Haible  <bruno@clisp.org>
41696
41697         Port the stdio extensions to QNX (untested).
41698         * lib/fseterr.c (fseterr): Add support for QNX.
41699         * lib/fbufmode.c (fbufmode): Likewise.
41700         * lib/freadable.c (freadable): Likewise.
41701         * lib/fwritable.c (fwritable): Likewise.
41702         * lib/freading.c (freading): Likewise.
41703         * lib/fwriting.c (fwriting): Likewise.
41704         * lib/freadahead.c (freadahed): Likewise.
41705         * lib/fpurge.c (fpurge): Likewise.
41706         * lib/fseeko.c (rpl_fseeko): Likewise.
41707
41708 2007-10-03  Bruno Haible  <bruno@clisp.org>
41709             Jim Meyering  <jim@meyering.net>
41710             Eric Blake  <ebb9@byu.net>
41711
41712         * doc/relocatable.texi: Use @command instead of @program.
41713
41714 2007-10-02  Jim Meyering  <jim@meyering.net>
41715
41716         Perform one more "_.h" -> ".in.h" substitution.
41717         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41718         instead of unistd_.h here, too.
41719
41720 2007-10-01  Bruno Haible  <bruno@clisp.org>
41721
41722         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41723         Needed for the alloca-opt module.
41724
41725 2007-09-30  Bruno Haible  <bruno@clisp.org>
41726
41727         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41728         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41729         alloca_.h.
41730         * lib/argz.in.h: Renamed from lib/argz_.h.
41731         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41732         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41733         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41734         byteswap_.h.
41735         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41736         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41737         dirent_.h.
41738         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41739         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41740         fcntl_.h.
41741         * lib/float.in.h: Renamed from lib/float_.h.
41742         * modules/float (Files, Makefile.am): Use float.in.h instead of
41743         float_.h.
41744         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41745         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41746         fnmatch_.h.
41747         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41748         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41749         getopt_.h.
41750         * lib/glob.in.h: Renamed from lib/glob_.h.
41751         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41752         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41753         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41754         iconv_.h.
41755         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41756         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41757         inttypes_.h.
41758         * lib/locale.in.h: Renamed from lib/locale_.h.
41759         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41760         locale_.h.
41761         * lib/math.in.h: Renamed from lib/math_.h.
41762         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41763         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41764         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41765         of netinet_in_.h. Add dependency.
41766         * lib/poll.in.h: Renamed from lib/poll_.h.
41767         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41768         * lib/search.in.h: Renamed from lib/search_.h.
41769         * modules/search (Files, Makefile.am): Use search.in.h instead of
41770         search_.h.
41771         * lib/signal.in.h: Renamed from lib/signal_.h.
41772         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41773         _signal.h.
41774         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41775         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41776         stdbool_.h.
41777         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41778         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41779         stdint_.h.
41780         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41781         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41782         stdio_.h.
41783         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41784         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41785         stdlib_.h.
41786         * lib/string.in.h: Renamed from lib/string_.h.
41787         * modules/string (Files, Makefile.am): Use string.in.h instead of
41788         string_.h.
41789         * doc/gnulib-tool.texi (Initial import): Update.
41790         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41791         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41792         of sys_select_.h. Add dependency.
41793         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41794         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41795         of sys_socket_.h.
41796         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41797         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41798         sys_stat_.h.
41799         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41800         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41801         sys_time_.h.
41802         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41803         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41804         sysexits_.h.
41805         * lib/time.in.h: Renamed from lib/time_.h.
41806         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41807         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41808         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41809         unistd_.h.
41810         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41811         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41812         wchar_.h.
41813         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41814         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41815         wctype_.h.
41816         * build-aux/bootstrap (slurp): Update.
41817         * lib/.cppi-disable: Update.
41818
41819 2007-09-30  Bruno Haible  <bruno@clisp.org>
41820
41821         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41822         Needed on BeOS.
41823
41824 2007-09-30  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41827
41828 2007-09-29  Bruno Haible  <bruno@clisp.org>
41829
41830         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41831
41832 2007-09-29  Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41835         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41836         * build-aux/install-reloc: Compile also areadlink.c.
41837         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41838
41839 2007-09-29  Bruno Haible  <bruno@clisp.org>
41840
41841         * gnulib-tool (func_emit_initmacro_done): Indentation.
41842
41843 2007-09-29  Bruno Haible  <bruno@clisp.org>
41844
41845         * README: Add CVS checkout update instructions.
41846         Info from Bob Proulx <bob@proulx.com>.
41847
41848 2007-09-28  Eric Blake  <ebb9@byu.net>
41849
41850         Provide move-if-change.
41851         * build-aux/move-if-change: New file, based on best practice
41852         rather than any canonical upstream location.
41853
41854 2007-09-28  Jim Meyering  <jim@meyering.net>
41855
41856         Fix canonicalize loop-detection corner case.
41857         Do not attempt to stat the symlink values stored via seen_triple.
41858         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41859         on linux-2.6.18, (but not 2.6.22).
41860         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41861         triple_compare.  The former compares dev,ino,filename, while the latter
41862         would actually stat dirname(filename) when dev and ino were equal.
41863         * lib/hash-triple.c: Install <string.h>.
41864         (STREQ): Define.
41865         (triple_compare_ino_str): New function.
41866         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41867
41868 2007-09-28  Eric Blake  <ebb9@byu.net>
41869
41870         Enforce that AC_REPLACE_FUNCS files exist.
41871         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41872         override check for typos.
41873
41874         Fix test-closein on Solaris 10.
41875         * tests/test-closein.c (main): Don't assume stdin can be inherited
41876         closed on all systems.
41877         * tests/test-closein.sh: Likewise.
41878         Reported by Piotr Tarnowski.
41879
41880 2007-09-28  Jim Meyering  <jim@meyering.net>
41881
41882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41883
41884 2007-09-27  Jim Meyering  <jim@meyering.net>
41885
41886         canonicalize: Avoid a false-positive cycle failure.
41887         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41888         Sort.  Remove cycle-check.
41889         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41890         not cycle-check.h.
41891         (seen_triple): New function.
41892         (canonicalize_filename_mode): Use it instead of cycle-check.
41893         * tests/test-canonicalize.c: Add a test for this bug.
41894         * tests/test-canonicalize.sh: Set up and run the test.
41895
41896         New module, file-set, from coreutils.
41897         * modules/file-set: Define it.
41898         * lib/file-set.c, lib/file-set.h: Implement.
41899
41900         New module, hash-triple, from coreutils.
41901         * modules/hash-triple: Define it.
41902         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41903
41904 2007-09-25  Eric Blake  <ebb9@byu.net>
41905
41906         Fix strerror on Interix.
41907         * lib/string_.h (strerror): Declare replacement.
41908         * doc/functions/strerror.texi (strerror): Document the Interix
41909         shortcoming.
41910         * modules/string (Makefile.am): Support new hooks.
41911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41912         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41913         gl_FUNC_STRERROR_SEPARATE.
41914         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41915         * lib/strerror.c (rpl_strerror): Provide replacement.
41916         * modules/strerror (Depends-on): Add string.
41917         (configure.ac): Detect use of module.
41918         * tests/test-strerror.c: New file.
41919         * modules/strerror-tests: New test module.
41920         * modules/argp (Depends-on): Add strerror.
41921         * modules/error (Depends-on): Likewise.
41922         Reported by Martin Koeppe.
41923
41924 2007-09-24  Bruno Haible  <bruno@clisp.org>
41925
41926         * README: Update git instructions.
41927
41928 2007-09-24  Eric Blake  <ebb9@byu.net>
41929
41930         Revert fpending breakage from 2007-09-08.
41931         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41932         __fpending.c.
41933
41934 2007-09-24  Jim Meyering  <jim@meyering.net>
41935
41936         filenamecat.c: Add a test.
41937         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41938         showing how the function works when DIR is the empty string.
41939
41940 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41941
41942         * tests/test-canonicalize.sh: Turn on executable bit.
41943
41944 2007-09-19  Eric Blake  <ebb9@byu.net>
41945
41946         * README: Update CVS instructions.
41947
41948 2007-09-18  Bruno Haible  <bruno@clisp.org>
41949
41950         * modules/areadlink: New file.
41951         * lib/areadlink.h (areadlink): New declaration.
41952         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41953
41954 2007-09-17  Jim Meyering  <jim@meyering.net>
41955
41956         * lib/savewd.c (ESTALE) [!defined]: Define.
41957         Reported to be required on Interix by Martin Koeppe.
41958
41959 2007-09-17  Bruno Haible  <bruno@clisp.org>
41960
41961         * gnulib-tool (func_version): Use $version.
41962
41963 2007-09-16  Bruno Haible  <bruno@clisp.org>
41964
41965         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41966         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41967         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41968         Reported by Greg Schafer <gschafer@zip.com.au>.
41969
41970 2007-09-15  Bruno Haible  <bruno@clisp.org>
41971
41972         * gnulib-tool (sed): Try a little harder to make bash understand the
41973         alias.
41974         Reported by Bruce Korb <bruce.korb@gmail.com>.
41975
41976 2007-09-13  Eric Blake  <ebb9@byu.net>
41977
41978         * ChangeLog: Remove conflict markers.
41979
41980 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41981
41982         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41983         Reported by Bruno Haible <bruno@clisp.org>.
41984
41985 2007-09-12  Bruno Haible  <bruno@clisp.org>
41986
41987         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41988         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41989         is not defined.
41990
41991 2007-09-12  Eric Blake  <ebb9@byu.net>
41992
41993         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41994         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41995         Autoconf definition.
41996         * modules/euidaccess (Depends-on): Add extensions, for
41997         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41998         * modules/fnmatch (Depends-on): Likewise.
41999         * modules/getaddrinfo (Depends-on): Likewise.
42000         * modules/getdelim (Depends-on): Likewise.
42001         * modules/getline (Depends-on): Likewise.
42002         * modules/getsubopt (Depends-on): Likewise.
42003         * modules/gettext (Depends-on): Likewise.
42004         * modules/group-member (Depends-on): Likewise.
42005         * modules/mbchar (Depends-on): Likewise.
42006         * modules/memmem (Depends-on): Likewise.
42007         * modules/mempcpy (Depends-on): Likewise.
42008         * modules/memrchr (Depends-on): Likewise.
42009         * modules/pagealign_alloc (Depends-on): Likewise.
42010         * modules/readutmp (Depends-on): Likewise.
42011         * modules/stpcpy (Depends-on): Likewise.
42012         * modules/stpncpy (Depends-on): Likewise.
42013         * modules/strchrnul (Depends-on): Likewise.
42014         * modules/strndup (Depends-on): Likewise.
42015         * modules/strsep (Depends-on): Likewise.
42016         * modules/strverscmp (Depends-on): Likewise.
42017         * modules/vasprintf (Depends-on): Likewise.
42018         * modules/wcwidth (Depends-on): Likewise.
42019         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
42020         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
42021         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
42022         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
42023         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42024         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42025         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42026         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42027         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
42028         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
42029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42030         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42031         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42032         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42033         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
42034         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42035         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42036         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42038         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42039         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42040         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42041         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42042         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
42043         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
42044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42045         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
42046         so that lock.m4 can be used in gettext without extensions module.
42047
42048 2007-09-11  Bruno Haible  <bruno@clisp.org>
42049
42050         * m4/isc-posix.m4: Remove file.
42051         Suggested by Eric Blake.
42052
42053 2007-09-11  Eric Blake  <ebb9@byu.net>
42054
42055         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
42056
42057 2007-09-10  Bruno Haible  <bruno@clisp.org>
42058
42059         * posix-modules: Fix typo in error message.
42060         Reported by Matt <mkraai@beckman.com>.
42061
42062 2007-09-09  Bruno Haible  <bruno@clisp.org>
42063
42064         * doc/functions/getdelim.texi: Update list of platforms lacking the
42065         function.
42066         * doc/functions/getline.texi: Likewise.
42067
42068 2007-09-09  Jim Meyering  <jim@meyering.net>
42069
42070         * lib/hash.c (hash_initialize): Detect calloc failure.
42071         Reported by Bruno Haible.
42072
42073 2007-09-09  Bruno Haible  <bruno@clisp.org>
42074
42075         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42076         malloc or realloc fails.
42077
42078 2007-09-09  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/getcwd (Depends-on): Add malloc-posix.
42081         * modules/glob (Depends-on): Likewise.
42082         * modules/putenv (Depends-on): Likewise.
42083         * modules/strdup (Depends-on): Likewise.
42084         * modules/getdelim (Depends-on): Add realloc-posix.
42085         * modules/read-file (Depends-on): Likewise.
42086
42087 2007-09-09  Bruno Haible  <bruno@clisp.org>
42088
42089         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42090         (gl_FUNC_MALLOC_POSIX): Require it.
42091         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42092         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42093         * modules/realloc (Files): Add m4/malloc.m4.
42094         * modules/calloc (Files): Likewise.
42095
42096 2007-09-09  Bruno Haible  <bruno@clisp.org>
42097
42098         * modules/malloc-posix: New file.
42099         * modules/malloc (Depends-on): Add malloc-posix.
42100         * lib/malloc.c: Include errno.h.
42101         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42102         and a POSIX-compatible malloc into a single function. Set ENOMEM
42103         when returning NULL.
42104         * m4/malloc.m4: New file.
42105         * doc/functions/malloc.texi: Mention the malloc-posix module.
42106         * lib/stdlib_.h (malloc): New declaration.
42107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42108         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42109         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42110         and HAVE_MALLOC_POSIX.
42111
42112 2007-09-09  Bruno Haible  <bruno@clisp.org>
42113
42114         * modules/realloc-posix: New file.
42115         * modules/realloc (Depends-on): Add realloc-posix.
42116         * lib/realloc.c: Include errno.h.
42117         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42118         and a POSIX-compatible realloc into a single function. Set ENOMEM
42119         when returning NULL.
42120         * m4/realloc.m4: New file.
42121         * doc/functions/realloc.texi: Mention the realloc-posix module.
42122         * lib/stdlib_.h (realloc): New declaration.
42123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42124         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42125         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42126         and HAVE_REALLOC_POSIX.
42127
42128 2007-09-09  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/calloc-posix: New file.
42131         * modules/calloc (Depends-on): Add calloc-posix.
42132         * lib/calloc.c: Include errno.h.
42133         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
42134         and a POSIX-compatible calloc into a single function. Set ENOMEM
42135         when returning NULL.
42136         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
42137         * doc/functions/calloc.texi: Mention the calloc-posix module.
42138         * lib/stdlib_.h (calloc): New declaration.
42139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42140         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
42141         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
42142         and HAVE_CALLOC_POSIX.
42143
42144 2007-09-09  Bruno Haible  <bruno@clisp.org>
42145
42146         Allow for modules to show an arbitrary notice.
42147         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
42148         * gnulib-tool: New option --extract-notice.
42149         (func_usage): Document it.
42150         (sed_extract_prog): Update.
42151         (func_get_notice): New function.
42152         (func_modules_notice): New function.
42153         (func_import, func_create_testdir): Invoke it.
42154         Suggested by Jim Meyering.
42155
42156 2007-09-09  Bruno Haible  <bruno@clisp.org>
42157
42158         * gnulib-tool: New options --verbose, --quiet.
42159         (func_usage): Document them.
42160         (verbose): New variable.
42161         (func_execute_command): New function.
42162         (func_import): Don't show the module list and the file list if
42163         $verbose < 0.
42164         (func_create_testdir): Likewise. Use func_execute_command.
42165         (func_create_megatestdir): Use func_execute_command.
42166
42167 2007-09-08  Bruno Haible  <bruno@clisp.org>
42168
42169         * gnulib-tool (func_import): Prefer rsync over wget when available,
42170         for fetching the PO files.
42171
42172 2007-09-08  Bruno Haible  <bruno@clisp.org>
42173
42174         * posix-modules: New file. Portions copied from gnulib-tool.
42175         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
42176
42177 2007-09-08  Jim Meyering  <jim@meyering.net>
42178
42179         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
42180         * lib/fpending.h: Rename from __fpending.h.
42181         * lib/fpending.c: Rename from __fpending.c.
42182         Include "fpending.h", not "__fpending.h".
42183         * lib/__fpending.h, lib/__fpending.c: Remove files.
42184         * modules/fpending (Files): Reflect new file names.
42185         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
42186
42187 2007-09-08  Bruno Haible  <bruno@clisp.org>
42188
42189         * m4/inttypes-h.m4: Remove stub file.
42190
42191 2007-09-07  Simon Josefsson  <simon@josefsson.org>
42192
42193         * doc/headers/stdint.texi: Discuss #include_next issue.
42194
42195 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42196
42197         * build-aux/bootstrap: Remove obsolete comment about wget --help.
42198
42199 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42200
42201         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
42202         in variable name.
42203
42204 2007-09-03  Jim Meyering  <jim@meyering.net>
42205
42206         New module: git-version-gen.
42207         * modules/git-version-gen: New file.
42208
42209         Import changes from coreutils for bootstrap script.
42210
42211         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
42212
42213         bootstrap: uses rsync to download the .po files
42214         * build-aux/bootstrap (po_download_command_format): New global.
42215         (download_po_files): Use rsync.
42216         (update_po_files): Don't remove .po files after download,
42217         so future rsync runs can take advantage of the copies.
42218
42219         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
42220
42221         Solve the unnecessary-.po-file-regeneration problem once and for all.
42222         * build-aux/bootstrap (download_po_files): New function, renamed from
42223         get_translations.  Now, downloads, but doesn't update LINGUAS.
42224         (update_po_files): New function.
42225
42226         bootstrap: Ignore more.
42227         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
42228         uniwidth to e.g., lib/.gitignore.
42229         (slurp): Handle the sys_stat_.h -> sys mapping, too.
42230
42231         * build-aux/bootstrap: New setting: vc_ignore.
42232         (insert_sorted_if_absent): Create $file if absent.
42233         Adapt to new, possibly empty, list: $vc_ignore.
42234
42235         bootstrap: generate more ignorable names
42236         * build-aux/bootstrap (slurp): When generating ignorable names,
42237         also map .sin to .sed, .gperf to .c, and .y to .c.
42238
42239 2007-09-03  Jim Meyering  <jim@meyering.net>
42240
42241         * build-aux/git-version-gen: New file, from coreutils.  For details, see
42242         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
42243
42244 2007-09-02  Bruno Haible  <bruno@clisp.org>
42245
42246         Fix mis-recognition of 'mcs' on QNX 6.
42247         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
42248         output contains the string "Mono".
42249         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
42250         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
42251
42252 2007-09-01  Bruno Haible  <bruno@clisp.org>
42253
42254         Fix collision between uniwidth/* and linebreak modules.
42255         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42256         u32_width): Remove declarations.
42257         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42258         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42259         streq3, streq2, streq1, streq0): Remove functions.
42260         (STREQ): Remove macro.
42261         (is_cjk_encoding): Remove function.
42262         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42263         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42264         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42265         * NEWS: Document the change.
42266
42267 2007-09-01  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/streq.h: Add double-inclusion guard.
42270
42271 2007-09-01  Karl Berry  <karl@gnu.org>
42272
42273         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42274
42275 2007-08-28  Jim Meyering  <jim@meyering.net>
42276
42277         Rename mreadlink_with_size to areadlink_with_size.
42278         * NEWS: Document the change.
42279         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42280         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42281         * lib/mreadlink.h: Rename this to...
42282         * lib/areadlink.h: ...this.
42283         * modules/mreadlink-with-size: Rename this to...
42284         * modules/areadlink-with-size: ...this.
42285         * lib/canonicalize.c: Reflect the renaming.
42286         * modules/canonicalize: Likewise.
42287
42288 2007-08-26  Bruno Haible  <bruno@clisp.org>
42289
42290         * gnulib-tool (func_import): When deciding which files to remove,
42291         consider also dangling symbolic links.
42292         Reported by Eric Blake.
42293
42294 2007-08-26  Bruno Haible  <bruno@clisp.org>
42295
42296         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42297
42298 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42299
42300         * lib/readline.c: Don't include getline.h, the prototype is now
42301         found in stdio.h.
42302
42303 2007-08-23  Jim Meyering  <jim@meyering.net>
42304
42305         Getdelim touchup.
42306         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42307         around the funlockfile call, since funlockfile never sets errno.
42308         Don't set errno upon failed realloc.
42309
42310 2007-08-22  Eric Blake  <ebb9@byu.net>
42311
42312         Getline touchups.
42313         * lib/getdelim.c (getdelim): Revert regression that required *n to
42314         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42316         getdelim, rather than whether implementation is missing.
42317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42318         * lib/stdio_.h (getline): Also declare if replacement is
42319         required.
42320         * doc/functions/getdelim.texi: New file.
42321         * doc/functions/getline.texi: Likewise.
42322         * doc/gnulib.texi (Function Substitutes): Add new files.
42323         Reported by Bruno Haible.
42324
42325 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42326
42327         * users.txt: Add Guile.
42328
42329 2007-08-22  Eric Blake  <ebb9@byu.net>
42330
42331         * tests/test-getdelim.c (main): Use remove, not unlink.
42332         * tests/test-getline.c (main): Likewise.
42333
42334         Move getline and getdelim into stdio.h, per POSIX 200x.
42335         * modules/getline (Files): Remove getline.h.
42336         (Depends-on): Add stdio.
42337         (configure.ac): Add module indicator.
42338         * modules/getdelim (Files): Remove getdelim.h.
42339         (Depends-on): Add stdio.
42340         (configure.ac): Add module indicator.
42341         * modules/stdio (Makefile.am): Work with new indicators.
42342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42344         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42345         * lib/getdelim.h: Delete.
42346         * lib/getline.h: Delete.
42347         * lib/stdio_.h (getdelim, getline): Declare.
42348         * modules/getdelim-tests: New module.
42349         * modules/getline-tests: Likewise.
42350         * tests/test-getdelim.c: New file.
42351         * tests/test-getline.c: Likewise.
42352         * NEWS: Document the change.
42353         * lib/getline.c: Update choice of header.
42354         * lib/csharpcomp.c: Likewise.
42355         * lib/getpass.c: Likewise.
42356         * lib/javacomp.c: Likewise.
42357         * lib/javaversion.c: Likewise.
42358         * lib/yesno.c: Likewise.
42359         * lib/getdelim.c: Likewise.
42360         (getdelim): Set errno on failure, and avoid memory leak.
42361
42362 2007-08-19  Bruno Haible  <bruno@clisp.org>
42363
42364         * modules/closein (Depends-on): Add freadahead.
42365         * lib/closein.c: Include freadahead.h.
42366         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42367         is zero.
42368
42369 2007-08-19  Bruno Haible  <bruno@clisp.org>
42370
42371         * modules/freadahead-tests: New file.
42372         * tests/test-freadahead.sh: New file.
42373         * tests/test-freadahead.c: New file.
42374
42375         * modules/freadahead: New file.
42376         * lib/freadahead.h: New file.
42377         * lib/freadahead.c: New file.
42378         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42379         fbufmode, fpurge, freadable, fwritable.
42380
42381 2007-08-19  Eric Blake  <ebb9@byu.net>
42382
42383         Test yesno in combination with closein.
42384         * lib/yesno.c (yesno): Document use of stdin.
42385         * modules/yesno-tests (Files): New module.
42386         * tests/test-yesno.c (main): New file.
42387         * tests/test-yesno.sh: Likewise.
42388
42389 2007-08-19  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42392         * lib/fseeko.c (rpl_fseeko): Likewise.
42393         * lib/fseterr.c (fseterr): Likewise.
42394
42395 2007-08-19  Bruno Haible  <bruno@clisp.org>
42396
42397         * tests/test-lseek.c (main): Disable a test for BeOS.
42398         * doc/functions/lseek.texi: Document the BeOS bug.
42399
42400 2007-08-19  Bruno Haible  <bruno@clisp.org>
42401             Eric Blake  <ebb9@byu.net>
42402
42403         * lib/lseek.c: Include <sys/stat.h>.
42404         (rpl_lseek): Add workaround code also for Unix platforms.
42405         Needed for BeOS.
42406         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42407         * doc/functions/lseek.texi: Document BeOS definiency.
42408
42409 2007-08-18  Bruno Haible  <bruno@clisp.org>
42410
42411         * modules/fstrcmp-tests: New file.
42412         * tests/test-fstrcmp.c: New file.
42413
42414 2007-08-18  Bruno Haible  <bruno@clisp.org>
42415
42416         * modules/fstrcmp: New file, from GNU gettext with modifications.
42417         * lib/fstrcmp.h: New file, from GNU gettext.
42418         * lib/fstrcmp.c: New file, from GNU gettext.
42419         * MODULES.html.sh (String handling): Add fstrcmp.
42420
42421 2007-08-18  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42424         'bool'.
42425         (diag, compareseq): Remove const from the ctxt argument.
42426         (USE_HEURISTIC): Undefine at the end.
42427
42428 2007-08-18  Jim Meyering  <jim@meyering.net>
42429
42430         New file: lib/idcache.h
42431         * NEWS: Mention the addition.
42432         * modules/idcache (Files): Add lib/idcache.h
42433         * lib/idcache.c: Include "idcache.h".
42434         Don't include <sys/types.h>.
42435         Add a FIXME comment.
42436         Move file-scoped "static" declarations to the top.
42437         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42438
42439 2007-08-17  Bruno Haible  <bruno@clisp.org>
42440         and Paul Eggert  <eggert@cs.ucla.edu>
42441
42442         * MODULES.html.sh: Add diffseq.
42443         * modules/diffseq: New file.
42444         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42445         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42446
42447 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42448
42449         Import changes from coreutils for bootstrap script.
42450
42451         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42452
42453         * build-aux/bootstrap (slurp): Work even in environments where
42454         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42455         current code does not slurp files whose names start with ".", and
42456         this looks like it might be a troublesome area.
42457
42458         2007-07-11  Jim Meyering  <jim@meyering.net>
42459
42460         If there's a GPL vN copyright comment, require that N == 3.
42461
42462         2007-07-08  Jim Meyering  <jim@meyering.net>
42463
42464         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42465         * build-aux/bootstrap (mam_template): Move definition out of loop.
42466
42467         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42468
42469         * build-aux/bootstrap (symlink_to_dir): Rename function from
42470         symlink_to_gnulib.  Add a directory parameter.  Update all
42471         callers.
42472         (cp_mark_as_generated): Also check for -- and link to -- files in
42473         gl/.
42474
42475         2007-07-08  Jim Meyering  <jim@meyering.net>
42476
42477         Adapt to deeper hierarchy in gnulib.
42478         * build-aux/bootstrap (symlink_to_dir): If the destination
42479         directory doesn't exist, create it. This is required at least for
42480         "lib/uniwidth/cjk.h".
42481
42482         2007-05-15  Jim Meyering  <jim@meyering.net>
42483
42484         * build-aux/bootstrap: Now that generated Makefile.am files
42485         are no longer under version control, they must be created at
42486         bootstrap time.
42487
42488 2007-08-14  Ben Pfaff  <blp@gnu.org>
42489
42490         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42491
42492 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42493
42494         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42495         given the changes below.
42496         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42497         even on hosts that have padding bits beyond the supported 64.
42498
42499 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42500
42501         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42502         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42503         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42504         depends on it.
42505         (xstrtol_error): Remove.
42506         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42507         but with a different signature.
42508         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42509         * lib/xstrtol-error.c: Include exitfail.h.
42510         (xstrtol_fatal): New function, with a different signature from the
42511         old xstrtol_error, so that the caller need not worry about passing
42512         in an exit status, or about storage management of the option argument.
42513         (xstrtol_error): Now a static function.  Redo signature to
42514         implement xstrtol_fatal.  Output the correct number of hyphens in
42515         front of the option so that the caller need not worry about
42516         storage management.
42517         (N_): New macro.
42518         (_): Remove; not used now.
42519         * modules/xstrtol: Depend on getopt.
42520         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42521         of old STRTOL_FATAL_ERROR macro.
42522         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42523         of test program.
42524         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42525         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42526
42527 2007-08-08  Eric Blake  <ebb9@byu.net>
42528
42529         * lib/xstrtol-error.c: Add missing include.
42530
42531         Move xstrtol messages into gnulib domain, when --pobase is used.
42532         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42533         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42534         * modules/xstrtol (Files): Distribute new file.
42535         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42536         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42537         * tests/test-xstrtol.c: ...into new file.
42538         * tests/test-xstrtoul.c: Also test xstrtoul.
42539         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42540         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42541         * tests/test-xstrtol.sh: Drive the tests.
42542         * tests/test-xstrtoimax.sh: Likewise.
42543         * tests/test-xstrtoumax.sh: Likewise.
42544         * modules/xstrtol-tests: New module.
42545         * modules/xstrtoimax-tests: Likewise.
42546         * modules/xstrtoumax-tests: Likewise.
42547
42548 2007-08-08  Jim Meyering  <jim@meyering.net>
42549
42550         New function: mfile_name_concat.
42551         * lib/filenamecat.c (mfile_name_concat): New function, just like
42552         file_name_concat, but return NULL upon failure rather than exiting
42553         with a diagnostic.
42554         * lib/filenamecat.h: Declare it.
42555
42556 2007-08-07  Bruno Haible  <bruno@clisp.org>
42557
42558         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42559         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42560         warning from gcc.
42561         Reported by Eric Blake.
42562
42563 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42564
42565         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42566         * modules/crypto/arcfour (License): Likewise.
42567         * modules/crypto/des-tests (License): Likewise.
42568         * modules/crypto/gc-arctwo-tests (License): Likewise.
42569         * modules/crypto/gc-des-tests (License): Likewise.
42570         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42571         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42572         * modules/crypto/gc-md2-tests (License): Likewise.
42573         * modules/crypto/gc-md4-tests (License): Likewise.
42574         * modules/crypto/gc-md5-tests (License): Likewise.
42575         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42576         * modules/crypto/gc-rijndael-tests (License): Likewise.
42577         * modules/crypto/gc-sha1-tests (License): Likewise.
42578         * modules/crypto/gc-tests (License): Likewise.
42579         * modules/crypto/hmac-md5 (License): Likewise.
42580         * modules/crypto/hmac-sha1 (License): Likewise.
42581         * modules/crypto/md2-tests (License): Likewise.
42582         * modules/crypto/md4-tests (License): Likewise.
42583         * modules/crypto/md5 (License): Likewise.
42584         * modules/crypto/rijndael (License): Likewise.
42585         * modules/crypto/sha1 (License): Likewise.
42586         * modules/memxor (License): Likewise.
42587
42588 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42589         and Bruno Haible  <bruno@clisp.org>
42590
42591         * NEWS: Describe interface changes to human, xstrtol.
42592         * lib/human.h: Include <xstrtol.h>.
42593         (human_options): Return enum strtol_error, not int.  Remove
42594         bool arg; take int * instead.
42595         * lib/human.c: Don't include "gettext.h".
42596         (_): Remove; no longer used.
42597         Don't include <xstrtol.h>, since human.h does it.
42598         (human_options): Adjust to abovementioned interface changes.
42599         Do not report error to stderr; that's now the caller's
42600         responsibility.
42601         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42602         interface change.
42603         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42604         Str, Argument_type_string.  All uses changed.  Put " argument"
42605         in diagnostics to make them clearer.  Change wording of suffix
42606         message for clarity.
42607         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42608         Argument_type_string.
42609         (STRTOL_FATAL_WARN): Remove; no longer used.
42610         * modules/human (Depends-on): Remove gettext-h.
42611
42612 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42613
42614         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42615
42616 2007-07-31  Bruno Haible  <bruno@clisp.org>
42617
42618         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42619         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42620         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42621
42622 2007-07-31  Bruno Haible  <bruno@clisp.org>
42623
42624         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42625         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42626
42627 2007-07-30  Bruno Haible  <bruno@clisp.org>
42628
42629         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42630         * modules/c-ctype (License): Likewise.
42631         * modules/c-strcase (License): Likewise.
42632         * modules/check-version (License): Likewise.
42633         * modules/iconv (License): Likewise.
42634         * modules/iconv_open (License): Likewise.
42635         * modules/read-file (License): Likewise.
42636         * modules/striconv (License): Likewise.
42637         * modules/strverscmp (License): Likewise.
42638         * modules/vasprintf (License): Likewise.
42639         * modules/crypto/des (License): Likewise.
42640         * modules/crypto/gc (License): Likewise.
42641         * modules/crypto/gc-arcfour (License): Likewise.
42642         * modules/crypto/gc-arctwo (License): Likewise.
42643         * modules/crypto/gc-des (License): Likewise.
42644         * modules/crypto/gc-hmac-md5 (License): Likewise.
42645         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42646         * modules/crypto/gc-md2 (License): Likewise.
42647         * modules/crypto/gc-md4 (License): Likewise.
42648         * modules/crypto/gc-md5 (License): Likewise.
42649         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42650         * modules/crypto/gc-random (License): Likewise.
42651         * modules/crypto/gc-rijndael (License): Likewise.
42652         * modules/crypto/gc-sha1 (License): Likewise.
42653         * modules/crypto/md2 (License): Likewise.
42654         * modules/crypto/md4 (License): Likewise.
42655
42656 2007-07-30  Jim Meyering  <jim@meyering.net>
42657
42658         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42659         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42660         it has valid stat data.  This bug would cause du not to count the
42661         sizes of inaccessible directories.
42662         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42663         in <http://bugzilla.redhat.com/250077>.
42664
42665 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42666             Bruno Haible  <bruno@clisp.org>
42667
42668         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42669         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42670         #include_next, gives a diagnostic about it, but reports no error in
42671         the exit code.
42672         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42673
42674 2007-07-24  Ben Pfaff  <blp@gnu.org>
42675
42676         Improve name: "count-one-bits" is better than "popcount".
42677         * MODULES.html.sh: Update name.
42678         * lib/popcount.h: Renamed lib/count-one-bits.h.
42679         (popcount): Renamed count_one_bits.
42680         (popcountl): Renamed count_one_bits_l.
42681         (popcountll): Renamed count_one_bits_ll.
42682         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42683         * modules/popcount: Renamed module/count-one-bits.
42684         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42685         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42686
42687 2007-07-23  Ben Pfaff  <blp@gnu.org>
42688
42689         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42690         better code generation, and add U to large constants to avoid
42691         warnings, in non-GCC case.
42692         Suggested by Bruno Haible.
42693
42694 2007-07-23  Ben Pfaff  <blp@gnu.org>
42695
42696         * lib/popcount.h: Use verify_true instead of if...abort.
42697         * modules/popcount: Depend on verify module.
42698         Suggested by Jim Meyering.
42699
42700 2007-07-23  Bruno Haible  <bruno@clisp.org>
42701
42702         * gnulib-tool (func_import): Create a .cvsignore file also when the
42703         directory is not yet in CVS but the toplevel directory is. When
42704         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42705         Reported by Karl Berry.
42706
42707 2007-07-22  Ben Pfaff  <blp@gnu.org>
42708
42709         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42710         case.
42711         Suggested by Eric Blake.
42712
42713 2007-07-22  Ben Pfaff  <blp@gnu.org>
42714
42715         New module: popcount.
42716         * MODULES.html.sh: Add popcount.
42717         * modules/popcount: New file.
42718         * modules/popcount-tests: New file.
42719         * tests/test-popcount.c: New file.
42720         * lib/popcount.h: New file.
42721         * m4/popcount.m4: New file.
42722
42723 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42724
42725         * build-aux/announce-gen: Update to GPLv3.
42726
42727         * build-aux/config.guess: Update from config.
42728
42729 2007-07-21  Bruno Haible  <bruno@clisp.org>
42730
42731         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42732         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42733
42734 2007-07-20  Jim Meyering  <jim@meyering.net>
42735
42736         * check-module: Diagnose a self-dependency.
42737
42738 2007-07-19  Bruno Haible  <bruno@clisp.org>
42739
42740         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42741         empty.
42742         Reported by Eric Blake.
42743
42744 2007-07-18  Bruno Haible  <bruno@clisp.org>
42745
42746         * gnulib-tool: New options --po-base, --po-domain.
42747         (func_usage): Document them.
42748         (pobase, po_domain): New variables.
42749         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42750         DEFAULT_TEXT_DOMAIN.
42751         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42752         (func_import): Consider pobase and po_domain. Create a po/ directory.
42753         (func_create_testdir): Set pobase and po_domain to empty.
42754         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42755         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42756
42757 2007-07-18  Bruno Haible  <bruno@clisp.org>
42758
42759         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42760         EXTRA_DIST augmentation for files in build-aux/.
42761
42762 2007-07-16  Bruno Haible  <bruno@clisp.org>
42763
42764         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42765         * modules/getdelim (License): Likewise.
42766
42767 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42768
42769         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42770         * modules/d-type (License): Likewise.
42771         * modules/extensions (License): Likewise.
42772         * modules/fnmatch (License): Likewise.
42773         * modules/fseeko (License): Likewise.
42774         * modules/getaddrinfo (License): Likewise.
42775         * modules/getline (License): Likewise.
42776         * modules/getlogin_r (License): Likewise.
42777         * modules/getpass (License): Likewise.
42778         * modules/gettimeofday (License): Likewise.
42779         * modules/glob (License): Likewise.
42780         * modules/inet_ntop (License): Likewise.
42781         * modules/malloc (License): Likewise.
42782         * modules/malloca (License): Likewise.
42783         * modules/memmem (License): Likewise.
42784         * modules/mempcpy (License): Likewise.
42785         * modules/memset (License): Likewise.
42786         * modules/minmax (License): Likewise.
42787         * modules/mktime (License): Likewise.
42788         * modules/netinet_in (License): Likewise.
42789         * modules/pathmax (License): Likewise.
42790         * modules/poll (License): Likewise.
42791         * modules/regex (License): Likewise.
42792         * modules/snprintf (License): Likewise.
42793         * modules/stdbool (License): Likewise.
42794         * modules/stdint (License): Likewise.
42795         * modules/stdio (License): Likewise.
42796         * modules/strcase (License): Likewise.
42797         * modules/strcasestr (License): Likewise.
42798         * modules/strdup (License): Likewise.
42799         * modules/string (License): Likewise.
42800         * modules/strndup (License): Likewise.
42801         * modules/strnlen (License): Likewise.
42802         * modules/strpbrk (License): Likewise.
42803         * modules/strptime (License): Likewise.
42804         * modules/strsep (License): Likewise.
42805         * modules/sys_select (License): Likewise.
42806         * modules/sys_socket (License): Likewise.
42807         * modules/sys_stat (License): Likewise.
42808         * modules/sys_time (License): Likewise.
42809         * modules/time (License): Likewise.
42810         * modules/time_r (License): Likewise.
42811         * modules/timegm (License): Likewise.
42812         * modules/unistd (License): Likewise.
42813         * modules/vsnprintf (License): Likewise.
42814         * modules/wctype (License): Likewise.
42815
42816 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42817
42818         * modules/argz (License): LGPLv2+.
42819
42820 2007-07-15  Karl Berry  <karl@gnu.org>
42821
42822         * doc/gnulib.texi: revise node structure per new fdl.texi.
42823
42824 2007-07-14  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42827         the output file.
42828         * lib/uniname/uninames.h: Regenerated.
42829
42830 2007-07-14  Karl Berry  <karl@gnu.org>
42831
42832         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42833         omitting sectioning and index commands.
42834
42835 2007-07-13  Bruno Haible  <bruno@clisp.org>
42836
42837         New gnulib-tool option --more-symlinks.
42838         * gnulib-tool (func_usage): Document --more-symlinks.
42839         (do_copyrights): New variable.
42840         Recognize option --more-symlinks.
42841         (func_import): Don't add a copyright notice transform to
42842         sed_transform_lib_file if do_copyrights is empty.
42843
42844 2007-07-13  Bruno Haible  <bruno@clisp.org>
42845
42846         * lib/vasnprintf.c (decimal_point_char): Define also if
42847         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42848         && !NEED_PRINTF_DIRECTIVE_A.
42849         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42850         Gary V. Vaughan <gary@gnu.org>.
42851
42852 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42853
42854         * lib/inttypes_.h: Undo previous change, since it was fixed
42855         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42856
42857 2007-07-13  Bruno Haible  <bruno@clisp.org>
42858
42859         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42860         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42861
42862 2007-07-13  Jim Meyering  <jim@meyering.net>
42863
42864         df: Don't fail for Tru64's "file-on-file mount".
42865         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42866         so we fall through and use statfs instead.  Details here:
42867         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42868         Reported by Albert Chin.
42869
42870 2007-07-13  Bruno Haible  <bruno@clisp.org>
42871
42872         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42873         * modules/configmake (License): Likewise.
42874         * modules/gettext (License): Likewise.
42875         * modules/gettext-h (License): Likewise.
42876         * modules/include_next (License): Likewise.
42877         * modules/link-warning (License): Likewise.
42878         * modules/localcharset (License): Likewise.
42879         * modules/localename (License): Likewise.
42880         * modules/lock (License): Likewise.
42881         * modules/relocatable-lib-lgpl (License): Likewise.
42882         * modules/size_max (License): Likewise.
42883         * modules/vasnprintf (License): Likewise.
42884         * modules/wchar (License): Likewise.
42885         * modules/xsize (License): Likewise.
42886
42887 2007-07-13  Bruno Haible  <bruno@clisp.org>
42888
42889         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42890         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42891
42892 2007-07-12  Bruno Haible  <bruno@clisp.org>
42893
42894         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42895         in the modules files.
42896
42897 2007-07-11  Karl Berry  <karl@gnu.org>
42898
42899         * MODULES.html.sh (func_module): use
42900          sed -e '\|^'"${includefile}"'$|d'
42901          instead of /.../d, to avoid errors on $includefile's containing /.
42902
42903 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42904
42905         * gnulib-tool (func_import): Avoid duplication of --avoid
42906         statements
42907         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42908         names to `_' in variable names.
42909
42910 2007-07-10  Eric Blake  <ebb9@byu.net>
42911
42912         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42913         * NEWS: Document this change.
42914
42915 2007-07-08  Bruno Haible  <bruno@clisp.org>
42916
42917         Update to Unicode 5.0.
42918         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42919         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42920         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42921         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42922         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42923         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42924         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42925         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42926         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42927         U+10A3F, U+1D242..U+1D244.
42928         (nonspacing_table_ind): Update.
42929         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42930         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42931
42932 2007-07-08  Bruno Haible  <bruno@clisp.org>
42933
42934         Update to Unicode 5.0.
42935         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42936         code transform. Extend the name index field of unicode_name_to_code and
42937         unicode_code_to_name from 16 to 24 bits.
42938         * lib/uniname/uniname.c (unicode_character_name,
42939         unicode_name_character): Add the range 0x12xxx to the code transform.
42940         * lib/uniname/uninames.h: Regenerated.
42941         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42942
42943 2007-07-07  Bruno Haible  <bruno@clisp.org>
42944
42945         * modules/wcwidth-tests: New file.
42946         * tests/test-wcwidth.c: New file.
42947
42948         Work around MacOS X wcwidth() bug.
42949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42950         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42951         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42952         original wcwidth in non-UTF-8 locales.
42953         * modules/wcwidth (Depends-on): Add localcharset, streq,
42954         uniwidth/width.
42955         * doc/functions/wcwidth.texi: Update.
42956
42957 2007-07-07  Bruno Haible  <bruno@clisp.org>
42958
42959         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42960         (wcwidth): New declaration.
42961         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42962         macros.
42963         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42964         here. Prepare for creating <wchar.h> unconditionally.
42965         * modules/wchar (Depends-on): Add link-warning.
42966         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42967         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42968         * lib/wcwidth.h: Remove file.
42969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42970         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42971         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42972         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42973         (Include): Replace wcwidth.h with <wchar.h>.
42974         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42975         * lib/mbchar.h: Don't include wcwidth.h.
42976         * lib/mbswidth.c: Likewise.
42977         * NEWS: Mention the change.
42978
42979 2007-07-07  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42982         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42983         definition with an external declaration.
42984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42985         defined as a function. Remove AC_C_INLINE requirement.
42986         * modules/wcwidth (Files): Add lib/wcwidth.c.
42987         (Makefile.am): Remove redundant statement.
42988
42989 2007-07-07  Bruno Haible  <bruno@clisp.org>
42990
42991         * MODULES.html.sh (Unicode string functions): Add the new modules.
42992
42993         * tests/uniwidth/test-u32-strwidth.c: New file.
42994         * modules/uniwidth/u32-strwidth-tests: New file.
42995
42996         * lib/uniwidth/u32-strwidth.c: New file.
42997         * modules/uniwidth/u32-strwidth: New file.
42998
42999         * tests/uniwidth/test-u16-strwidth.c: New file.
43000         * modules/uniwidth/u16-strwidth-tests: New file.
43001
43002         * lib/uniwidth/u16-strwidth.c: New file.
43003         * modules/uniwidth/u16-strwidth: New file.
43004
43005         * tests/uniwidth/test-u8-strwidth.c: New file.
43006         * modules/uniwidth/u8-strwidth-tests: New file.
43007
43008         * lib/uniwidth/u8-strwidth.c: New file.
43009         * modules/uniwidth/u8-strwidth: New file.
43010
43011         * tests/uniwidth/test-u32-width.c: New file.
43012         * modules/uniwidth/u32-width-tests: New file.
43013
43014         * lib/uniwidth/u32-width.c: New file.
43015         * modules/uniwidth/u32-width: New file.
43016
43017         * tests/uniwidth/test-u16-width.c: New file.
43018         * modules/uniwidth/u16-width-tests: New file.
43019
43020         * lib/uniwidth/u16-width.c: New file.
43021         * modules/uniwidth/u16-width: New file.
43022
43023         * tests/uniwidth/test-u8-width.c: New file.
43024         * modules/uniwidth/u8-width-tests: New file.
43025
43026         * lib/uniwidth/u8-width.c: New file.
43027         * modules/uniwidth/u8-width: New file.
43028
43029         * tests/uniwidth/test-uc_width.c: New file.
43030         * modules/uniwidth/width-tests: New file.
43031
43032         * lib/uniwidth/width.c: New file, from GNU libiconv.
43033         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
43034         * modules/uniwidth/width: New file.
43035
43036         * lib/uniwidth.h: New file, from GNU libiconv.
43037         * modules/uniwidth/base: New file.
43038
43039 2007-07-07  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/uniname.h: New file, from GNU gettext.
43042         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
43043         * lib/uniname/uninames.h: New file, from GNU gettext.
43044         * lib/uniname/uniname.c: New file, from GNU gettext.
43045         * tests/uniname/test-uninames.sh: New file.
43046         * tests/uniname/test-uninames.c: New file, from GNU gettext.
43047         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
43048         * modules/uniname/base: New file.
43049         * modules/uniname/uniname: New file.
43050         * modules/uniname/uniname-tests: New file.
43051         * MODULES.html.sh (Unicode string functions): Add the new modules.
43052
43053 2007-07-06  Bruno Haible  <bruno@clisp.org>
43054
43055         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
43056
43057 2007-07-06  Bruno Haible  <bruno@clisp.org>
43058
43059         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
43060         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
43061         includes <cygwin/sys_time.h> which includes <sys/select.h> which
43062         include <sys/time.h>.
43063         Reported by Eric Blake.
43064
43065 2007-07-06  Eric Blake  <ebb9@byu.net>
43066
43067         Fix testing canonicalize on cygwin.
43068         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43069         Revert patch from 2007-06-19.
43070         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
43071         canonicalize module is also in use.
43072         * tests/test-canonicalize.c: New file.
43073         * tests/test-canonicalize.sh: Likewise.
43074         * modules/canonicalize-tests: Likewise.
43075
43076 2007-07-06  Jim Meyering  <jim@meyering.net>
43077
43078         * lib/getugroups.c (getugroups): Detect getgrent failure.
43079         Adjust comment to reflect reality: this function may return -1.
43080
43081 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43082
43083         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43084         the new TP address.
43085         (usage): Fix typo
43086         (gnulib_mk): New variable.
43087
43088 2007-07-05  Jim Meyering  <jim@meyering.net>
43089
43090         Don't let endgrent clobber errno, no matter how improbable.
43091         * lib/getugroups.c (getugroups): Save and restore errno around
43092         endgrent call.
43093
43094         Close the group DB even when failing with 2^31 or more members.
43095         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43096
43097 2007-07-04  Jim Meyering  <jim@meyering.net>
43098
43099         * lib/getugroups.h: New file.
43100         * lib/getugroups.c: Include "getugroups.h".
43101         Remove uses of "register" keyword.
43102         Move local variable, "cp", down into scope where used.
43103         Give "username" parameter the "const" attribute.
43104         * modules/getugroups (Files): Add lib/getugroups.h
43105
43106 2007-07-04  Karl Berry  <karl@gnu.org>
43107
43108         * MODULES.html.sh (func_all_modules): Complete rename of
43109         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43110
43111 2007-07-02  Bruno Haible  <bruno@clisp.org>
43112
43113         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43114         mode, when inttypes.h comes from gnulib.
43115         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43116
43117 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43118
43119         * NEWS: Mention lgpl module name change.
43120
43121         * modules/lgpl-2.1: Renamed from lgpl.
43122
43123         * NEWS: Mention gpl module name change.
43124
43125         * modules/gpl-3.0: New file, based on gpl-2.0.
43126
43127         * modules/gpl-2.0: Renamed from gpl.
43128
43129         * modules/gpl: Fix filename, doc/gpl.texi is now found at
43130         doc/gpl-2.0.texi.
43131
43132 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43133
43134         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
43135         #define __STDC_LIMIT_MACROS temporarily while including
43136         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
43137         Problem reported by Joel E. Denny in
43138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
43139
43140 2007-07-01  Bruno Haible  <bruno@clisp.org>
43141
43142         * lib/unistdio.h: New file.
43143         * lib/unistdio/u-asnprintf.h: New file.
43144         * lib/unistdio/u-asprintf.h: New file.
43145         * lib/unistdio/u-printf-args.c: New file.
43146         * lib/unistdio/u-printf-args.h: New file.
43147         * lib/unistdio/u-printf-parse.h: New file.
43148         * lib/unistdio/u-snprintf.h: New file.
43149         * lib/unistdio/u-sprintf.h: New file.
43150         * lib/unistdio/u-vasprintf.h: New file.
43151         * lib/unistdio/u-vsnprintf.h: New file.
43152         * lib/unistdio/u-vsprintf.h: New file.
43153         * lib/unistdio/ulc-asnprintf.c: New file.
43154         * lib/unistdio/ulc-asprintf.c: New file.
43155         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
43156         * lib/unistdio/ulc-printf-parse.c: New file.
43157         * lib/unistdio/ulc-snprintf.c: New file.
43158         * lib/unistdio/ulc-sprintf.c: New file.
43159         * lib/unistdio/ulc-vasnprintf.c: New file.
43160         * lib/unistdio/ulc-vasprintf.c: New file.
43161         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
43162         * lib/unistdio/ulc-vsnprintf.c: New file.
43163         * lib/unistdio/ulc-vsprintf.c: New file.
43164         * lib/unistdio/u8-asnprintf.c: New file.
43165         * lib/unistdio/u8-asprintf.c: New file.
43166         * lib/unistdio/u8-printf-parse.c: New file.
43167         * lib/unistdio/u8-snprintf.c: New file.
43168         * lib/unistdio/u8-sprintf.c: New file.
43169         * lib/unistdio/u8-vasnprintf.c: New file.
43170         * lib/unistdio/u8-vasprintf.c: New file.
43171         * lib/unistdio/u8-vsnprintf.c: New file.
43172         * lib/unistdio/u8-vsprintf.c: New file.
43173         * lib/unistdio/u8-u8-asnprintf.c: New file.
43174         * lib/unistdio/u8-u8-asprintf.c: New file.
43175         * lib/unistdio/u8-u8-snprintf.c: New file.
43176         * lib/unistdio/u8-u8-sprintf.c: New file.
43177         * lib/unistdio/u8-u8-vasnprintf.c: New file.
43178         * lib/unistdio/u8-u8-vasprintf.c: New file.
43179         * lib/unistdio/u8-u8-vsnprintf.c: New file.
43180         * lib/unistdio/u8-u8-vsprintf.c: New file.
43181         * lib/unistdio/u16-asnprintf.c: New file.
43182         * lib/unistdio/u16-asprintf.c: New file.
43183         * lib/unistdio/u16-printf-parse.c: New file.
43184         * lib/unistdio/u16-snprintf.c: New file.
43185         * lib/unistdio/u16-sprintf.c: New file.
43186         * lib/unistdio/u16-vasnprintf.c: New file.
43187         * lib/unistdio/u16-vasprintf.c: New file.
43188         * lib/unistdio/u16-vsnprintf.c: New file.
43189         * lib/unistdio/u16-vsprintf.c: New file.
43190         * lib/unistdio/u16-u16-asnprintf.c: New file.
43191         * lib/unistdio/u16-u16-asprintf.c: New file.
43192         * lib/unistdio/u16-u16-snprintf.c: New file.
43193         * lib/unistdio/u16-u16-sprintf.c: New file.
43194         * lib/unistdio/u16-u16-vasnprintf.c: New file.
43195         * lib/unistdio/u16-u16-vasprintf.c: New file.
43196         * lib/unistdio/u16-u16-vsnprintf.c: New file.
43197         * lib/unistdio/u16-u16-vsprintf.c: New file.
43198         * lib/unistdio/u32-asnprintf.c: New file.
43199         * lib/unistdio/u32-asprintf.c: New file.
43200         * lib/unistdio/u32-printf-parse.c: New file.
43201         * lib/unistdio/u32-snprintf.c: New file.
43202         * lib/unistdio/u32-sprintf.c: New file.
43203         * lib/unistdio/u32-vasnprintf.c: New file.
43204         * lib/unistdio/u32-vasprintf.c: New file.
43205         * lib/unistdio/u32-vsnprintf.c: New file.
43206         * lib/unistdio/u32-vsprintf.c: New file.
43207         * lib/unistdio/u32-u32-asnprintf.c: New file.
43208         * lib/unistdio/u32-u32-asprintf.c: New file.
43209         * lib/unistdio/u32-u32-snprintf.c: New file.
43210         * lib/unistdio/u32-u32-sprintf.c: New file.
43211         * lib/unistdio/u32-u32-vasnprintf.c: New file.
43212         * lib/unistdio/u32-u32-vasprintf.c: New file.
43213         * lib/unistdio/u32-u32-vsnprintf.c: New file.
43214         * lib/unistdio/u32-u32-vsprintf.c: New file.
43215         * tests/unistdio/test-ulc-asnprintf1.c: New file.
43216         * tests/unistdio/test-ulc-asnprintf1.h: New file.
43217         * tests/unistdio/test-ulc-printf1.h: New file.
43218         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
43219         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
43220         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
43221         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
43222         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
43223         * tests/unistdio/test-ulc-vasprintf1.c: New file.
43224         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
43225         * tests/unistdio/test-ulc-vsprintf1.c: New file.
43226         * tests/unistdio/test-u8-asnprintf1.c: New file.
43227         * tests/unistdio/test-u8-asnprintf1.h: New file.
43228         * tests/unistdio/test-u8-printf1.h: New file.
43229         * tests/unistdio/test-u8-vasnprintf1.c: New file.
43230         * tests/unistdio/test-u8-vasnprintf2.c: New file.
43231         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
43232         * tests/unistdio/test-u8-vasnprintf3.c: New file.
43233         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
43234         * tests/unistdio/test-u8-vasprintf1.c: New file.
43235         * tests/unistdio/test-u8-vsnprintf1.c: New file.
43236         * tests/unistdio/test-u8-vsprintf1.c: New file.
43237         * tests/unistdio/test-u16-asnprintf1.c: New file.
43238         * tests/unistdio/test-u16-asnprintf1.h: New file.
43239         * tests/unistdio/test-u16-printf1.h: New file.
43240         * tests/unistdio/test-u16-vasnprintf1.c: New file.
43241         * tests/unistdio/test-u16-vasnprintf2.c: New file.
43242         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
43243         * tests/unistdio/test-u16-vasnprintf3.c: New file.
43244         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
43245         * tests/unistdio/test-u16-vasprintf1.c: New file.
43246         * tests/unistdio/test-u16-vsnprintf1.c: New file.
43247         * tests/unistdio/test-u16-vsprintf1.c: New file.
43248         * tests/unistdio/test-u32-asnprintf1.c: New file.
43249         * tests/unistdio/test-u32-asnprintf1.h: New file.
43250         * tests/unistdio/test-u32-printf1.h: New file.
43251         * tests/unistdio/test-u32-vasnprintf1.c: New file.
43252         * tests/unistdio/test-u32-vasnprintf2.c: New file.
43253         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43254         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43255         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43256         * tests/unistdio/test-u32-vasprintf1.c: New file.
43257         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43258         * tests/unistdio/test-u32-vsprintf1.c: New file.
43259         * modules/unistdio/base: New file.
43260         * modules/unistdio/u-printf-args: New file.
43261         * modules/unistdio/ulc-asnprintf: New file.
43262         * modules/unistdio/ulc-asprintf: New file.
43263         * modules/unistdio/ulc-fprintf: New file.
43264         * modules/unistdio/ulc-printf-parse: New file.
43265         * modules/unistdio/ulc-snprintf: New file.
43266         * modules/unistdio/ulc-sprintf: New file.
43267         * modules/unistdio/ulc-vasnprintf: New file.
43268         * modules/unistdio/ulc-vasprintf: New file.
43269         * modules/unistdio/ulc-vfprintf: New file.
43270         * modules/unistdio/ulc-vsnprintf: New file.
43271         * modules/unistdio/ulc-vsprintf: New file.
43272         * modules/unistdio/u8-asnprintf: New file.
43273         * modules/unistdio/u8-asprintf: New file.
43274         * modules/unistdio/u8-printf-parse: New file.
43275         * modules/unistdio/u8-snprintf: New file.
43276         * modules/unistdio/u8-sprintf: New file.
43277         * modules/unistdio/u8-vasnprintf: New file.
43278         * modules/unistdio/u8-vasprintf: New file.
43279         * modules/unistdio/u8-vsnprintf: New file.
43280         * modules/unistdio/u8-vsprintf: New file.
43281         * modules/unistdio/u8-u8-asnprintf: New file.
43282         * modules/unistdio/u8-u8-asprintf: New file.
43283         * modules/unistdio/u8-u8-snprintf: New file.
43284         * modules/unistdio/u8-u8-sprintf: New file.
43285         * modules/unistdio/u8-u8-vasnprintf: New file.
43286         * modules/unistdio/u8-u8-vasprintf: New file.
43287         * modules/unistdio/u8-u8-vsnprintf: New file.
43288         * modules/unistdio/u8-u8-vsprintf: New file.
43289         * modules/unistdio/u16-asnprintf: New file.
43290         * modules/unistdio/u16-asprintf: New file.
43291         * modules/unistdio/u16-printf-parse: New file.
43292         * modules/unistdio/u16-snprintf: New file.
43293         * modules/unistdio/u16-sprintf: New file.
43294         * modules/unistdio/u16-vasnprintf: New file.
43295         * modules/unistdio/u16-vasprintf: New file.
43296         * modules/unistdio/u16-vsnprintf: New file.
43297         * modules/unistdio/u16-vsprintf: New file.
43298         * modules/unistdio/u16-u16-asnprintf: New file.
43299         * modules/unistdio/u16-u16-asprintf: New file.
43300         * modules/unistdio/u16-u16-snprintf: New file.
43301         * modules/unistdio/u16-u16-sprintf: New file.
43302         * modules/unistdio/u16-u16-vasnprintf: New file.
43303         * modules/unistdio/u16-u16-vasprintf: New file.
43304         * modules/unistdio/u16-u16-vsnprintf: New file.
43305         * modules/unistdio/u16-u16-vsprintf: New file.
43306         * modules/unistdio/u32-asnprintf: New file.
43307         * modules/unistdio/u32-asprintf: New file.
43308         * modules/unistdio/u32-printf-parse: New file.
43309         * modules/unistdio/u32-snprintf: New file.
43310         * modules/unistdio/u32-sprintf: New file.
43311         * modules/unistdio/u32-vasnprintf: New file.
43312         * modules/unistdio/u32-vasprintf: New file.
43313         * modules/unistdio/u32-vsnprintf: New file.
43314         * modules/unistdio/u32-vsprintf: New file.
43315         * modules/unistdio/u32-u32-asnprintf: New file.
43316         * modules/unistdio/u32-u32-asprintf: New file.
43317         * modules/unistdio/u32-u32-snprintf: New file.
43318         * modules/unistdio/u32-u32-sprintf: New file.
43319         * modules/unistdio/u32-u32-vasnprintf: New file.
43320         * modules/unistdio/u32-u32-vasprintf: New file.
43321         * modules/unistdio/u32-u32-vsnprintf: New file.
43322         * modules/unistdio/u32-u32-vsprintf: New file.
43323         * modules/unistdio/ulc-asnprintf-tests: New file.
43324         * modules/unistdio/ulc-vasnprintf-tests: New file.
43325         * modules/unistdio/ulc-vasprintf-tests: New file.
43326         * modules/unistdio/ulc-vsnprintf-tests: New file.
43327         * modules/unistdio/ulc-vsprintf-tests: New file.
43328         * modules/unistdio/u8-asnprintf-tests: New file.
43329         * modules/unistdio/u8-vasnprintf-tests: New file.
43330         * modules/unistdio/u8-vasprintf-tests: New file.
43331         * modules/unistdio/u8-vsnprintf-tests: New file.
43332         * modules/unistdio/u8-vsprintf-tests: New file.
43333         * modules/unistdio/u16-asnprintf-tests: New file.
43334         * modules/unistdio/u16-vasnprintf-tests: New file.
43335         * modules/unistdio/u16-vasprintf-tests: New file.
43336         * modules/unistdio/u16-vsnprintf-tests: New file.
43337         * modules/unistdio/u16-vsprintf-tests: New file.
43338         * modules/unistdio/u32-asnprintf-tests: New file.
43339         * modules/unistdio/u32-vasnprintf-tests: New file.
43340         * modules/unistdio/u32-vasprintf-tests: New file.
43341         * modules/unistdio/u32-vsnprintf-tests: New file.
43342         * modules/unistdio/u32-vsprintf-tests: New file.
43343         * MODULES.html.sh (Unicode string functions): Add the new modules.
43344
43345 2007-07-01  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/sprintf.c (sprintf): Limit the available length estimation,
43348         to avoid address wraparound.
43349         * lib/vsprintf.c (vsprintf): Likewise.
43350         * modules/sprintf-posix (Dependencies): Add stdint.
43351         * modules/vsprintf-posix (Dependencies): Likewise.
43352
43353 2007-07-01  Bruno Haible  <bruno@clisp.org>
43354
43355         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43356         Windows PATH as well. Conservative double-quoting. Comments.
43357
43358 2007-07-01  Bruno Haible  <bruno@clisp.org>
43359             Eric Blake  <ebb9@byu.net>
43360             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43361
43362         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43363         empty components in $PATH, denoting '.'.
43364
43365 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43366
43367         * gnulib-tool: Fix indentation.
43368         (func_create_megatestdir): Likewise.
43369         Report by Bruno Haible.
43370
43371 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43372
43373         Sync from Automake.
43374         * build-aux/gnupload: Fix shell portability issues with for loops.
43375         Report by Karl Berry.
43376
43377 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43378
43379         * build-aux/maint.mk (POURL): Use translationproject.org.
43380
43381 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43382             Bruno Haible  <bruno@clisp.org>
43383
43384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43385         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43386         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43387         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43388         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43389
43390 2007-06-27  Bruno Haible  <bruno@clisp.org>
43391
43392         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43393         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43394
43395 2007-06-26  Karl Berry  <karl@gnu.org>
43396
43397         * MODULES.html.sh: remove xreadlink-with-size.
43398
43399 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43400
43401         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43402         method that I hope also handles the double-include problem noted
43403         by Bruno Haible in
43404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43405
43406 2007-06-23  Bruno Haible  <bruno@clisp.org>
43407
43408         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43409         Don't let the 'mostlyclean' target fail if the last subdirectory could
43410         not be removed.
43411         Reported by Karl Berry.
43412
43413 2007-06-23  Bruno Haible  <bruno@clisp.org>
43414
43415         * gnulib-tool (echo): Add a speedier workaround for ksh.
43416         * tests/test-echo.sh: Likewise.
43417
43418 2007-06-23  Bruno Haible  <bruno@clisp.org>
43419
43420         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43421         * tests/test-echo.sh: Likewise.
43422
43423 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43424
43425         * gnulib-tool (IFS): Initialize early, so we don't set it to
43426         empty later.
43427         (self_abspathname): Rewrite algorithm to set it, reindent.
43428         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43429         (func_create_megatestdir): Merge some sed scripts.
43430
43431 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43432
43433         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43434         exposed by Sun Studio 11 cc on Solaris 8.
43435
43436 2007-06-22  Bruno Haible  <bruno@clisp.org>
43437
43438         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43439         backslashes.
43440         * tests/test-echo.sh: New file.
43441
43442 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43443
43444         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43445         simplify `sed_replace_build_aux' scripts, they are portable but
43446         echoing them with `echo' is not.
43447         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43448
43449 2007-06-21  Karl Berry  <karl@gnu.org>
43450
43451         * config/srclist.txt: guess we can't handle the licenses via
43452         srclist at the moment.
43453
43454 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43455
43456         * MODULES.html.sh: Add include_next.
43457         * modules/include_next: New file.
43458
43459 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43460
43461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43462         INCLUDE_NEXT.
43463         (gl_CHECK_NEXT_HEADERS): New macro.
43464         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43465         the obsolescent gl_ABSOLUTE_HEADER.
43466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43467         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43468         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43469         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43470         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43471         * m4/math_h.m4 (gl_MATH_H): Likewise.
43472         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43473         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43474         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43475         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43476         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43477         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43478         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43479         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43482         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43483         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43484         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43485         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43486         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43487         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43488         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43489         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43490         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43491         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43492         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43493         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43494         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43495         * lib/float_.h: Likewise.
43496         * lib/inttypes_.h: Likewise.
43497         * lib/math_.h: Likewise.
43498         * lib/search_.h: Likewise.
43499         * lib/signal_.h: Likewise.
43500         * lib/stdint_.h: Likewise.
43501         * lib/stdio_.h: Likewise.
43502         * lib/stdlib_.h: Likewise.
43503         * lib/string_.h: Likewise.
43504         * lib/sys_stat_.h: Likewise.
43505         * lib/sys_time_.h: Likewise.
43506         * lib/time_.h: Likewise.
43507         * lib/unistd_.h: Likewise.
43508         * lib/wchar_.h: Likewise.
43509         * lib/wctype_.h: Likewise.
43510         * lib/dirent_.h: Likewise.
43511         * lib/iconv_.h: Likewise.
43512         * lib/locale_.h: Likewise.
43513         * lib/netinet_in_.h: Likewise.
43514         * lib/sys_select_.h: Likewise.
43515         * lib/sys_socket_.h: Likewise.
43516         * lib/sysexits_.h: Likewise.
43517         * modules/fcntl (Depends-on): Depend on include_next, not
43518         absolute_header.
43519         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43520         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43521         * modules/fchdir: Likewise.
43522         * modules/float: Likewise.
43523         * modules/iconv_open: Likewise.
43524         * modules/inttypes: Likewise.
43525         * modules/locale: Likewise.
43526         * modules/math: Likewise.
43527         * modules/netinet_in: Likewise.
43528         * modules/search: Likewise.
43529         * modules/signal: Likewise.
43530         * modules/stdint: Likewise.
43531         * modules/stdio: Likewise.
43532         * modules/stdlib: Likewise.
43533         * modules/string: Likewise.
43534         * modules/sys_select: Likewise.
43535         * modules/sys_socket: Likewise.
43536         * modules/sys_stat: Likewise.
43537         * modules/sys_time: Likewise.
43538         * modules/sysexits: Likewise.
43539         * modules/time: Likewise.
43540         * modules/unistd: Likewise.
43541         * modules/wchar: Likewise.
43542         * modules/wctype: Likewise.
43543         * modules/sys_stat: Change maintainer to "all".
43544         * modules/unistd: Likewise.
43545
43546 2007-06-20  Karl Berry  <karl@gnu.org>
43547
43548         * config/srclist.txt: track www changes in license files.
43549
43550 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43551
43552         * build-aux/bootstrap: Remove stray dot.
43553         Make sure build_aux settings are honored when linking
43554         gnulib_extra_files.
43555
43556 2007-06-19  Eric Blake  <ebb9@byu.net>
43557
43558         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43559         Allow compilation on cygwin.
43560
43561 2007-06-19  Jim Meyering  <jim@meyering.net>
43562
43563         xreadlink-with-size: Remove module.  No longer used.
43564         Ex-callers now use xreadlink or mreadlink-with-size.
43565         * modules/xreadlink-with-size: Remove module.
43566         * lib/xreadlink-with-size.c: Remove file.
43567         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43568         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43569         just before the function definition *is* accurate.
43570
43571         Eliminate one way canonicalize_filename_mode could exit.
43572         * lib/canonicalize.c (canonicalize_filename_mode):
43573         Use mreadlink_with_size, not xreadlink_with_size.
43574
43575 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43576
43577         Detect porting problems to FreeBSD/arm, which has time_t wider than
43578         long int.  Original problem reported for GNU diff by Xin Li in
43579         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43580         * modules/getdate (Depends-on): Add intprops, verify.
43581         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43582         is an integer type no wider than long int.
43583
43584 2007-06-18  Jim Meyering  <jim@meyering.net>
43585
43586         New module: mreadlink-with-size.
43587         * MODULES.html.sh: Add mreadlink-with-size.
43588         * modules/mreadlink-with-size: New module
43589         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43590         not xreadlink-with-size.
43591         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43592
43593 2007-06-16  Bruno Haible  <bruno@clisp.org>
43594
43595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43596         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43597         Reported by Gary V. Vaughan <gary@gnu.org>.
43598
43599 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43600
43601         Revamp lchown so that it lives in unistd.h where it belongs.
43602         * lib/lchown.h: Remove.
43603         * lib/dirchownmod.c: Don't include lib/lchown.h.
43604         * lib/fchownat.c: Likewise.
43605         * lib/openat.c: Likewise.
43606         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43607         does not follow symlinks.
43608         (EOPNOTSUPP): Define if not defined.
43609         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43610         is defined to 0.
43611         (lchown): New decl.
43612         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43613         Do not check for lchown decl.
43614         Set REPLACE_LCHOWN.
43615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43616         REPLACE_LCHOWN.
43617         * modules/chown: Make it clear it follows symlinks.
43618         * modules/lchown: Make it clear it doesn't follow symlinks.
43619         (Files): Remove lib/lchown.h
43620         (Depends-on): Add unistd.
43621         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43622         (Include): Include <unistd.h>, not "lchown.h".
43623         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43624         REPLACE_LCHOWN.
43625
43626 2007-06-15  Jim Meyering  <jim@meyering.net>
43627
43628         Change license (GPL to LGPL) of fsusage and dependents.
43629         * modules/fsusage (License): Change to LGPL.
43630         * modules/full-read (License): Likewise.
43631         * modules/full-write (License): Likewise.
43632         * modules/safe-read (License): Likewise.
43633         * modules/safe-write (License): Likewise.
43634
43635 2007-06-14  Ben Pfaff  <blp@gnu.org>
43636
43637         Missing part of allocsa -> malloca transition.
43638         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43639         gl_MALLOCA.
43640
43641 2007-06-12  Bruno Haible  <bruno@clisp.org>
43642
43643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43644         to ia64, x86_64, i386.
43645         Reported by Eric Blake.
43646
43647 2007-06-12  Bruno Haible  <bruno@clisp.org>
43648
43649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43650         cross-compiling to x86_64.
43651
43652 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43653
43654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43655         glitch reported by Ralf Wildenhues in
43656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43657
43658         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43659         Vin Shelton.
43660
43661 2007-06-11  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43664         replacement string.
43665         Reported by Eric Blake.
43666
43667 2007-06-10  Bruno Haible  <bruno@clisp.org>
43668
43669         Prepare vasnprintf code for use with Unicode strings.
43670         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43671         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43672         TYPE_U32_STRING.
43673         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43674         a_u32_string variants.
43675         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43676         * lib/printf-args.c: Don't include config.h and the specification
43677         header if PRINTF_FETCHARGS is already defined.
43678         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43679         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43680         TYPE_U16_STRING, TYPE_U32_STRING.
43681         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43682         u16_directive, u16_directives, u32_directive, u32_directives): New
43683         types.
43684         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43685         New declarations.
43686         * lib/printf-parse.c: Don't include config.h and the specification
43687         header if PRINTF_PARSE is already defined. Eliminate the set of
43688         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43689         them now. Include c-ctype.h.
43690         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43691         directive and CHAR_T_ONLY_ASCII.
43692         * lib/vasnprintf.c: Don't include config.h and the specification header
43693         if VASNPRINTF is already defined.
43694         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43695         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43696         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43697         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43698         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43699         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43700         code accordingly.
43701         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43702         pad_ourselves also in this case, with the 'c' and 's' directives, and
43703         with a different notion of "width".
43704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43705
43706 2007-06-10  Bruno Haible  <bruno@clisp.org>
43707
43708         * modules/unistr/u32-mbsnlen: New file.
43709         * lib/unistr/u32-mbsnlen.c: New file.
43710
43711         * modules/unistr/u16-mbsnlen: New file.
43712         * lib/unistr/u16-mbsnlen.c: New file.
43713
43714         * modules/unistr/u8-mbsnlen: New file.
43715         * lib/unistr/u8-mbsnlen.c: New file.
43716
43717         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43718         declarations.
43719
43720 2007-06-10  Bruno Haible  <bruno@clisp.org>
43721
43722         * lib/string_.h (mbsnlen): New declaration.
43723         * lib/mbsnlen.c: New file.
43724         * m4/mbsnlen.m4: New file.
43725         * modules/mbsnlen: New file.
43726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43727         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43728         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43729
43730 2007-06-10  Bruno Haible  <bruno@clisp.org>
43731
43732         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43733
43734 2007-06-10  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43737         * lib/mbuiter.h: Likewise.
43738
43739 2007-06-10  Bruno Haible  <bruno@clisp.org>
43740
43741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43742         declaration.
43743
43744 2007-06-10  Karl Berry  <karl@gnu.org>
43745
43746         * config/srclist.txt: remove gettext entries, Bruno prefers
43747         to update individually.
43748
43749 2007-06-10  Bruno Haible  <bruno@clisp.org>
43750
43751         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43752         'maxlen'. Ensure only length + width bytes are allocated, not
43753         length + 1 + width.
43754
43755 2007-06-09  Bruno Haible  <bruno@clisp.org>
43756
43757         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43758         (CHAR_T): Remove macro.
43759         (VASNPRINTF): Update.
43760
43761 2007-06-09  Bruno Haible  <bruno@clisp.org>
43762
43763         * MODULES.html.sh (Unicode string functions): Add the new modules.
43764
43765         * modules/uniconv/u32-conv-to-enc: New file.
43766         * lib/uniconv/u32-conv-to-enc.c: New file.
43767         * modules/uniconv/u32-conv-to-enc-tests: New file.
43768         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43769
43770         * modules/uniconv/u16-conv-to-enc: New file.
43771         * lib/uniconv/u16-conv-to-enc.c: New file.
43772         * lib/uniconv/u-conv-to-enc.h: New file.
43773         * modules/uniconv/u16-conv-to-enc-tests: New file.
43774         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43775
43776         * modules/uniconv/u8-conv-to-enc: New file.
43777         * lib/uniconv/u8-conv-to-enc.c: New file.
43778         * modules/uniconv/u8-conv-to-enc-tests: New file.
43779         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43780
43781         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43782         u32_conv_to_encoding): New declarations.
43783
43784 2007-06-09  Bruno Haible  <bruno@clisp.org>
43785
43786         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43787
43788 2007-06-09  Bruno Haible  <bruno@clisp.org>
43789
43790         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43791         * modules/malloca: Renamed from modules/allocsa, updated.
43792         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43793         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43794         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43795         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43796         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43797         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43798         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43799         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43800         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43801         * modules/c-strcasestr (Depends-on): Update.
43802         * lib/c-strcasestr.c: Update.
43803         * modules/c-strstr (Depends-on): Update.
43804         * lib/c-strstr.c: Update.
43805         * modules/canonicalize-lgpl (Depends-on): Update.
43806         * lib/canonicalize-lgpl.c: Update.
43807         * modules/clean-temp (Depends-on): Update.
43808         * lib/clean-temp.c: Update.
43809         * modules/csharpcomp (Depends-on): Update.
43810         * lib/csharpcomp.c: Update.
43811         * modules/csharpexec (Depends-on): Update.
43812         * lib/csharpexec.c: Update.
43813         * modules/javacomp (Depends-on): Update.
43814         * lib/javacomp.c: Update.
43815         * modules/javaexec (Depends-on): Update.
43816         * lib/javaexec.c: Update.
43817         * modules/mbscasestr (Depends-on): Update.
43818         * lib/mbscasestr.c: Update.
43819         * modules/mbsstr (Depends-on): Update.
43820         * lib/mbsstr.c: Update.
43821         * modules/setenv (Depends-on): Update.
43822         * lib/setenv.c: Update.
43823         * modules/strcasestr (Depends-on): Update.
43824         * lib/strcasestr.c: Update.
43825         * modules/striconveha (Depends-on): Update.
43826         * lib/striconveha.c: Update.
43827         * modules/relocatable-prog-wrapper (Files): Update.
43828         * lib/relocwrapper.c: Update.
43829         * build-aux/install-reloc: Update.
43830         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43831
43832 2007-06-08  Bruno Haible  <bruno@clisp.org>
43833
43834         Port to uClibc.
43835         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43836         * lib/fpurge.c (fpurge): Likewise.
43837         * lib/freading.c (freading): Likewise.
43838         * lib/fseeko.c (rpl_fseeko): Likewise.
43839         * lib/fseterr.c (fseterr): Likewise.
43840         * lib/fwriting.c (fwriting): Likewise.
43841         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43842
43843 2007-06-08  Bruno Haible  <bruno@clisp.org>
43844
43845         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43846         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43847         * modules/gettext (Files): Add m4/intlmacosx.m4.
43848
43849 2007-06-07  Bruno Haible  <bruno@clisp.org>
43850
43851         * modules/localename-tests: New file.
43852         * tests/test-localename.c: New file.
43853
43854         New module 'localename'.
43855         * lib/localename.h: New file.
43856         * lib/localename.c: New file, from GNU gettext.
43857         * m4/localename.m4: New file.
43858         * modules/localename: New file.
43859
43860 2007-06-07  Bruno Haible  <bruno@clisp.org>
43861
43862         Work around the lack of <wchar.h> on some builds of uClibc.
43863         * doc/headers/wchar.texi: Update.
43864         * lib/wchar_.h: Include <wchar.h> only if it exists.
43865         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43866         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43867         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43868         doesn't exist.
43869         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43870         * modules/mbfile (Depends-on): Add wchar.
43871         * modules/mbiter (Depends-on): Likewise.
43872         * modules/mbuiter (Depends-on): Likewise.
43873         Reported by Simon Josefsson.
43874
43875 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43876
43877         Work around problem reported by Steven M. Schweda in
43878         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43879         Tru64 5.1B with the Compaq compiler environment installed declares
43880         an 'isblank' function but does not define it in the C library.
43881         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43882         * lib/regex_internal.h (isblank): Likewise.
43883         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43884         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43885
43886 2007-06-05  Bruno Haible  <bruno@clisp.org>
43887
43888         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43889         ia64.
43890         * modules/printf-safe: New file.
43891         * modules/fprintf-posix (Depends-on): Add printf-safe.
43892         * modules/printf-posix (Depends-on): Likewise.
43893         * modules/snprintf-posix (Depends-on): Likewise.
43894         * modules/sprintf-posix (Depends-on): Likewise.
43895         * modules/vasnprintf-posix (Depends-on): Likewise.
43896         * modules/vasprintf-posix (Depends-on): Likewise.
43897         * modules/vfprintf-posix (Depends-on): Likewise.
43898         * modules/vprintf-posix (Depends-on): Likewise.
43899         * modules/vsnprintf-posix (Depends-on): Likewise.
43900         * modules/vsprintf-posix (Depends-on): Likewise.
43901         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43902         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43903         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43904         "no" on i386, x86_64, ia64.
43905         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43906         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43907         on i386, x86_64, ia64.
43908         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43909         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43910         on i386, x86_64, ia64.
43911         * tests/test-vasnprintf-posix.c: Include float.h.
43912         (LDBL80_WORDS): New macro.
43913         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43914         on i386, x86_64, ia64.
43915         * tests/test-vasprintf-posix.c: Include float.h.
43916         (LDBL80_WORDS): New macro.
43917         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43918         on i386, x86_64, ia64.
43919         * tests/test-snprintf-posix.c: Include float.h.
43920         * tests/test-sprintf-posix.c: Likewise.
43921         * tests/test-vsnprintf-posix.c: Likewise.
43922         * tests/test-vsprintf-posix.c: Likewise.
43923
43924 2007-06-05  Bruno Haible  <bruno@clisp.org>
43925
43926         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43927         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43928         non-IEEE numbers on i386, x86_64, ia64.
43929         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43930         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43931         * tests/test-isnanl.h: Include float.h.
43932         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43933
43934 2007-06-05  Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43937         also the %a / %A. Handle the %a / %A code before this extra handling.
43938
43939 2007-06-05  Bruno Haible  <bruno@clisp.org>
43940
43941         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43942         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43943
43944 2007-06-05  Bruno Haible  <bruno@clisp.org>
43945
43946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43947         typo in variable name.
43948
43949 2007-06-05  Eric Blake  <ebb9@byu.net>
43950
43951         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43952         Reported by Simon Josefsson.
43953
43954 2007-06-04  Bruno Haible  <bruno@clisp.org>
43955
43956         Avoid test failures on some PowerPC platforms.
43957         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43958         Define differently for PowerPC.
43959         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43960         Reported by Gary V. Vaughan <gary@gnu.org>.
43961
43962 2007-06-02  Bruno Haible  <bruno@clisp.org>
43963
43964         Fix test-stdint failure on FreeBSD/ia64.
43965         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43966         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43967         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43968         * doc/headers/stdint.texi: Update.
43969
43970 2007-06-01  Bruno Haible  <bruno@clisp.org>
43971
43972         * tests/test-binary-io.c (main): Pass a third argument to open().
43973         Reported by Gary V. Vaughan <gary@gnu.org>.
43974
43975 2007-06-01  Bruno Haible  <bruno@clisp.org>
43976
43977         * doc/functions/frexpl.texi: Update for mingw.
43978
43979 2007-06-01  Bruno Haible  <bruno@clisp.org>
43980
43981         * tests/test-lseek.c (main): Disable test of errno for invalid third
43982         argument.
43983         * doc/functions/lseek.texi: Update.
43984         Reported by Gary V. Vaughan <gary@gnu.org>.
43985
43986 2007-05-28  Bruno Haible  <bruno@clisp.org>
43987
43988         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43989
43990 2007-05-31  Eric Blake  <ebb9@byu.net>
43991
43992         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43993         cross compiling.
43994
43995 2007-05-30  Eric Blake  <ebb9@byu.net>
43996         and Bruno Haible  <bruno@clisp.org>
43997
43998         Work around mingw test failures exposed by m4-1.4.9b.
43999         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
44000         * tests/test-unistd.c: Disable uid_t and git_t tests for the
44001         moment.
44002
44003 2007-05-30  Bruno Haible  <bruno@clisp.org>
44004
44005         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
44006         assuming that they are closed. Needed on HP-UX 11.
44007
44008 2007-05-29  Bruno Haible  <bruno@clisp.org>
44009
44010         Fix a problem with #include_next.
44011         * lib/dirent_.h: Split the double-inclusion guard.
44012         * lib/fcntl_.h: Likewise.
44013         * lib/float_.h: Likewise.
44014         * lib/iconv_.h: Likewise.
44015         * lib/inttypes_.h: Likewise.
44016         * lib/locale_.h: Likewise.
44017         * lib/math_.h: Likewise.
44018         * lib/netinet_in_.h: Likewise.
44019         * lib/search_.h: Likewise.
44020         * lib/signal_.h: Likewise.
44021         * lib/stdint_.h: Likewise.
44022         * lib/stdio_.h: Likewise.
44023         * lib/stdlib_.h: Likewise.
44024         * lib/string_.h: Likewise.
44025         * lib/sys_select_.h: Likewise.
44026         * lib/sys_socket_.h: Likewise.
44027         * lib/sys_stat_.h: Likewise.
44028         * lib/sys_time_.h: Likewise.
44029         * lib/sysexits_.h: Likewise.
44030         * lib/time_.h: Likewise.
44031         * lib/unistd_.h: Likewise.
44032         * lib/wchar_.h: Likewise.
44033         * lib/wctype_.h: Likewise.
44034
44035 2007-05-29  Bruno Haible  <bruno@clisp.org>
44036
44037         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
44038         for the moment.
44039
44040 2007-05-29  Bruno Haible  <bruno@clisp.org>
44041
44042         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
44043         invocation.
44044         Reported by Eric Blake.
44045
44046 2007-05-29  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
44049         compiling case.
44050
44051 2007-05-29  Eric Blake  <ebb9@byu.net>
44052             Bruno Haible  <bruno@clisp.org>
44053
44054         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
44055         cross compiles.
44056
44057 2007-05-28  Eric Blake  <ebb9@byu.net>
44058
44059         * modules/closein-tests (test_closein_LDADD): Support test on
44060         cygwin with libtool.
44061
44062 2007-05-28  Bruno Haible  <bruno@clisp.org>
44063
44064         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
44065         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44066         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44067         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44068         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44069         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44070         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44071         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44072         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44073
44074 2007-05-28  Eric Blake  <ebb9@byu.net>
44075
44076         Unconditionally include <config.h> in unit tests.
44077         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44078         * tests/test-allocsa.c, tests/test-arcfour.c,
44079         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44080         tests/test-array_list.c, tests/test-array_oset.c,
44081         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44082         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44083         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44084         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44085         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44086         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44087         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44088         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44089         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44090         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44091         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44092         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44093         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44094         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44095         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44096         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44097         test-md5.c, test-memmem.c, test-printf-posix.c,
44098         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44099         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44100         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44101         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44102         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44103         test-vasnprintf-posix2.c, test-vasnprintf.c,
44104         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44105         test-vfprintf-posix.c, test-vprintf-posix.c,
44106         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44107         test-xvasprintf.c: Likewise.
44108
44109 2007-05-28  Bruno Haible  <bruno@clisp.org>
44110
44111         * gnulib-tool (func_import): Remember the --with-tests command-line
44112         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44113         Reported by Eric Blake.
44114
44115 2007-05-28  Bruno Haible  <bruno@clisp.org>
44116
44117         * modules/ftell-tests: New file.
44118         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44119         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44120
44121         * lib/ftell.c: New file.
44122         * modules/ftell: New file.
44123         * m4/ftell.m4: New file.
44124         * doc/functions/ftell.texi: Update.
44125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44126         REPLACE_FTELL.
44127         * lib/stdio_.h (rpl_ftell): New declaration.
44128         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44129         REPLACE_FTELL.
44130
44131 2007-05-28  Eric Blake  <ebb9@byu.net>
44132
44133         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
44134
44135 2007-05-28  Bruno Haible  <bruno@clisp.org>
44136
44137         * modules/fseek-tests: New file.
44138         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
44139         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
44140
44141         * lib/fseek.c: New file.
44142         * modules/fseek: New file.
44143         * m4/fseek.m4: New file.
44144         * doc/functions/fseek.texi: Update.
44145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
44146         REPLACE_FSEEK.
44147         * lib/stdio_.h (rpl_fseek): New declaration.
44148         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
44149         REPLACE_FSEEK.
44150
44151 2007-05-28  Bruno Haible  <bruno@clisp.org>
44152
44153         * lib/stdio_.h (fflush): More comments.
44154
44155 2007-05-28  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
44158         runtime test.
44159
44160 2007-05-28  Eric Blake  <ebb9@byu.net>
44161
44162         Improve lseek module.
44163         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
44164         * lib/unistd_.h (lseek): Scale back link warning message.
44165         * tests/test-lseek.c: Beef up test.
44166         * tests/test-lseek.sh: Exercise more facets of lseek.
44167         Reported by Bruno Haible.
44168
44169 2007-05-28  Bruno Haible  <bruno@clisp.org>
44170
44171         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
44172         to define.
44173
44174 2007-05-27  Bruno Haible  <bruno@clisp.org>
44175
44176         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
44177
44178 2007-05-27  Bruno Haible  <bruno@clisp.org>
44179
44180         * modules/openmp: New file.
44181         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
44182         Noah Misch.
44183
44184 2007-05-26  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/chdir-long (Depends-on): Add fchdir.
44187         * modules/chdir-safer (Depends-on): Likewise.
44188         * modules/fts (Depends-on): Likewise.
44189         * modules/fts-lgpl (Depends-on): Likewise.
44190         * modules/openat (Depends-on): Likewise.
44191         * modules/savewd (Depends-on): Likewise.
44192
44193 2007-05-24  Eric Blake  <ebb9@byu.net>
44194
44195         Fix lseek on mingw.
44196         * modules/lseek: New module.
44197         * m4/lseek.m4: New file.
44198         * lib/lseek.c: New file.
44199         * modules/lseek-tests: New file.
44200         * tests/test-lseek.c: New file.
44201         * tests/test-lseek.sh: New file.
44202         * MODULES.html.sh: Document lseek module.
44203         * modules/fflush (Depends-on): Add lseek, fseeko.
44204         * modules/fseeko (Depends-on): Likewise.
44205         * modules/ftello (Depends-on): Likewise.
44206         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
44207         broken.
44208         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
44209         broken.
44210         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
44211         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
44212         * lib/ftello.c (rpl_ftello): Likewise.
44213         * tests/test-fseeko.c (main): Test this.
44214         * tests/test-fseeko.sh: Likewise.
44215         * tests/test-ftello.c (main): Likewise.
44216         * tests/test-ftello.sh: Likewise.
44217         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
44218         implies replacing fseek.
44219         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
44220         HAVE_FTELLO.
44221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
44222         * modules/unistd (Makefile.am): Likewise.
44223         * lib/unistd_.h (lseek): Declare a replacement.
44224         * doc/functions/lseek.texi (lseek): Document this fix.
44225         * doc/functions/fseek.texi (fseek): Likewise.
44226         * doc/functions/ftell.texi (ftell): Likewise.
44227
44228 2007-05-24  Bruno Haible  <bruno@clisp.org>
44229
44230         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
44231         in the printed representation of a NaN.
44232         * tests/test-vasprintf-posix.c (test_function): Likewise.
44233         * tests/test-snprintf-posix.h (test_function): Likewise.
44234         * tests/test-sprintf-posix.h (test_function): Likewise.
44235         Reported by Eric Blake.
44236
44237 2007-05-23  Eric Blake  <ebb9@byu.net>
44238
44239         Fix fseeko/ftello on cygwin 1.5.24.
44240         * doc/functions/fseeko.texi (fseeko): Document the fix.
44241         * doc/functions/ftello.texi (ftello): Document the fix.
44242         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
44243         * doc/functions/stdout.text (stdout): New file.
44244         * doc/functions/stderr.text (stderr): New file.
44245         * doc/gnulib.texi (Function Substitutes): Use new files.
44246         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
44247         prior to 1.7.0.
44248         * tests/test-ftello.c (main): Likewise for ftello.
44249         * tests/test-fseeko.sh: New file.
44250         * tests/test-ftello.sh: New file.
44251         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
44252         with seekable stdin.
44253         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44255         (gl_REPLACE_FSEEKO): New macro.
44256         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44257         * modules/fseeko (Files): Distribute fseeko.c.
44258         * modules/ftello (Files): Distribute ftello.c.
44259         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44260         mode.
44261         * lib/ftello.c (rpl_ftello): New file.
44262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44263         fseeko, ftello.
44264         (gl_STDIN_LARGE_OFFSET): New macro.
44265         * modules/stdio (Makefile.am): Perform the replacement.
44266         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44267
44268 2007-05-23  Bruno Haible  <bruno@clisp.org>
44269
44270         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44271         GNULIB_POSIXCHECK is defined.
44272
44273 2007-05-21  Bruno Haible  <bruno@clisp.org>
44274
44275         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44276         Check also the output for NaN arguments. When cross-compiling, guess
44277         no on IRIX.
44278         * lib/vasnprintf.c: Update comments.
44279         * tests/test-vasnprintf-posix.c (strisnan): New function.
44280         (test_function): Use it.
44281         * tests/test-vasprintf-posix.c (strisnan): New function.
44282         (test_function): Use it.
44283         * tests/test-snprintf-posix.h (strisnan): New function.
44284         (test_function): Use it.
44285         * tests/test-sprintf-posix.h (strisnan): New function.
44286         (test_function): Use it.
44287         Reported by Eric Blake.
44288
44289 2007-05-20  Bruno Haible  <bruno@clisp.org>
44290
44291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44292         numbers that fails on BeOS.
44293         * doc/functions/frexpl.texi: Update.
44294
44295 2007-05-20  Jim Meyering  <jim@meyering.net>
44296
44297         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44298         forced upon us by glibc-2.6.
44299
44300 2007-05-20  Bruno Haible  <bruno@clisp.org>
44301
44302         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44303         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44304         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44305         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44306         NEED_PRINTF_INFINITE.
44307         (is_infinitel): New function.
44308         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44310         gl_PREREQ_VASNPRINTF_INFINITE.
44311         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44313         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44314         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44315         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44316         gl_PREREQ_VASNPRINTF_INFINITE.
44317         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44318         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44319         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44322         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44323         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44324         * doc/functions/fprintf.texi: Update.
44325         * doc/functions/printf.texi: Update.
44326         * doc/functions/snprintf.texi: Update.
44327         * doc/functions/sprintf.texi: Update.
44328         * doc/functions/vfprintf.texi: Update.
44329         * doc/functions/vprintf.texi: Update.
44330         * doc/functions/vsnprintf.texi: Update.
44331         * doc/functions/vsprintf.texi: Update.
44332
44333 2007-05-20  Bruno Haible  <bruno@clisp.org>
44334
44335         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44336         was not found in libc.
44337         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44338
44339 2007-05-20  Bruno Haible  <bruno@clisp.org>
44340
44341         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44342         printed as "-nan" instead of "nan".
44343         * tests/test-vasprintf-posix.c (test_function): Likewise.
44344         * tests/test-snprintf-posix.h (test_function): Likewise.
44345         * tests/test-sprintf-posix.h (test_function): Likewise.
44346         Needed for HP-UX 11.
44347
44348 2007-05-20  Jim Meyering  <jim@meyering.net>
44349
44350         Fix buggy test for the fchownat-deref bug.
44351         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44352         symlink required for the run-test.  Without it, this test would
44353         always declare that fchownat doesn't work, and client code would
44354         unnecessarily use the replacement function with fixed libc.
44355         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44356         Reported by Greg Schafer.
44357
44358 2007-05-19  Bruno Haible  <bruno@clisp.org>
44359
44360         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44361         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44362         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44363         Needed for IRIX 6.5 and Solaris 2.5.1.
44364
44365 2007-05-19  Bruno Haible  <bruno@clisp.org>
44366
44367         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44368         (test_function): Skip tests involving -0.0 on platforms where
44369         -0.0 = 0.0.
44370         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44371         (test_function): Skip tests involving -0.0 on platforms where
44372         -0.0 = 0.0.
44373         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44374         (test_function): Skip tests involving -0.0 on platforms where
44375         -0.0 = 0.0.
44376         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44377         (test_function): Skip tests involving -0.0 on platforms where
44378         -0.0 = 0.0.
44379         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44380         tests.
44381         * tests/test-printf-posix.h (test_function): Likewise.
44382         * tests/test-printf-posix.output: Remove all -0.0 related results.
44383         Needed for IRIX 6.5.
44384
44385 2007-05-19  Bruno Haible  <bruno@clisp.org>
44386
44387         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44388         printed as "nan0x7fffffff" instead of "nan".
44389         * tests/test-vasprintf-posix.c (test_function): Likewise.
44390         * tests/test-snprintf-posix.h (test_function): Likewise.
44391         * tests/test-sprintf-posix.h (test_function): Likewise.
44392         * tests/test-fprintf-posix.h (NaN): Remove macro.
44393         (test_function): Remove all NaN related tests.
44394         * tests/test-printf-posix.h (NaN): Remove macro.
44395         (test_function): Remove all NaN related tests.
44396         * tests/test-printf-posix.output: Remove all NaN related results.
44397         Needed for IRIX 6.5.
44398
44399 2007-05-19  Bruno Haible  <bruno@clisp.org>
44400
44401         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44403
44404 2007-05-19  Bruno Haible  <bruno@clisp.org>
44405
44406         * lib/float_.h: New file.
44407         * m4/float_h.m4: New file.
44408         * modules/float: New file.
44409         * modules/isnanl (Dependencies): Add float.
44410         * modules/isnanl-nolibm (Dependencies): Likewise.
44411         * modules/mathl (Dependencies): Likewise.
44412         * modules/printf-frexpl (Dependencies): Likewise.
44413         * modules/signbit (Dependencies): Likewise.
44414         * modules/vasnprintf (Dependencies): Likewise.
44415         * doc/headers/float.texi: Update.
44416
44417 2007-05-19  Jim Meyering  <jim@meyering.net>
44418
44419         * lib/utimens.c (gl_futimens): Rename from futimens,
44420         now that glibc-2.6 declares futimens.
44421         * lib/utimens.h: Likewise.
44422
44423 2007-05-19  Bruno Haible  <bruno@clisp.org>
44424
44425         Avoid test failures on mingw.
44426         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44427         * tests/test-printf-posix.sh: Likewise.
44428         * tests/test-vfprintf-posix.sh: Likewise.
44429         * tests/test-vprintf-posix.sh: Likewise.
44430
44431 2007-05-19  Bruno Haible  <bruno@clisp.org>
44432
44433         Fix *printf result for NaN, Inf, -0.0 on mingw.
44434         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44435         * lib/vasnprintf.c: Include math.h and isnan.h.
44436         (is_infinite_or_zero): New function.
44437         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44438         values in the %f, %F, %e, %E, %g, %G directives.
44439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44441         gl_PRINTF_INFINITE and test its result. Invoke
44442         gl_PREREQ_VASNPRINTF_INFINITE.
44443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44450         * doc/functions/fprintf.texi: Update.
44451         * doc/functions/printf.texi: Update.
44452         * doc/functions/snprintf.texi: Update.
44453         * doc/functions/sprintf.texi: Update.
44454         * doc/functions/vfprintf.texi: Update.
44455         * doc/functions/vprintf.texi: Update.
44456         * doc/functions/vsnprintf.texi: Update.
44457         * doc/functions/vsprintf.texi: Update.
44458
44459 2007-05-19  Bruno Haible  <bruno@clisp.org>
44460
44461         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44462         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44463         Instead of multiplying with 10^k, set extra_zeroes to k.
44464         (scale10_round_long_double): Remove function.
44465
44466 2007-05-18  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44469         introduced on 2007-05-06.
44470
44471 2007-05-18  Bruno Haible  <bruno@clisp.org>
44472
44473         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44474         %g directives.
44475         * tests/test-vasprintf-posix.c (test_function): Likewise.
44476         * tests/test-snprintf-posix.h (test_function): Likewise.
44477         * tests/test-sprintf-posix.h (test_function): Likewise.
44478
44479 2007-05-18  Bruno Haible  <bruno@clisp.org>
44480
44481         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44482         (strmatch): New function.
44483         (test_function): Test the %f directive on numbers of various exponents.
44484         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44485         (strmatch): New function.
44486         (test_function): Test the %f directive on numbers of various exponents.
44487         * tests/test-snprintf-posix.h (strmatch): New function.
44488         (test_function): Test the %f directive on numbers of various exponents.
44489         * tests/test-sprintf-posix.h (strmatch): New function.
44490         (test_function): Test the %f directive on numbers of various exponents.
44491         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44492         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44493         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44494         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44495
44496 2007-05-18  Bruno Haible  <bruno@clisp.org>
44497
44498         Add support for 'long double' number output.
44499         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44500         * lib/vasnprintf.c: Include math.h and float+.h.
44501         (mp_limb_t): New type.
44502         (GMP_LIMB_BITS): New macro.
44503         (mp_twolimb_t): New type.
44504         (GMP_TWOLIMB_BITS): New macro.
44505         (mpn_t): New type.
44506         (multiply, divide, convert_to_decimal, decode_long_double,
44507         scale10_round_long_double, scale10_round_decimal_long_double,
44508         floorlog10l): New functions.
44509         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44510         for the %f, %F, %e, %E, %g, %G directives.
44511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44513         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44514         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44522         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44523         * modules/snprintf-posix (Depends-on): Likewise.
44524         * modules/sprintf-posix (Depends-on): Likewise.
44525         * modules/vasnprintf-posix (Depends-on): Likewise.
44526         * modules/vasprintf-posix (Depends-on): Likewise.
44527         * modules/vfprintf-posix (Depends-on): Likewise.
44528         * modules/vsnprintf-posix (Depends-on): Likewise.
44529         * modules/vsprintf-posix (Depends-on): Likewise.
44530         * modules/vasnprintf (Files): Add lib/float+.h.
44531         * doc/functions/fprintf.texi: Update.
44532         * doc/functions/printf.texi: Update.
44533         * doc/functions/snprintf.texi: Update.
44534         * doc/functions/sprintf.texi: Update.
44535         * doc/functions/vfprintf.texi: Update.
44536         * doc/functions/vprintf.texi: Update.
44537         * doc/functions/vsnprintf.texi: Update.
44538         * doc/functions/vsprintf.texi: Update.
44539
44540 2007-05-18  Bruno Haible  <bruno@clisp.org>
44541
44542         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44543
44544 2007-05-18  Bruno Haible  <bruno@clisp.org>
44545
44546         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44547         for printing 64-bit integers. Needed for mingw.
44548
44549 2007-05-18  Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44552         gl_FUNC_FREXPL_WORKS.
44553         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44554
44555 2007-05-18  Bruno Haible  <bruno@clisp.org>
44556
44557         * modules/frexpl-nolibm-tests: New file.
44558
44559         * modules/frexpl-nolibm: New file.
44560         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44561
44562 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44563
44564         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44565         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44566         GCC 4.2, which otherwise issues a lot of warnings.
44567         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44568         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44569         Likewise.
44570         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44571         * modules/iconv_open (iconv.h): Likewise.
44572         * modules/locale (locale.h): Likewise.
44573         * modules/netinet_in (netinet/in.h): Likewise.
44574         * modules/sys_select (sys_select.h): Likewise.
44575         * modules/sys_socket (sys/socket.h): Likewise.
44576         * modules/sys_stat (sys/stat.h): Likewise.
44577         * modules/sysexits (sysexits.h): Likewise.
44578         * modules/unistd (unistd.h): Likewise.
44579
44580 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44581
44582         * modules/closein-tests (Makefile.am): Distribute
44583         `test-closein.sh'.
44584
44585 2007-05-17  Bruno Haible  <bruno@clisp.org>
44586
44587         * tests/test-printf-posix.output: Renamed from
44588         tests/test-fprintf-posix.out.
44589         * modules/fprintf-posix-tests: Update.
44590         * modules/printf-posix-tests: Update.
44591         * modules/vfprintf-posix-tests: Update.
44592         * modules/vprintf-posix-tests: Update.
44593         * tests/test-fprintf-posix.sh: Update.
44594         * tests/test-printf-posix.sh: Update.
44595         * tests/test-vfprintf-posix.sh: Update.
44596         * tests/test-vprintf-posix.sh: Update.
44597         Reported by Ralf Wildenhues.
44598
44599 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44600
44601         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44602         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44603         GCC 4.2, which otherwise issues a lot of warnings.
44604         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44605         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44606         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44607         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44608         it should no longer be needed.
44609         * lib/string_.h: Likewise.
44610         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44611         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44612         * modules/inttypes (inttypes.h): Likewise.
44613         * modules/math (math.h): Likewise.
44614         * modules/search (search.h): Likewise.
44615         * modules/signal (signal.h): Likewise.
44616         * modules/stdint (stdint.h): Likewise.
44617         * modules/stdio (stdio.h): Likewise.
44618         * modules/stdlib (stdlib.h): Likewise.
44619         * modules/string (string.h): Likewise.
44620         * modules/sys_time (sys/time.h): Likewise.
44621         * modules/time (time.h): Likewise.
44622         * modules/wchar (wchar.h): Likewise.
44623         * modules/wctype (wtype.h): Likewise.
44624
44625 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44626
44627         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44628
44629 2007-05-13  Bruno Haible  <bruno@clisp.org>
44630
44631         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44632         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44633         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44634         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44635         (gl_PREREQ_STRTOK_R): Don't require it here.
44636
44637 2007-05-13  Bruno Haible  <bruno@clisp.org>
44638
44639         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44640         when used in C++ mode.
44641
44642 2007-05-12  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/linebuffer.h: Tweak doc.
44645         * lib/linebuffer.c: Likewise.
44646
44647 2007-05-12  James Youngman  <jay@gnu.org>
44648
44649         * lib/linebuffer.c (readlinebuffer_delim): New function,
44650         like readlinebuffer, but use a caller-specified delimiter.
44651         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44652         as the delimiter.
44653         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44654
44655 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44656
44657         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44658         * modules/openat (Files): Remove openat-die.c.
44659         (Depends-on): Add openat-die.
44660         * modules/openat-die: New module.
44661
44662 2007-05-06  Bruno Haible  <bruno@clisp.org>
44663
44664         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44665         Update with info about Cygwin.
44666         * doc/functions/fprintf.texi: Update.
44667         * doc/functions/printf.texi: Update.
44668         * doc/functions/snprintf.texi: Update.
44669         * doc/functions/sprintf.texi: Update.
44670         * doc/functions/vfprintf.texi: Update.
44671         * doc/functions/vprintf.texi: Update.
44672         * doc/functions/vsnprintf.texi: Update.
44673         * doc/functions/vsprintf.texi: Update.
44674         Reported by Eric Blake.
44675
44676 2007-05-06  Bruno Haible  <bruno@clisp.org>
44677
44678         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44679         padding ourselves for the floating-point directives.
44680         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44683         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44684         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44685         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44686         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44687         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44689         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44691         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44692         * tests/test-snprintf-posix.h (test_function): Also check the width
44693         and some flags in the %f directive.
44694         * tests/test-sprintf-posix.h (test_function): Likewise.
44695         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44696         * tests/test-vasprintf-posix.c (test_function): Likewise.
44697         * doc/functions/fprintf.texi: Update.
44698         * doc/functions/printf.texi: Update.
44699         * doc/functions/snprintf.texi: Update.
44700         * doc/functions/sprintf.texi: Update.
44701         * doc/functions/vfprintf.texi: Update.
44702         * doc/functions/vprintf.texi: Update.
44703         * doc/functions/vsnprintf.texi: Update.
44704         * doc/functions/vsprintf.texi: Update.
44705
44706 2007-05-06  Bruno Haible  <bruno@clisp.org>
44707
44708         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44709         pass the ' flag character to sprintf or snprintf.
44710         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44712         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44713         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44714         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44716         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44722         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44723         flag.
44724         * tests/test-sprintf-posix.h (test_function): Likewise.
44725         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44726         * tests/test-vasprintf-posix.c (test_function): Likewise.
44727         * doc/functions/fprintf.texi: Update.
44728         * doc/functions/printf.texi: Update.
44729         * doc/functions/snprintf.texi: Update.
44730         * doc/functions/sprintf.texi: Update.
44731         * doc/functions/vfprintf.texi: Update.
44732         * doc/functions/vprintf.texi: Update.
44733         * doc/functions/vsnprintf.texi: Update.
44734         * doc/functions/vsprintf.texi: Update.
44735
44736 2007-05-01  Bruno Haible  <bruno@clisp.org>
44737
44738         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44739
44740 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44741
44742         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44743         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44744
44745 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44746
44747         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44748         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44750
44751 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44752
44753         * lib/argp-help.c (struct hol_entry): New member `ord'.
44754         (HOL_ENTRY_PTRCMP): Use ord for comparison
44755         (hol_sort): Initialize ord.
44756
44757 2007-05-01  Bruno Haible  <bruno@clisp.org>
44758
44759         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44760         Reported by Eric Blake.
44761         * doc/gnulib.texi (Function Substitutes): Update.
44762
44763 2007-05-01  Bruno Haible  <bruno@clisp.org>
44764
44765         * doc/functions.texi: Remove file, now redundant through
44766         doc/functions/*.texi.
44767
44768 2007-05-01  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/argp (Depends-on): Add sleep.
44771
44772 2007-05-01  Bruno Haible  <bruno@clisp.org>
44773
44774         * modules/sleep-tests: New file.
44775         * tests/test-sleep.c: New file.
44776
44777         * modules/sleep: New file.
44778         * lib/sleep.c: New file.
44779         * m4/sleep.m4: New file.
44780         * lib/unistd_.h (sleep): New declaration.
44781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44782         HAVE_SLEEP.
44783         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44784         * doc/functions/sleep.texi: Document the sleep module.
44785
44786 2007-05-01  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/sigprocmask.h: Remove file.
44789         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44790         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44791         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44792         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44793         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44794         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44795         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44796         HAVE_SIGSET_T as a shell variable.
44797         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44798         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44799         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44800         (Depends-on): Add signal. Remove verify.
44801         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44802         (Include): Mention <signal.h> instead of sigprocmask.h.
44803         * NEWS: Mention the change.
44804         * lib/fatal-signal.c: Don't include sigprocmask.h.
44805
44806 2007-05-01  Bruno Haible  <bruno@clisp.org>
44807
44808         * modules/signal: New file.
44809         * lib/signal_.h: New file.
44810         * m4/signal_h.m4: New file.
44811
44812 2007-05-01  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44815         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44816         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44817         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44818
44819 2007-05-01  Bruno Haible  <bruno@clisp.org>
44820
44821         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44822         configure time.
44823         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44824         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44825         * modules/sys_stat (Makefile.am): Substitute their values into
44826         sys/stat.h.
44827
44828 2007-05-01  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44831         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44832         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44833
44834 2007-05-01  Bruno Haible  <bruno@clisp.org>
44835
44836         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44837         'assert' module here.
44838
44839 2007-05-01  Bruno Haible  <bruno@clisp.org>
44840
44841         * doc/functions/*.texi: New files.
44842         * doc/functions/google-ranking.txt: New file.
44843         * doc/gnulib.texi (Function Substitutes): New chapter.
44844         (ctime, inet_ntoa): Remove sections.
44845         * doc/ctime.texi: Remove file.
44846         * doc/inet_ntoa.texi: Remove file.
44847         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44848         dependencies.
44849         (%.info): New rule, specifying a --reference-limit.
44850
44851 2007-05-01  Bruno Haible  <bruno@clisp.org>
44852
44853         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44854
44855 2007-05-01  Bruno Haible  <bruno@clisp.org>
44856
44857         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44858         the portability of 'mkdir' to mingw systems.
44859
44860 2007-05-01  Bruno Haible  <bruno@clisp.org>
44861
44862         * doc/headers/google-ranking.txt: New file.
44863
44864 2007-04-30  Eric Blake  <ebb9@byu.net>
44865
44866         Prefer fseeko to fseek.
44867         * modules/getpass (Depends-on): Add fseeko.
44868         * lib/getpass.c (getpass): Use fseeko, not fseek.
44869
44870 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44871
44872         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44873         assumes the sorting is stable, while most qsort implementations
44874         are not.  Use argument addresses to ensure they never compare as
44875         equal.
44876
44877         * tests/test-argp-2.sh (usage-indent test): Fix output
44878         (func_compare): Restore diff options
44879         * tests/test-argp.c: Restore #include "progname.h"
44880
44881 2007-04-29  Bruno Haible  <bruno@clisp.org>
44882
44883         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44885         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44887         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44888         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44889         (TESTS, check_PROGRAMS): Add test-snprintf.
44890         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44891         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44892         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44893         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44894         assertions that fail on HP-UX, OSF/1, or IRIX.
44895         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44896
44897 2007-04-29  Bruno Haible  <bruno@clisp.org>
44898
44899         * MODULES.html.sh (posix_functions): Remove 'contents'.
44900
44901 2007-04-29  Karl Berry  <karl@gnu.org>
44902
44903         * config/srclist.txt (gendocs_template_min): new entry.
44904
44905 2007-04-29  Bruno Haible  <bruno@clisp.org>
44906
44907         Work around fpurge bug on BSD systems.
44908         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44909         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44910         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44911         fpurge to rpl_fpurge if the system already has this function.
44912         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44913         the case where the system already has this function. Correct invariants
44914         on BSD systems.
44915         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44916         BSD systems.
44917
44918 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44919
44920         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44921         proposed by Sven Verdoolaege.
44922
44923         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44924         options.
44925         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44926         (usage and help tests): Update
44927
44928 2007-04-29  Bruno Haible  <bruno@clisp.org>
44929
44930         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44931         Print more information in case of failure. Disable a test on BeOS.
44932
44933 2007-04-29  Bruno Haible  <bruno@clisp.org>
44934
44935         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44936         This helps debugging on systems on which no gdb is available.
44937
44938 2007-04-29  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/freading.h: Improve comments.
44941         * lib/fwriting.h: Likewise.
44942         * tests/test-freading.c (main): Don't check freading immediately after
44943         repositioning. Needed for glibc.
44944
44945 2007-04-29  Bruno Haible  <bruno@clisp.org>
44946
44947         * lib/freading.c (freading): Trivial simplification.
44948
44949 2007-04-28  Bruno Haible  <bruno@clisp.org>
44950
44951         * tests/test-fwriting.c (main): Also test the interaction between
44952         fflush and fwriting.
44953         * modules/fwriting-tests (Depends-on): Add fflush.
44954
44955         * tests/test-freading.c (main): Also test the interaction between
44956         fflush and freading.
44957         * modules/freading-tests (Depends-on): Add fflush.
44958
44959 2007-04-28  Bruno Haible  <bruno@clisp.org>
44960
44961         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44962         fseeko and ftello.
44963         Suggested by Eric Blake.
44964
44965 2007-04-28  Jim Meyering  <jim@meyering.net>
44966
44967         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44968         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44969         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44970
44971 2007-04-27  Eric Blake  <ebb9@byu.net>
44972
44973         * doc/headers/assert.texi (assert.h): Document assert module use.
44974
44975 2007-04-27  Bruno Haible  <bruno@clisp.org>
44976
44977         * doc/headers/*.texi: New files.
44978         * doc/gnulib.texi (Header File Substitutes): New chapter.
44979         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44980         dependencies.
44981         (standards.info ,standards.html, standards.dvi): Update dependencies.
44982         (mostlyclean, clean): New targets.
44983
44984 2007-04-27  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44987         * modules/sysexits (Files, Makefile.am): Update.
44988
44989         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44990         * modules/sys_socket (Files, Makefile.am): Update.
44991
44992         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44993         * modules/sys_stat (Files, Makefile.am): Update.
44994
44995 2007-04-27  Eric Blake  <ebb9@byu.net>
44996
44997         * lib/freading.h: Improve comments.
44998         * lib/fwriting.h: Likewise.
44999         * lib/fflush.c: Likewise.
45000
45001         Fix closein for mingw.
45002         * modules/closein-tests: Add tests for closein.
45003         * tests/test-closein.c: New file.
45004         * tests/test-closein.sh: Likewise.
45005         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
45006         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
45007
45008 2007-04-27  Bruno Haible  <bruno@clisp.org>
45009
45010         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
45011         version is < 6.
45012         * lib/math_.h [__DECC]: Likewise.
45013         * lib/stdio_.h [__DECC]: Likewise.
45014         * lib/stdlib_.h [__DECC]: Likewise.
45015         * lib/string_.h [__DECC]: Likewise.
45016         * lib/time_.h [__DECC]: Likewise.
45017         * lib/wchar_.h [__DECC]: Likewise.
45018         * lib/wctype_.h [__DECC]: Likewise.
45019
45020 2007-04-27  Bruno Haible  <bruno@clisp.org>
45021
45022         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
45023
45024 2007-04-27  Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/fflush.c: Add comments.
45027         * modules/fpurge-tests (Depends-on): Add fflush.
45028         * modules/freadable-tests (Depends-on): Likewise.
45029         * modules/fwritable-tests (Depends-on): Likewise.
45030
45031 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
45032
45033         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
45034         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
45035         Report by Bruno Haible <bruno@clisp.org>.
45036
45037 2007-04-26  Eric Blake  <ebb9@byu.net>
45038
45039         Fix fflush on mingw.
45040         * modules/fflush (Depends-on): Add freading.
45041         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
45042         but unread data.
45043
45044 2007-04-26  Eric Blake  <ebb9@byu.net>
45045         and Bruno Haible  <bruno@clisp.org>
45046
45047         Implement freading and fwriting.
45048         * lib/freading.c: New file.
45049         * lib/freading.h: Likewise.
45050         * m4/freading.m4: Likewise.
45051         * modules/freading: Likewise.
45052         * modules/freading-tests: Likewise.
45053         * tests/test-freading.c: Likewise.
45054         * lib/fwriting.c: New file.
45055         * lib/fwriting.h: Likewise.
45056         * m4/fwriting.m4: Likewise.
45057         * modules/fwriting: Likewise.
45058         * modules/fwriting-tests: Likewise.
45059         * tests/test-fwriting.c: Likewise.
45060         * MODULES.html.sh (File stream based Input/Output): Mention them.
45061
45062 2007-04-26  Bruno Haible  <bruno@clisp.org>
45063
45064         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
45065         'long' when we assume it.
45066         Suggested by Eric Blake.
45067
45068 2007-04-26  Bruno Haible  <bruno@clisp.org>
45069
45070         Ensure fseeko, ftello are declared on glibc systems.
45071         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
45072         * modules/fseeko (configure.ac-early): Likewise.
45073         * modules/ftello (configure.ac-early): Likewise.
45074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45075         AC_FUNC_FSEEKO for this.
45076         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45077         (gl_CHECK_FSEEKO): Remove macro.
45078
45079 2007-04-26  Bruno Haible  <bruno@clisp.org>
45080
45081         * tests/test-fflush.c (main): Also check the ftell result after
45082         fflush and fseek/fseeko.
45083         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45084         file descriptor position cache in the stream.
45085         * lib/fseeko.c (rpl_fseeko): Likewise.
45086
45087 2007-04-26  Bruno Haible  <bruno@clisp.org>
45088
45089         * modules/fflush-tests (Depends-on): Add fseeko.
45090
45091 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45092             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45093
45094         * lib/argz_.h: ensure error_t definition is obtained in same
45095         mechanism system argz.h would have.
45096         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45097         argz facilities are known bad.  Err on the side of caution if
45098         cross-compiling.
45099
45100 2007-04-25  Eric Blake  <ebb9@byu.net>
45101
45102         * lib/fpurge.c (includes): Use stdlib.h for free.
45103         * tests/test-fflush.c (main): Also test fflush-fseeko.
45104
45105 2007-04-25  Bruno Haible  <bruno@clisp.org>
45106
45107         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45108         * lib/fseeko.c: New file.
45109         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45110         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45111         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45112         gl_FUNC_FSEEKO.
45113         (gl_FUNC_FSEEKO): Invoke it.
45114         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45115         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45116         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45117
45118 2007-04-25  Bruno Haible  <bruno@clisp.org>
45119
45120         * modules/fflush (Depends-on): Add ftello.
45121
45122 2007-04-25  Bruno Haible  <bruno@clisp.org>
45123
45124         * modules/ftello-tests: New file.
45125         * tests/test-ftello.c: New file.
45126
45127         * modules/ftello: New file.
45128         * m4/ftello.m4: New file.
45129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
45130         HAVE_FTELLO.
45131         * lib/stdio_.h (ftello): New declaration.
45132         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
45133         HAVE_FTELLO.
45134
45135 2007-04-25  Bruno Haible  <bruno@clisp.org>
45136
45137         * modules/fseeko-tests: New file.
45138         * tests/test-fseeko.c: New file.
45139
45140         * modules/fseeko: New file.
45141         * m4/fseeko.m4: New file.
45142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
45143         HAVE_FSEEKO.
45144         * lib/stdio_.h (fseeko): New declaration.
45145         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
45146         HAVE_FSEEKO.
45147
45148 2007-04-25  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
45151
45152 2007-04-25  Bruno Haible  <bruno@clisp.org>
45153
45154         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
45155         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
45156         * tests/test-unistd.c: Likewise.
45157         * tests/test-fcntl.c: Likewise.
45158
45159 2007-04-23  Eric Blake  <ebb9@byu.net>
45160
45161         * lib/fflush.c: Fix missing include.
45162         Reported by Bruno Haible.
45163
45164 2007-04-23  Bruno Haible  <bruno@clisp.org>
45165
45166         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
45167         Reported by Eric Blake.
45168
45169 2007-04-23  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
45172
45173 2007-04-23  Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
45176
45177 2007-04-23  Bruno Haible  <bruno@clisp.org>
45178
45179         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
45180         Needed on HP-UX 11.
45181
45182 2007-04-16  Eric Blake  <ebb9@byu.net>
45183
45184         Make fflush rely on fpurge.
45185         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
45186         open coding all variants.
45187         * modules/fflush (Depends-on): Add fpurge and unistd.
45188         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
45189         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
45190
45191         Fix --with-tests compilation on cygwin.
45192         * modules/argmatch-tests (Makefile.am): List gnulib library first
45193         in LDADD.
45194         * modules/argp-tests (Makefile.am): Likewise.
45195         * modules/array-list-tests (Makefile.am): Likewise.
45196         * modules/array-oset-tests (Makefile.am): Likewise.
45197         * modules/avltree-list-tests (Makefile.am): Likewise.
45198         * modules/avltree-oset-tests (Makefile.am): Likewise.
45199         * modules/avltreehash-list-tests (Makefile.am): Likewise.
45200         * modules/carray-list-tests (Makefile.am): Likewise.
45201         * modules/dirname-tests (Makefile.am): Likewise.
45202         * modules/frexp-tests (Makefile.am): Likewise.
45203         * modules/isnanl-tests (Makefile.am): Likewise.
45204         * modules/linked-list-tests (Makefile.am): Likewise.
45205         * modules/linkedhash-list-tests (Makefile.am): Likewise.
45206         * modules/lock-tests (Makefile.am): Likewise.
45207         * modules/rbtree-list-tests (Makefile.am): Likewise.
45208         * modules/rbtree-oset-tests (Makefile.am): Likewise.
45209         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
45210         * modules/tls-tests (Makefile.am): Likewise.
45211         * modules/tsearch-tests (Makefile.am): Likewise.
45212         * modules/xvasprintf-tests (Makefile.am): Likewise.
45213
45214         Fix fpurge for cygwin.
45215         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
45216         value.
45217         * modules/fpurge-tests (Depends-on): Clean up trash.
45218
45219 2007-04-16  Simon Josefsson  <simon@josefsson.org>
45220
45221         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
45222
45223         * m4/autobuild.m4: Re-indent.
45224
45225 2007-04-13  Bruno Haible  <bruno@clisp.org>
45226
45227         * modules/fpurge-tests: New file.
45228         * tests/test-fpurge.c: New file.
45229
45230         * modules/fpurge: New file.
45231         * lib/fpurge.h: New file.
45232         * lib/fpurge.c: New file.
45233         * m4/fpurge.m4: New file.
45234
45235 2007-04-13  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/fbufmode-tests: New file.
45238         * tests/test-fbufmode.c: New file.
45239
45240         * modules/fbufmode: New file.
45241         * lib/fbufmode.h: New file.
45242         * lib/fbufmode.c: New file.
45243         * m4/fbufmode.m4: New file.
45244
45245 2007-04-13  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/fwritable-tests: New file.
45248         * tests/test-fwritable.c: New file.
45249
45250         * modules/fwritable: New file.
45251         * lib/fwritable.h: New file.
45252         * lib/fwritable.c: New file.
45253         * m4/fwritable.m4: New file.
45254
45255 2007-04-13  Bruno Haible  <bruno@clisp.org>
45256
45257         * modules/freadable-tests: New file.
45258         * tests/test-freadable.c: New file.
45259
45260         * modules/freadable: New file.
45261         * lib/freadable.h: New file.
45262         * lib/freadable.c: New file.
45263         * m4/freadable.m4: New file.
45264
45265 2007-04-13  Bruno Haible  <bruno@clisp.org>
45266
45267         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45268         MOSTLYCLEANFILES.
45269
45270 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45271
45272         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45273         gzip bootstrap.conf to avoid dragging in i18n machinery.
45274         (gnulib_tool_option): Use it.
45275
45276 2007-04-13  Bruno Haible  <bruno@clisp.org>
45277
45278         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45279         %F directives.
45280         * tests/test-vasprintf-posix.c (test_function): Likewise.
45281         * tests/test-snprintf-posix.h (test_function): Likewise.
45282         * tests/test-sprintf-posix.h (test_function): Likewise.
45283         * tests/test-fprintf-posix.h (test_function): Likewise.
45284         * tests/test-printf-posix.h (test_function): Likewise.
45285         * tests/test-fprintf-posix.out: Likewise.
45286
45287 2007-04-13  Bruno Haible  <bruno@clisp.org>
45288
45289         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45290         * modules/tls-tests (configure.ac): Likewise.
45291         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45292
45293 2007-04-13  Bruno Haible  <bruno@clisp.org>
45294
45295         * lib/tls.c (glthread_tls_get): Fix return type.
45296         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45297
45298 2007-04-12  Eric Blake  <ebb9@byu.net>
45299
45300         * modules/gettime (Depends-on): Remove gettime.
45301         Reported by Dmitry V. Levin.
45302
45303 2007-04-12  Bruno Haible  <bruno@clisp.org>
45304
45305         * modules/fflush (Include): Mention <stdio.h>.
45306         * modules/strtoimax (Include): Mention <inttypes.h>.
45307         * modules/strtoumax (Include): Likewise.
45308
45309 2007-04-12  Eric Blake  <ebb9@byu.net>
45310
45311         * .cvsignore: New file.
45312         * .gitignore: Likewise.
45313
45314 2007-04-12  Bruno Haible  <bruno@clisp.org>
45315
45316         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45317         not before, since $(LDADD) often contains libgnu.a.
45318         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45319         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45320         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45321         Needed on Cygwin.
45322
45323 2007-04-12  Eric Blake  <ebb9@byu.net>
45324
45325         Work around glibc's failure to flush stdin on fclose.
45326         * lib/closein.c (close_stdin): Flush stdin before closing.
45327
45328         Work around glibc's failure to reset seekable stdin on exit.
45329         * modules/closein: New module.
45330         * lib/closein.c: New file.
45331         * lib/closein.h: Likewise.
45332         * m4/closein.m4: Likewise.
45333         * MODULES.html.sh (File stream based Input/Output): Document it.
45334
45335 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45336
45337         * gnulib-tool: Rename generated 'autobuild' script to
45338         'do-autobuild' in --create-megatestdir output.
45339
45340         * doc/gnulib.texi (Build robot for gnulib): Fix.
45341
45342 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45343
45344         * modules/sysexits (Depends-on): Add absolute-header.
45345
45346 2007-04-12  Eric Blake  <ebb9@byu.net>
45347
45348         No need to preserve errno on success.
45349         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45350         Reported by Bruno Haible.
45351
45352 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45353
45354         * MODULES.html.sh (Support for maintaining and releasing
45355         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45356
45357 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45358
45359         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45360
45361 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45362
45363         * modules/autobuild: New module.
45364
45365         * m4/autobuild.m4: New file.
45366
45367 2007-04-11  Bruno Haible  <bruno@clisp.org>
45368
45369         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45370         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45371         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45380         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45381         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45383         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45384         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45386         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45387         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45389         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45390         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45392         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45393         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45395         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45396         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45397         Reported by Eric Blake.
45398
45399 2007-04-11  Bruno Haible  <bruno@clisp.org>
45400
45401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45402
45403 2007-04-10  Bruno Haible  <bruno@clisp.org>
45404
45405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45406         for NaN and Infinity. Needed on FreeBSD 6.1.
45407         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45408         regarding results for "%010a" of Infinity and NaN.
45409         * tests/test-vasprintf-posix.c (test_function): Likewise.
45410         * tests/test-snprintf-posix.h (test_function): Likewise.
45411         * tests/test-sprintf-posix.h (test_function): Likewise.
45412         * tests/test-fprintf-posix.h (test_function): Likewise.
45413         * tests/test-printf-posix.h (test_function): Likewise.
45414         * tests/test-fprintf-posix.out: Likewise.
45415
45416 2007-04-10  Bruno Haible  <bruno@clisp.org>
45417
45418         * modules/locale-tests: New file.
45419         * tests/test-locale.c: New file.
45420
45421         * modules/locale: New file.
45422         * lib/locale_.h: New file.
45423         * m4/locale_h.m4: New file.
45424
45425 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45426             Bruno Haible  <bruno@clisp.org>
45427
45428         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45429         be determined, test for availability of the copysignf, copysign,
45430         copysignl functions.
45431         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45432         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45433         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45434
45435 2007-04-09  Eric Blake  <ebb9@byu.net>
45436
45437         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45438         * modules/stdio (Makefile.am): Support fflush.
45439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45440         * modules/fflush: New file.
45441         * lib/fflush.c: Likewise.
45442         * m4/fflush.m4: Likewise.
45443         * modules/fflush-tests: New test.
45444         * tests/test-fflush.c: Likewise.
45445         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45446
45447 2007-04-06  Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45450         (VASNPRINTF): Use signbit for faster determination whether to print a
45451         minus sign.
45452         * modules/vasnprintf (Files): Remove lib/float+.h.
45453         * modules/fprintf-posix (Depends-on): Add signbit.
45454         * modules/snprintf-posix (Depends-on): Likewise.
45455         * modules/sprintf-posix (Depends-on): Likewise.
45456         * modules/vasnprintf-posix (Depends-on): Likewise.
45457         * modules/vasprintf-posix (Depends-on): Likewise.
45458         * modules/vfprintf-posix (Depends-on): Likewise.
45459         * modules/vsnprintf-posix (Depends-on): Likewise.
45460         * modules/vsprintf-posix (Depends-on): Likewise.
45461
45462 2007-04-06  Bruno Haible  <bruno@clisp.org>
45463
45464         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45465         * tests/test-frexpl.c (main): Likewise.
45466         * tests/test-ldexpl.c (main): Likewise.
45467         * modules/frexp-tests (Depends-on): Add signbit.
45468         * modules/frexpl-tests (Depdends-on): Likewise.
45469         * modules/ldexpl-tests (Depdends-on): Likewise.
45470
45471 2007-04-06  Bruno Haible  <bruno@clisp.org>
45472
45473         * modules/signbit-tests: New file.
45474         * tests/test-signbit.c: New file.
45475
45476         * modules/signbit: New file.
45477         * lib/signbitf.c: New file.
45478         * lib/signbitd.c: New file.
45479         * lib/signbitl.c: New file.
45480         * m4/signbit.m4: New file.
45481         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45482         (signbit): New macro.
45483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45484         REPLACE_SIGNBIT.
45485         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45486         REPLACE_FREXPL into math.h.
45487
45488 2007-04-06  Bruno Haible  <bruno@clisp.org>
45489
45490         * modules/isnanf-nolibm-tests: New file.
45491         * tests/test-isnanf.c: New file.
45492
45493         * modules/isnanf-nolibm: New file.
45494         * lib/isnanf.h: New file.
45495         * lib/isnanf.c: New file.
45496         * lib/isnan.c: Consider the USE_FLOAT macro.
45497         * m4/isnanf.m4: New file.
45498
45499 2007-04-06  Bruno Haible  <bruno@clisp.org>
45500
45501         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45502         (Link): New section.
45503
45504         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45505
45506 2007-04-06  Bruno Haible  <bruno@clisp.org>
45507
45508         Assume the 'long double' type.
45509         * m4/longdouble.m4: Remove file.
45510         * config/srclist.txt: Don't mention longdouble.m4.
45511         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45512         * lib/float+.h: Likewise.
45513         * lib/frexp.c: Likewise.
45514         * lib/printf-args.h: Likewise.
45515         * lib/printf-args.c: Likewise.
45516         * lib/printf-frexp.c: Likewise.
45517         * lib/printf-parse.c: Likewise.
45518         * lib/vasnprintf.c: Likewise.
45519         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45520         * m4/intl.m4: Likewise.
45521         * m4/isnanl.m4: Likewise.
45522         * m4/printf.m4: Likewise.
45523         * m4/printf-frexpl.m4: Likewise.
45524         * m4/vasnprintf.m4: Likewise.
45525         * modules/allocsa (Files): Remove m4/longdouble.m4.
45526         * modules/gettext (Files): Likewise.
45527         * modules/relocatable-prog-wrapper (Files): Likewise.
45528         * modules/vasnprintf (Files): Likewise.
45529         * modules/isnanl (Files): Likewise.
45530         (Include): Simplify.
45531         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45532         (Include): Simplify.
45533         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45534         (Include): Simplify.
45535         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45536         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45537         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45538         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45539         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45540         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45541         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45542         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45543         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45544         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45545         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45546         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45547         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45548         * tests/test-isnanl.c: Likewise.
45549         * tests/test-snprintf-posix.h: Likewise.
45550         * tests/test-sprintf-posix.h: Likewise.
45551         * tests/test-vasnprintf-posix.c: Likewise.
45552         * tests/test-vasnprintf-posix2.c: Likewise.
45553         * tests/test-vasprintf-posix.c: Likewise.
45554
45555 2007-04-06  Bruno Haible  <bruno@clisp.org>
45556
45557         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45558         * lib/math_.h [__DECC]: Include the overridden include file through
45559         #include_next, outside the double-inclusion guard.
45560         * lib/stdio_.h [__DECC]: Likewise.
45561         * lib/stdlib_.h [__DECC]: Likewise.
45562         * lib/string_.h [__DECC]: Likewise.
45563         * lib/time_.h [__DECC]: Likewise.
45564         * lib/wchar_.h [__DECC]: Likewise.
45565         * lib/wctype_.h [__DECC]: Likewise.
45566         * lib/inttypes_.h [__DECC]: Likewise.
45567         Reported by Albert Chin <china@thewrittenword.com> in
45568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45569
45570 2007-04-04  Eric Blake  <ebb9@byu.net>
45571
45572         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45573         1.5.x.
45574
45575 2007-04-04  Bruno Haible  <bruno@clisp.org>
45576
45577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45578         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45579
45580 2007-04-04  Bruno Haible  <bruno@clisp.org>
45581
45582         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45583         results for "%010a" of Infinity and NaN.
45584         * tests/test-vasprintf-posix.c (test_function): Likewise.
45585         * tests/test-snprintf-posix.h (test_function): Likewise.
45586         * tests/test-sprintf-posix.h (test_function): Likewise.
45587         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45588         * tests/test-printf-posix.h (test_function): Likewise.
45589         * tests/test-fprintf-posix.out: Update.
45590         Needed for FreeBSD 6.1.
45591
45592 2007-04-04  Bruno Haible  <bruno@clisp.org>
45593
45594         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45595         directly used by the gnulib modules nor by gnulib-tool.
45596
45597 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45598
45599         * DEPENDENCIES: Give overall description of version dependency
45600         desirability.  Use more-typical names for apps.
45601         Add shell, coreutils, diffutils, grep, tar, gzip.
45602
45603 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45604
45605         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45606
45607 2007-04-04  Karl Berry  <karl@gnu.org>
45608
45609         * MODULES.html.sh (func_module): missing '.
45610
45611 2007-04-03  Bruno Haible  <bruno@clisp.org>
45612
45613         * modules/argmatch-tests (Makefile.am): New variable
45614         test_argmatch_LDADD.
45615         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45616         * modules/array-list-tests (Makefile.am): New variable
45617         test_array_list_LDADD.
45618         * modules/array-oset-tests (Makefile.am): New variable
45619         test_array_oset_LDADD.
45620         * modules/avltree-list-tests (Makefile.am): New variable
45621         test_avltree_list_LDADD.
45622         * modules/avltree-oset-tests (Makefile.am): New variable
45623         test_avltree_oset_LDADD.
45624         * modules/avltreehash-list-tests (Makefile.am): New variable
45625         test_avltreehash_list_LDADD.
45626         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45627         test_canonicalize_lgpl_LDADD.
45628         * modules/carray-list-tests (Makefile.am): New variable
45629         test_carray_list_LDADD.
45630         * modules/dirname-tests (Makefile.am): New variable
45631         test_dirname_LDADD.
45632         * modules/linked-list-tests (Makefile.am): New variable
45633         test_linked_list_LDADD.
45634         * modules/linkedhash-list-tests (Makefile.am): New variable
45635         test_linkedhash_list_LDADD.
45636         * modules/rbtree-list-tests (Makefile.am): New variable
45637         test_rbtree_list_LDADD.
45638         * modules/rbtree-oset-tests (Makefile.am): New variable
45639         test_rbtree_oset_LDADD.
45640         * modules/rbtreehash-list-tests (Makefile.am): New variable
45641         test_rbtreehash_list_LDADD.
45642         * modules/xvasprintf-tests (Makefile.am): New variable
45643         test_xvasprintf_LDADD.
45644         Reported by Eric Blake.
45645
45646 2007-04-03  Eric Blake  <ebb9@byu.net>
45647
45648         * DEPENDENCIES: Weaken m4 requirements.
45649
45650 2007-04-03  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45653         * modules/isnanl-tests (configure.ac): Likewise.
45654
45655 2007-04-03  Ben Pfaff  <blp@gnu.org>
45656
45657         * modules/iconv_open: Add $(srcdir)/ to source directory
45658         references in Makefile fragments that call gperf, to fix VPATH
45659         builds.
45660
45661 2007-04-03  Bruno Haible  <bruno@clisp.org>
45662
45663         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45664         * lib/ldexpl.c: Undo last change.
45665
45666 2007-04-03  Bruno Haible  <bruno@clisp.org>
45667
45668         * modules/printf-frexpl (Depends-on): Undo last change.
45669         (Files): Add m4/ldexpl.m4.
45670
45671 2007-04-03  Bruno Haible  <bruno@clisp.org>
45672
45673         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45674         * modules/isnanl (Link): New section.
45675
45676         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45677         * modules/frexp (Link): New section.
45678
45679         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45680         * modules/frexpl (Link): New section.
45681
45682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45683         * modules/ldexpl (Link): New section.
45684
45685 2007-04-03  Bruno Haible  <bruno@clisp.org>
45686
45687         * modules/TEMPLATE-EXTENDED: New file.
45688         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45689
45690 2007-04-03  Bruno Haible  <bruno@clisp.org>
45691
45692         * DEPENDENCIES: New file.
45693         Suggested by Simon Josefsson.
45694
45695 2007-04-03  Bruno Haible  <bruno@clisp.org>
45696
45697         * doc/gnulib.texi: Escape @.
45698
45699 2007-04-03  James Youngman  <jay@gnu.org>
45700         and Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45703         birthtime on all systems that have birthtime, not just those which
45704         use st_birthtimensec rather than st_birthtim.  Putting zero in
45705         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45706         that the birth time is not available for files on an NFS mount.
45707
45708 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45709
45710         * modules/memxor: Move back from crypto/, suggested by Bruno.
45711         * modules/crypto/hmac-sha1: Fix memxor dependency.
45712
45713         * modules/crypto/gc: Moved from ../.
45714
45715 2007-04-02  Eric Blake  <ebb9@byu.net>
45716
45717         * lib/ldexpl.c (includes): Avoid libm.
45718
45719         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45720
45721 2007-04-02  Bruno Haible  <bruno@clisp.org>
45722
45723         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45724         on IRIX.
45725
45726 2007-04-02  Bruno Haible  <bruno@clisp.org>
45727
45728         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45729         x86 or x86_64 platforms running MacOS X.
45730         Reported by Ryan Schmidt <@ryandesign.com>.
45731
45732 2007-04-02  Bruno Haible  <bruno@clisp.org>
45733
45734         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45735         i386.
45736
45737 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45738
45739         * modules/crypto/arcfour: Moved from ../.
45740         * modules/crypto/arcfour-tests: Moved from ../.
45741         * modules/crypto/arctwo: Moved from ../.
45742         * modules/crypto/arctwo-tests: Moved from ../.
45743         * modules/crypto/des: Moved from ../.
45744         * modules/crypto/des-tests: Moved from ../.
45745         * modules/crypto/gc-arcfour: Moved from ../.
45746         * modules/crypto/gc-arcfour-tests: Moved from ../.
45747         * modules/crypto/gc-arctwo: Moved from ../.
45748         * modules/crypto/gc-arctwo-tests: Moved from ../.
45749         * modules/crypto/gc-des: Moved from ../.
45750         * modules/crypto/gc-des-tests: Moved from ../.
45751         * modules/crypto/gc-hmac-md5: Moved from ../.
45752         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45753         * modules/crypto/gc-hmac-sha1: Moved from ../.
45754         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45755         * modules/crypto/gc-md2: Moved from ../.
45756         * modules/crypto/gc-md2-tests: Moved from ../.
45757         * modules/crypto/gc-md4: Moved from ../.
45758         * modules/crypto/gc-md4-tests: Moved from ../.
45759         * modules/crypto/gc-md5: Moved from ../.
45760         * modules/crypto/gc-md5-tests: Moved from ../.
45761         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45762         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45763         * modules/crypto/gc-random: Moved from ../.
45764         * modules/crypto/gc-rijndael: Moved from ../.
45765         * modules/crypto/gc-rijndael-tests: Moved from ../.
45766         * modules/crypto/gc-sha1: Moved from ../.
45767         * modules/crypto/gc-sha1-tests: Moved from ../.
45768         * modules/crypto/gc-tests: Moved from ../.
45769         * modules/crypto/hmac-md5: Moved from ../.
45770         * modules/crypto/hmac-md5-tests: Moved from ../.
45771         * modules/crypto/hmac-sha1: Moved from ../.
45772         * modules/crypto/hmac-sha1-tests: Moved from ../.
45773         * modules/crypto/md2: Moved from ../.
45774         * modules/crypto/md2-tests: Moved from ../.
45775         * modules/crypto/md4: Moved from ../.
45776         * modules/crypto/md4-tests: Moved from ../.
45777         * modules/crypto/md5: Moved from ../.
45778         * modules/crypto/md5-tests: Moved from ../.
45779         * modules/crypto/memxor: Moved from ../.
45780         * modules/crypto/rijndael: Moved from ../.
45781         * modules/crypto/rijndael-tests: Moved from ../.
45782         * modules/crypto/sha1: Moved from ../.
45783
45784 2007-03-30  James Youngman  <jay@gnu.org>
45785
45786         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45787         rename() to change the ctime of a file (because ctime is unaffected
45788         by rename on jfs2 on AIX 5.1).
45789         (main): Start by doing cleanup, in case a previous run failed leaving
45790         test files behind.
45791
45792 2007-03-31  Bruno Haible  <bruno@clisp.org>
45793
45794         Support old proprietary implementations of iconv.
45795         * modules/iconv_open: New file.
45796         * lib/iconv_.h: New file.
45797         * m4/iconv_h.m4: New file.
45798         * lib/iconv_open.c: New file.
45799         * lib/iconv_open-aix.gperf: New file.
45800         * lib/iconv_open-hpux.gperf: New file.
45801         * lib/iconv_open-irix.gperf: New file.
45802         * lib/iconv_open-osf.gperf: New file.
45803         * m4/iconv_open.m4: New file.
45804         * modules/linebreak (Depends-on): Add iconv_open.
45805         * modules/striconv (Depends-on): Likewise.
45806         * modules/striconveh (Depends-on): Likewise.
45807         * modules/unicodeio (Depends-on): Likewise.
45808         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45809         (iconv_t)(-1).
45810         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45811         conversion if cd is (iconv_t)(-1).
45812         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45813         is not possible.
45814
45815 2007-03-31  Bruno Haible  <bruno@clisp.org>
45816
45817         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45818         work on Solaris either. Protect also second use of "autodetect_jp".
45819
45820 2007-03-31  Bruno Haible  <bruno@clisp.org>
45821
45822         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45823         the function is not present.
45824
45825 2007-03-31  Bruno Haible  <bruno@clisp.org>
45826
45827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45828         the function is not present.
45829
45830 2007-03-31  Bruno Haible  <bruno@clisp.org>
45831
45832         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45833         a bug in HP-UX iconv_open().
45834
45835 2007-03-31  Bruno Haible  <bruno@clisp.org>
45836
45837         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45838         (Mathematics <math.h>): New section, add fpieee.
45839         (Input/output <stdio.h>): Add fseterr.
45840         (Mathematics <math.h>): New section, add printf-frexp.
45841         (Container data structures): Add sublist.
45842         (Core language properties): Add fpucw, inline.
45843         (Functions for greatest-width integer types <inttypes.h>): Add
45844         imaxabs, imaxdiv, inttypes.
45845         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45846         isnanl-nolibm, ldexp.
45847         (Mathematics <math.h>): New section, add printf-frexpl.
45848         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45849         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45850         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45851         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45852         (Unicode string functions): Add unistr/u*-mbtoucr.
45853         (Java): Add javacomp-script, javaexec-script.
45854         (C#): Add csharpcomp-script, csharpexec-script.
45855         (Support for building libraries and executables): Add havelib,
45856         relocatable-*.
45857         (Support for maintaining and releasing projects): Renamed from
45858         'Support for maintaining and release projects'. Add announce-gen.
45859
45860 2007-03-31  Bruno Haible  <bruno@clisp.org>
45861
45862         * README: Talk primarily about git.
45863         (git and CVS): Renamed from CVS.
45864         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45865         gnulib is available through git.
45866         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45867
45868 2007-03-30  Bruno Haible  <bruno@clisp.org>
45869
45870         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45871         * lib/poll_.h: Likewise.
45872         * lib/stat_.h: Likewise.
45873         * lib/sys_time_.h: Likewise.
45874         * lib/sysexit_.h: Likewise.
45875         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45876         * lib/stdbool_.h: Likewise.
45877         * lib/byteswap_.h: Add double-inclusion guard.
45878
45879 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45880
45881         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45882
45883 2007-03-30  Karl Berry  <karl@gnu.org>
45884
45885         * config/srclist-update: double space after USA in the license
45886         substitution, since that's how it's usually (?) written.
45887
45888 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45889
45890         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45891         reported by Bruno Haible.
45892
45893 2007-03-29  Bruno Haible  <bruno@clisp.org>
45894
45895         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45896         a bug in AIX iconv().
45897
45898 2007-03-29  Bruno Haible  <bruno@clisp.org>
45899
45900         * modules/ldexpl-tests: New file.
45901         * tests/test-ldexpl.c: New file.
45902
45903 2007-03-29  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/ldexpl.c: Include fpucw.h.
45906         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45907         multiplication.
45908         * modules/ldexpl (Depends-on): Add fpucw.
45909
45910 2007-03-29  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/ldexpl: New file.
45913         * m4/ldexpl.m4: New file.
45914         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45915         set.
45916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45917         REPLACE_LDEXPL.
45918         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45919         REPLACE_LDEXPL.
45920         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45921         gl_FUNC_LDEXPL_WORKS.
45922         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45923         * modules/mathl (Files): Remove lib/ldexpl.c.
45924         (Depends-on): Add ldexpl.
45925
45926 2007-03-29  Bruno Haible  <bruno@clisp.org>
45927
45928         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45929
45930 2007-03-29  Bruno Haible  <bruno@clisp.org>
45931
45932         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45933         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45934         and possibly also HP-UX.
45935         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45936         work on AIX, IRIX, HP-UX, OSF/1.
45937         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45938         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45939         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45940         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45941         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45942         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45943
45944 2007-03-29  Bruno Haible  <bruno@clisp.org>
45945
45946         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45947
45948 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45951         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45952
45953 2007-03-29  Eric Blake  <ebb9@byu.net>
45954
45955         * lib/acl-internal.h: Remove redundant include.
45956         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45957         Cygwin when a file is locked.
45958
45959 2007-03-29  Bruno Haible  <bruno@clisp.org>
45960
45961         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45962         file.
45963         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45964
45965 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45966
45967         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45968         try to remove a parent directory if the child couldn't be removed
45969         (except for the first rmdir, which could fail because the child
45970         doesn't exist).  Problem reported by Jeff Blaine in
45971         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45972
45973 2007-03-28  Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/striconveh.c (utf8conv_carefully): New function.
45976         (mem_cd_iconveh_internal): Invoke it.
45977
45978 2007-03-28  Bruno Haible  <bruno@clisp.org>
45979
45980         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45981         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45982         input.
45983         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45984         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45985         unistr/u8-uctomb.
45986
45987 2007-03-28  Bruno Haible  <bruno@clisp.org>
45988
45989         * modules/unistr/u8-mbtoucr: New file.
45990         * lib/unistr/u8-mbtoucr.c: New file.
45991         * modules/unistr/u16-mbtoucr: New file.
45992         * lib/unistr/u16-mbtoucr.c: New file.
45993         * modules/unistr/u16-mbtoucr: New file.
45994         * lib/unistr/u16-mbtoucr.c: New file.
45995         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45996
45997 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45998             Bruno Haible  <bruno@clisp.org>
45999
46000         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
46001         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
46002         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
46003
46004         * m4/stdio_h.m4: Add stubs for vasprintf too.
46005
46006         * modules/stdio: Support vasprintf in sed command.
46007
46008         * modules/vasprintf: Depend on stdio for prototypes.  Remove
46009         vasprintf.h.  Add stdio module indicator.
46010
46011         * lib/stdio_.h: Declare asprintf and vasprintf, based on
46012         vasprintf.h.
46013
46014         * lib/vasprintf.h: File removed.
46015
46016         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
46017         * lib/vasprintf.c: Ditto.
46018         * lib/xvasprintf.c: Ditto.
46019         * tests/test-vasprintf-posix.c: Ditto.
46020         * tests/test-vasprintf.c: Ditto.
46021
46022 2007-03-27  Bruno Haible  <bruno@clisp.org>
46023
46024         Make vasnprintf multithread-safe.
46025         * lib/vasnprintf.c (decimal_point_char): New function.
46026         (VASNPRINTF): Use it.
46027         Suggested by Simon Josefsson.
46028
46029 2007-03-27  Eric Blake  <ebb9@byu.net>
46030
46031         Support sub-second birthtime on cygwin.
46032         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
46033         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
46034         (get_stat_birthtime): Also work with st_birthtim.
46035
46036 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
46037
46038         * lib/stat-time.h (USE_BIRTHTIME): Remove.
46039         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
46040         (get_stat_birthtime_ns): Do not try to use "spare" fields.
46041         (get_stat_birthtime_ns): Simplify compile-time tests.
46042         (get_stat_birthtime): Change the API to look like
46043         get_stat_mtime etc., except return a negative tv_nsec on error.
46044         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
46045         Don't check for "spare" fields.
46046         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
46047         or for struct stat.st_birthtime, as these tests aren't used.
46048         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
46049
46050 2007-03-27  Bruno Haible  <bruno@clisp.org>
46051
46052         * lib/stat-time.h: Include <sys/stat.h>.
46053
46054 2007-03-27  James Youngman  <jay@gnu.org>
46055
46056         * lib/stat-time.h (get_stat_birthtime): New function for
46057           retrieving st_birthtime as provided by UFS2 (hence *BSD).
46058         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
46059           and its variants.
46060         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
46061         * modules/stat-time-test: New file.
46062         * tests/test-stat-time.c: New test, devised by Bruno Haible.
46063
46064 2007-03-26  Bruno Haible  <bruno@clisp.org>
46065
46066         Better support of signalling NaNs.
46067         * lib/atanl.c: Include isnanl.h.
46068         (atanl): Perform test for NaN at the beginning of the function and
46069         through a call to isnanl.
46070         * lib/cosl.c: Include isnanl.h.
46071         (cosl): Perform test for NaN at the beginning of the function and
46072         through a call to isnanl.
46073         * lib/ldexpl.c: Include isnanl.h.
46074         (ldexpl): Perform test for NaN through a call to isnanl.
46075         * lib/logl.c: Include isnanl.h.
46076         (logl): Perform test for NaN at the beginning of the function and
46077         through a call to isnanl.
46078         * lib/sinl.c: Include isnanl.h.
46079         (sinl): Perform test for NaN at the beginning of the function and
46080         through a call to isnanl.
46081         * lib/sqrtl.c: Include isnanl.h.
46082         (sqrtl): Perform test for NaN at the beginning of the function and
46083         through a call to isnanl.
46084         * lib/tanl.c: Include isnanl.h.
46085         (tanl): Perform test for NaN at the beginning of the function and
46086         through a call to isnanl.
46087         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46088         * modules/mathl (Depends-on): Add isnanl.
46089
46090 2007-03-26  Eric Blake  <ebb9@byu.net>
46091
46092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46093         regression in logic sense of previous patch.
46094
46095 2007-03-26  Bruno Haible  <bruno@clisp.org>
46096
46097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46098         unportable shell command "if ! ...".
46099         Reported by Ralf Wildenhues.
46100
46101 2007-03-25  Bruno Haible  <bruno@clisp.org>
46102
46103         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46104         <sysexits.h> file, and only add EX_CONFIG.
46105         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46106         absolute file name and whether it is sufficient. Substitute also
46107         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46108         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46109         ABSOLUTE_SYSEXITS_H into sysexits.h.
46110
46111 2007-03-25  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46114         hints is NULL.
46115
46116 2007-03-25  Bruno Haible  <bruno@clisp.org>
46117
46118         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46119         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46120
46121 2007-03-25  Bruno Haible  <bruno@clisp.org>
46122
46123         * lib/vasnprintf.c: Include langinfo.h.
46124         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46125         multithread-safe.
46126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46127         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46128         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46129         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46130         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46132         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46133         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
46134         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46135         Reported by Simon Josefsson.
46136
46137 2007-03-25  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
46140         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
46141         * modules/vasnprintf (Depends-on): Add stdint.
46142
46143 2007-03-25  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/fpieee: New file.
46146         * m4/fpieee.m4: New file.
46147         * modules/isnan-nolibm (Depends-on): Add fpieee.
46148         * modules/isnanl-nolibm (Depends-on): Add fpieee.
46149         * modules/isnanl (Depends-on): Add fpieee.
46150
46151 2007-03-25  Bruno Haible  <bruno@clisp.org>
46152
46153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
46154
46155 2007-03-25  Bruno Haible  <bruno@clisp.org>
46156
46157         Avoid test failures on IRIX 6.5.
46158         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
46159         (main): Use it.
46160         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
46161         macros.
46162         (main): Use them.
46163
46164 2007-03-25  Bruno Haible  <bruno@clisp.org>
46165
46166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
46167         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
46168         exists but doesn't work.
46169         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
46170         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
46171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
46172         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
46173
46174 2007-03-25  Bruno Haible  <bruno@clisp.org>
46175
46176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
46177         returns inf. Needed on IRIX 6.5.
46178
46179 2007-03-25  Bruno Haible  <bruno@clisp.org>
46180
46181         * tests/test-frexpl.c: Include isnanl-nolibm.h.
46182         (main): Use isnanl instead of x != x idiom.
46183         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
46184
46185         * tests/test-frexp.c: Include isnan.h.
46186         (main): Use isnan instead of x != x idiom.
46187         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
46188
46189 2007-03-25  Bruno Haible  <bruno@clisp.org>
46190
46191         * tests/test-frexp.c (NaN): New function/macro.
46192         (main): Use it instead of 0.0 / 0.0.
46193         * tests/test-isnan.c (NaN): New function/macro.
46194         (main): Use it instead of 0.0 / 0.0.
46195         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
46196         (test_function): Use it instead of 0.0 / 0.0.
46197         * tests/test-vasprintf-posix.c (NaN): New function/macro.
46198         (test_function): Use it instead of 0.0 / 0.0.
46199         * tests/test-snprintf-posix.h (NaN): New function/macro.
46200         (test_function): Use it instead of 0.0 / 0.0.
46201         * tests/test-sprintf-posix.h (NaN): New function/macro.
46202         (test_function): Use it instead of 0.0 / 0.0.
46203         * tests/test-fprintf-posix.h (NaN): New function/macro.
46204         (test_function): Use it instead of 0.0 / 0.0.
46205         * tests/test-printf-posix.h (NaN): New function/macro.
46206         (test_function): Use it instead of 0.0 / 0.0.
46207
46208         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
46209
46210 2007-03-25  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
46213
46214 2007-03-25  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/regexec.c (merge_state_with_log): Make static.
46217
46218 2007-03-25  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/trigl.c (kernel_rem_pio2): Make static.
46221
46222 2007-03-25  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/sincosl.c (sincosl_table): Make static.
46225
46226 2007-03-25  Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
46229         if the compiler does not support C99.
46230
46231 2007-03-25  Bruno Haible  <bruno@clisp.org>
46232
46233         * modules/time (Makefile.am): Ensure all rule action lines start with a
46234         tab.
46235
46236 2007-03-24  Bruno Haible  <bruno@clisp.org>
46237
46238         * modules/tsearch-tests: New file.
46239         * tests/test-tsearch.sh: New file.
46240         * tests/test-tsearch.c: New file, mostly copied from glibc.
46241
46242         * modules/search-tests: New file.
46243         * tests/test-search.c: New file.
46244
46245         * modules/search: New file.
46246         * lib/search_.h: New file, incorporating lib/tsearch.h.
46247         * m4/search_h.m4: New file.
46248         * lib/tsearch.h: Remove file.
46249         * lib/tsearch.c: Include search.h instead of tsearch.h.
46250         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
46251         HAVE_TSEARCH.
46252         * modules/tsearch (Files): Remove lib/tsearch.h.
46253         (Depends-on): Add search.
46254         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46255         (Include): Change tsearch.h into search.h.
46256
46257 2007-03-24  Bruno Haible  <bruno@clisp.org>
46258
46259         * modules/fpucw: New file.
46260         * lib/fpucw.h: New file.
46261         * lib/frexp.c: Include fpucw.h.
46262         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46263         (FUNC): Use them.
46264         * lib/printf-frexp.c: Include fpucw.h.
46265         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46266         (FUNC): Use them.
46267         * lib/vasnprintf.c: Include fpucw.h.
46268         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46269         'long double' calculations.
46270         * tests/test-frexpl.c: Include fpucw.h.
46271         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46272         * tests/test-printf-frexpl.c: Include fpucw.h.
46273         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46274         * modules/frexpl (Depends-on): Add fpucw.
46275         * modules/printf-frexpl (Depends-on): Likewise.
46276         * modules/fprintf-posix (Depends-on): Likewise.
46277         * modules/snprintf-posix (Depends-on): Likewise.
46278         * modules/sprintf-posix (Depends-on): Likewise.
46279         * modules/vasnprintf-posix (Depends-on): Likewise.
46280         * modules/vasprintf-posix (Depends-on): Likewise.
46281         * modules/vfprintf-posix (Depends-on): Likewise.
46282         * modules/vsnprintf-posix (Depends-on): Likewise.
46283         * modules/vsprintf-posix (Depends-on): Likewise.
46284         * modules/frexpl-tests (Depends-on): Likewise.
46285         * modules/printf-frexpl-tests (Depends-on): Likewise.
46286
46287 2007-03-24  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/float+.h: New file.
46290         * lib/isnan.c: Include float+.h.
46291         (SIZE): New macro.
46292         (FUNC): Compare only SIZE bytes of the value.
46293         * lib/vasnprintf.c: Include float+.h.
46294         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46295         SIZEOF_LDBL or SIZEOF_DBL bytes.
46296         * modules/isnan-nolibm (Files): Add lib/float+.h.
46297         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46298         * modules/isnanl (Files): Add lib/float+.h.
46299         * modules/vasnprintf (Files): Add lib/float+.h.
46300
46301 2007-03-24  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46304         include isnanl-nolibm.h.
46305
46306 2007-03-24  Bruno Haible  <bruno@clisp.org>
46307
46308         * tests/test-read-file.c (main): Don't produce spurious output for
46309         expected situations. Make the test fail if it encountered unexpected
46310         results.
46311
46312 2007-03-24  Bruno Haible  <bruno@clisp.org>
46313
46314         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46315         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46316
46317 2007-03-24  Bruno Haible  <bruno@clisp.org>
46318
46319         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46320
46321 2007-03-24  Bruno Haible  <bruno@clisp.org>
46322
46323         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46324         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46325
46326         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46327         * modules/utf8-ucs4: Turn into a symbolic link to module
46328         unistr/u8-mbtouc.
46329
46330         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46331         utf8-ucs4-unsafe.
46332         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46333         unistr/u8-mbtouc-unsafe.
46334
46335         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46336         * modules/utf16-ucs4: Turn into a symbolic link to module
46337         unistr/u16-mbtouc.
46338
46339         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46340         utf16-ucs4-unsafe.
46341         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46342         unistr/u16-mbtouc-unsafe.
46343
46344         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46345         * modules/ucs4-utf8: Turn into a symbolic link to module
46346         unistr/u8-ubtomb.
46347
46348         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46349         * modules/ucs4-utf16: Turn into a symbolic link to module
46350         unistr/u16-ubtomb.
46351
46352 2007-03-24  Bruno Haible  <bruno@clisp.org>
46353
46354         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46355         Enable the function only if HAVE_INLINE.
46356         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46357         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46358         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46359         Enable the function only if HAVE_INLINE.
46360         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46361         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46362         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46363         Enable the function only if HAVE_INLINE.
46364         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46365         Enable the function only if HAVE_INLINE.
46366         * modules/utf8-ucs4: Update.
46367         * modules/utf8-ucs4-unsafe: Update.
46368         * modules/utf16-ucs4: Update.
46369         * modules/utf16-ucs4-unsafe: Update.
46370         * modules/ucs4-utf8: Update.
46371         * modules/ucs4-utf16: Update.
46372
46373 2007-03-24  Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/utf8-ucs4.h: Remove file.
46376         * lib/utf8-ucs4-unsafe.h: Remove file.
46377         * lib/utf16-ucs4.h: Remove file.
46378         * lib/utf16-ucs4-unsafe.h: Remove file.
46379         * lib/ucs4-utf8.h: Remove file.
46380         * lib/ucs4-utf16.h: Remove file.
46381         * lib/unistr.h: Include their previous contents.
46382         * m4/utf-ucs4.m4: Remove file.
46383         * m4/ucs4-utf.m4: Remove file.
46384         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46385         (Depends-on): Add unistr/base.
46386         (configure.ac): Remove gl_UTF_UCS4.
46387         (Makefile.am): Update.
46388         (Include): Change to unistr.h.
46389         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46390         (Depends-on): Add unistr/base.
46391         (configure.ac): Remove gl_UTF_UCS4.
46392         (Makefile.am): Update.
46393         (Include): Change to unistr.h.
46394         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46395         (Depends-on): Add unistr/base.
46396         (configure.ac): Remove gl_UTF_UCS4.
46397         (Makefile.am): Update.
46398         (Include): Change to unistr.h.
46399         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46400         (Depends-on): Add unistr/base.
46401         (configure.ac): Remove gl_UTF_UCS4.
46402         (Makefile.am): Update.
46403         (Include): Change to unistr.h.
46404         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46405         (Depends-on): Add unistr/base.
46406         (configure.ac): Remove gl_UCS4_UTF.
46407         (Makefile.am): Update.
46408         (Include): Change to unistr.h.
46409         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46410         (Depends-on): Add unistr/base.
46411         (configure.ac): Remove gl_UCS4_UTF.
46412         (Makefile.am): Update.
46413         (Include): Change to unistr.h.
46414         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46415         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46416         utf8-ucs4-unsafe.h.
46417         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46418         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46419         utf16-ucs4-unsafe.h.
46420         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46421         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46422         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46423         * lib/unistr/u8-strchr.c: Likewise.
46424         * lib/unistr/u8-strrchr.c: Likewise.
46425         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46426         * lib/unistr/u16-strchr.c: Likewise.
46427         * lib/unistr/u16-strrchr.c: Likewise.
46428         * lib/striconveh.c: Update.
46429         * lib/linebreak.c: Update.
46430
46431 2007-03-24  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46434         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46435
46436 2007-03-22  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46439
46440 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46441
46442         * MODULES.html.sh (File system functions): New module write-any-file.
46443         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46444         * m4/write-any-file.m4: New files.
46445
46446 2007-03-23  Eric Blake  <ebb9@byu.net>
46447
46448         * gnulib-tool: Rearrange space-tab sequences, since some editors
46449         like to eat them.
46450
46451 2007-03-23  Eric Blake  <ebb9@byu.net>
46452
46453         * lib/version-etc.c (version_etc_va): Update license wording to
46454         be more concise.  Recommended by Richard Stallman.
46455
46456 2007-03-22  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/poll.c (MSG_PEEK): New fallback definition.
46459
46460 2007-03-22  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46463         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46464         (main): Update.
46465         Fixes a compilation error on BeOS.
46466
46467 2007-03-22  Bruno Haible  <bruno@clisp.org>
46468
46469         * modules/frexpl-tests: New file.
46470         * tests/test-frexpl.c: New file.
46471
46472         * modules/frexpl: New file.
46473         * m4/frexpl.m4: New file.
46474         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46475         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46477         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46478         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46479         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46480
46481 2007-03-22  Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/frexpl.c: Share code with lib/frexp.c.
46484         * modules/mathl (Files): Add lib/frexp.c.
46485         (Depends-on): Add isnanl-nolibm.
46486
46487 2007-03-22  Bruno Haible  <bruno@clisp.org>
46488
46489         * modules/printf-frexp (Files): Add m4/frexp.m4.
46490         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46491         only if the found frexp function actually works.
46492
46493 2007-03-22  Bruno Haible  <bruno@clisp.org>
46494
46495         * lib/frexp.c: Remove older implementation that uses divisions.
46496
46497 2007-03-21  Bruno Haible  <bruno@clisp.org>
46498
46499         * modules/frexp-tests: New file.
46500         * tests/test-frexp.c: New file.
46501
46502         * modules/frexp: New file.
46503         * lib/frexp.c: New file.
46504         * m4/frexp.m4: New file.
46505         * lib/math_.h (frexp): New declaration.
46506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46507         REPLACE_FREXP.
46508         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46509
46510 2007-03-21  Bruno Haible  <bruno@clisp.org>
46511
46512         * modules/isnanl-tests: New file.
46513         * tests/test-isnanl.c: New file.
46514
46515         * modules/isnanl: New file.
46516         * lib/isnanl.h: New file.
46517         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46518         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46519         gl_FUNC_ISNANL_WORKS.
46520         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46521         New macros.
46522
46523 2007-03-21  Bruno Haible  <bruno@clisp.org>
46524
46525         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46526         lib/isnanl.h.
46527         (Include): Update.
46528         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46529         * lib/vasnprintf.c: Update.
46530         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46531         tests/test-isnanl.h, remove tests/test-isnanl.c.
46532         (Makefile.am): Update.
46533         * tests/test-isnanl-nolibm.c: New file.
46534         * tests/test-isnanl.h: New file.
46535         * tests/test-isnanl.c: Remove file.
46536
46537 2007-03-21  Jim Meyering  <jim@meyering.net>
46538
46539         When trying to open ".", treat ESTALE like EACCES.
46540         * lib/savewd.c (savewd_save): Resort to forking not just upon
46541         failure with EACCES, but also when errno is ESTALE.
46542
46543 2007-03-20  Bruno Haible  <bruno@clisp.org>
46544
46545         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46546         Needed on AIX 5.1. Reported by Matthew Woehlke.
46547
46548 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46549
46550         Suggestions by Bruno Haible:
46551         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46552         our own.
46553         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46554         * modules/acl (Depends-on): Add gettext.
46555
46556 2007-03-19  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/iconvme: Remove file.
46559         * lib/iconvme.h: Remove file.
46560         * lib/iconvme.c: Remove file.
46561         * m4/iconvme.m4: Remove file.
46562
46563 2007-03-19  Bruno Haible  <bruno@clisp.org>
46564
46565         * doc/relocatable-maint.texi: Break long shell script line.
46566         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46567
46568 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46569
46570         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46571         handle file_has_acl.
46572         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46573         * lib/acl.c: Move header inclusions and related macro defns into
46574         lib/acl-internal.h.
46575         (S_ISLNK): Remove defn, since that's now done for us.
46576         (file_has_acl): Move to lib/file-has-acl.c.
46577         Call acl_trivial if available.  This is the crucial part of the fix.
46578         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46579         shared within the library.  Rewrite a bit, partly to make it compatible
46580         with the GNU coding style.
46581         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46582         Remove unnecessary double-quotes.
46583         Don't test for acl_to_text; the build will catch that.
46584         Replace acl_entries if it doesn't exist and it is needed.
46585         Check for -lsec and acl_trivial (as used on Solaris 10).
46586         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46587         lib/file-has-acl.c.
46588         (Depends-on): Add sys_stat, for S_ISLNK.
46589
46590 2007-03-19  Ben Pfaff  <blp@gnu.org>
46591
46592         * doc/gnulib.texi: Fix typos.
46593         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46594
46595 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46596
46597         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46598         If size is zero here, buf must be zero.
46599
46600 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46601
46602         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46603         <bruno@clisp.org>.
46604
46605 2007-03-18  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46608         Suggested by Eric Blake.
46609
46610 2007-03-18  Ben Pfaff  <blp@gnu.org>
46611
46612         * doc/relocatable.texi: Recommend using as prefix a directory
46613         that does not exist and will never be created.  Based on
46614         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46615         and others.
46616
46617 2007-03-17  Bruno Haible  <bruno@clisp.org>
46618
46619         * lib/fchownat.c: Include lchown.h.
46620
46621 2007-03-17  Bruno Haible  <bruno@clisp.org>
46622
46623         Fix endless loop when the given allocated size was > INT_MAX.
46624         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46625         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46626         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46627         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46628         * lib/sprintf.c (sprintf): Likewise.
46629
46630 2007-03-17  Bruno Haible  <bruno@clisp.org>
46631
46632         * tests/test-argp-2.sh (func_compare): Output a context diff.
46633
46634 2007-03-17  Bruno Haible  <bruno@clisp.org>
46635
46636         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46637         locale's decimal-point character.
46638
46639 2007-03-17  Bruno Haible  <bruno@clisp.org>
46640
46641         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46642         before comparing it. Needed because on some platforms (e.g. x86) a
46643         'long double' occupies less bytes than sizeof (long double).
46644
46645 2007-03-17  Bruno Haible  <bruno@clisp.org>
46646
46647         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46648         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46649         * tests/test-getaddrinfo.c (simple): Likewise.
46650         * tests/test-read-file.c (main): Likewise.
46651
46652 2007-03-17  Bruno Haible  <bruno@clisp.org>
46653
46654         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46655
46656 2007-03-17  Bruno Haible  <bruno@clisp.org>
46657
46658         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46659         unused variable.
46660
46661 2007-03-17  Bruno Haible  <bruno@clisp.org>
46662
46663         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46664         * tests/test-c-strncasecmp.c: Likewise.
46665
46666 2007-03-17  Bruno Haible  <bruno@clisp.org>
46667
46668         * modules/stdlib (Depends-on): Add unistd.
46669         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46670         Needed for MacOS X 10.3.
46671
46672 2007-03-17  Bruno Haible  <bruno@clisp.org>
46673
46674         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46675
46676 2007-03-17  Bruno Haible  <bruno@clisp.org>
46677
46678         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46679
46680 2007-03-17  Bruno Haible  <bruno@clisp.org>
46681
46682         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46683         to reflect files copied from gnulib (with or without modifications).
46684         Suggested by Jim Meyering.
46685
46686 2007-03-17  Eric Blake  <ebb9@byu.net>
46687
46688         * NEWS: Document stdlib change from 2007-02-18.
46689
46690 2007-03-17  Jim Meyering  <jim@meyering.net>
46691
46692         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46693         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46694         someone uses a name containing shell meta-characters.
46695         Reported by Alfred M. Szmidt.
46696
46697         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46698
46699 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46700
46701         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46702         and copy gettext configuration files only if configure.ac contains
46703         a use of AM_GNU_GETTEXT_VERSION.
46704
46705 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46706
46707         * build-aux/bootstrap (gnulib_name): New variable.
46708         (gnulib_tool_options): Use it.
46709
46710 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46711
46712         * tests/test-des.c: Use new namespace.
46713
46714 2007-03-15  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46717         Reported by James Youngman <jay@gnu.org>.
46718
46719 2007-03-15  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46722         declared prototype. Needed with cc on OSF/1 5.1.
46723
46724 2007-03-15  Bruno Haible  <bruno@clisp.org>
46725
46726         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46727         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46728         (struct gl_list_implementation): Add dispose_fn argument to the
46729         'create_empty', 'create' methods.
46730         (struct gl_list_impl_base): Add field 'dispose_fn'.
46731         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46732         argument.
46733         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46734         dispose_fn argument.
46735         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46736         dispose_fn on the dropped values.
46737         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46738         dispose_fn argument.
46739         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46740         dropped values.
46741         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46742         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46743         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46744         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46745         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46746         argument.
46747         (gl_tree_list_free): Call dispose_fn on the dropped values.
46748         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46749         the dropped values.
46750         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46751         Add dispose_fn argument.
46752         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46753         Call dispose_fn on the dropped values.
46754         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46755         Add dispose_fn argument.
46756         (gl_sublist_create): Initialize the 'dispose_fn' field.
46757         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46758         * tests/test-array_list.c (main): Update.
46759         * tests/test-carray_list.c (main): Update.
46760         * tests/test-avltree_list.c (main): Update.
46761         * tests/test-rbtree_list.c (main): Update.
46762         * tests/test-avltreehash_list.c (main): Update.
46763         * tests/test-rbtreehash_list.c (main): Update.
46764         * tests/test-linked_list.c (main): Update.
46765         * tests/test-linkedhash_list.c (main): Update.
46766         * tests/test-array_oset.c (main): Update.
46767
46768 2007-03-15  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46771         (gl_oset_create_empty): Add dispose_fn argument.
46772         (struct gl_oset_implementation): Add dispose_fn argument to
46773         'create_empty' method.
46774         (struct gl_oset_impl_base): Add dispose_fn field.
46775         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46776         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46777         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46778         values.
46779         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46780         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46781         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46782         dropped value.
46783         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46784         dropped value.
46785         * tests/test-array_oset.c (main): Update.
46786         * tests/test-avltree_oset.c (main): Update.
46787         * tests/test-rbtree_oset.c (main): Update.
46788         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46789
46790 2007-03-13  Bruno Haible  <bruno@clisp.org>
46791
46792         * tests/test-stdbool.c (i): Update after last patch.
46793
46794 2007-03-12  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46797         the iswprint macro. Needed on Solaris 2.5.1.
46798
46799 2007-03-12  Bruno Haible  <bruno@clisp.org>
46800
46801         * tests/test-printf-frexp.c (main): Declare x as volatile.
46802
46803 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46804
46805         * doc/gnulib.texi (Build robot for gnulib): New section.
46806
46807 2007-03-12  Jim Meyering  <jim@meyering.net>
46808
46809         * build-aux/bootstrap: New file.
46810         * build-aux/bootstrap.conf: New file, from coreutils.
46811
46812 2007-03-11  Bruno Haible  <bruno@clisp.org>
46813
46814         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46815
46816 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46817
46818         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46819         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46820         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46821
46822 2007-03-11  Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46825         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46826
46827 2007-03-11  Bruno Haible  <bruno@clisp.org>
46828
46829         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46830         formula. Needed for SunPRO C 5.0.
46831
46832 2007-03-11  Bruno Haible  <bruno@clisp.org>
46833
46834         * modules/long-options (Depends-on): Add getopt.
46835
46836 2007-03-11  Bruno Haible  <bruno@clisp.org>
46837
46838         * modules/modechange (Depends-on): Add stdbool.
46839
46840 2007-03-11  Bruno Haible  <bruno@clisp.org>
46841
46842         * modules/i-ring (Depends-on): Add stdbool.
46843
46844 2007-03-11  Bruno Haible  <bruno@clisp.org>
46845
46846         * modules/gc-des (Depends-on): Add stdbool.
46847
46848 2007-03-11  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46851
46852 2007-03-11  Bruno Haible  <bruno@clisp.org>
46853
46854         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46855
46856 2007-03-11  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46859
46860 2007-03-11  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/vasnprintf.c (sprintf): Undefine.
46863
46864 2007-03-11  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46867         initializers in SunPRO C and Compaq C compilers.
46868
46869 2007-03-11  Bruno Haible  <bruno@clisp.org>
46870
46871         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46872         decrementing code ANSI C compliant.
46873
46874 2007-03-11  Bruno Haible  <bruno@clisp.org>
46875
46876         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46877         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46878
46879 2007-03-11  Bruno Haible  <bruno@clisp.org>
46880
46881         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46882         <stdbool.h> substitute doesn't pass.
46883
46884 2007-03-11  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46887
46888 2007-03-11  Bruno Haible  <bruno@clisp.org>
46889
46890         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46891         script, for submission to autobuild.josefsson.org.
46892
46893 2007-03-10  Bruno Haible  <bruno@clisp.org>
46894
46895         * modules/canonicalize-lgpl-tests: New file.
46896         * tests/test-canonicalize-lgpl.sh: New file.
46897         * tests/test-canonicalize-lgpl.c: New file.
46898
46899         * modules/c-strcase-tests: New file.
46900         * tests/test-c-strcase.sh: New file.
46901         * tests/test-c-strcasecmp.c: New file.
46902         * tests/test-c-strncasecmp.c: New file.
46903
46904         * modules/atexit-tests: New file.
46905         * tests/test-atexit.sh: New file.
46906         * tests/test-atexit.c: New file.
46907
46908 2007-03-10  Bruno Haible  <bruno@clisp.org>
46909
46910         * tests/test-binary-io.sh: Use temporary filenames that are not so
46911         likely to clash with those of other tests (in a parallel make).
46912         * tests/test-binary-io.c: Likewise.
46913
46914 2007-03-10  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46917         fallback; use #error instead.
46918         Suggested by Simon Josefsson.
46919
46920 2007-03-10  Bruno Haible  <bruno@clisp.org>
46921
46922         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46923         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46924         first and the last.
46925
46926 2007-03-10  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46929
46930 2007-03-10  Bruno Haible  <bruno@clisp.org>
46931
46932         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46933         "make distcheck".
46934         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46935         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46936         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46937
46938 2007-03-10  Bruno Haible  <bruno@clisp.org>
46939
46940         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46941         variable.
46942         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46943         variable.
46944
46945 2007-03-09  Eric Blake  <ebb9@byu.net>
46946         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46947
46948         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46949         types are not being provided by gnulib.
46950         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46951         types are supported.
46952
46953 2007-03-10  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/stdio_.h (__attribute__): New macro.
46956         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46957         vsprintf): Specify __attribute__ __format__ for GCC.
46958         Suggested by Eric Blake.
46959
46960 2007-03-09  Bruno Haible  <bruno@clisp.org>
46961
46962         * modules/printf-posix-tests: New file.
46963         * tests/test-printf-posix.sh: New file.
46964         * tests/test-printf-posix.c: New file.
46965
46966         * modules/printf-posix: New file.
46967         * lib/printf.c: New file.
46968         * m4/printf-posix-rpl.m4: New file.
46969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46970         REPLACE_PRINTF.
46971         * lib/stdio_.h (printf): New declaration.
46972         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46973         ____strfmon____): New macros.
46974         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46975         REPLACE_PRINTF.
46976
46977 2007-03-09  Bruno Haible  <bruno@clisp.org>
46978
46979         * tests/test-vasnprintf-posix2.sh: New file.
46980         * tests/test-vasnprintf-posix2.c: New file.
46981         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46982         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46983         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46984
46985         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46986         a locale dependent decimal point, rather than always '.'.
46987
46988 2007-03-09  Eric Blake  <ebb9@byu.net>
46989
46990         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46991         spite of platforms like Tandem/NSK that define it to -1.
46992
46993 2007-03-08  Bruno Haible  <bruno@clisp.org>
46994
46995         * modules/vprintf-posix-tests: New file.
46996         * tests/test-vprintf-posix.sh: New file.
46997         * tests/test-vprintf-posix.c: New file.
46998         * tests/test-printf-posix.h: New file.
46999
47000         * modules/vprintf-posix: New file.
47001         * lib/vprintf.c: New file.
47002         * m4/vprintf-posix.m4: New file.
47003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
47004         REPLACE_VPRINTF.
47005         * lib/stdio_.h (vprintf): New declaration.
47006         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
47007         REPLACE_VPRINTF.
47008
47009 2007-03-08  Bruno Haible  <bruno@clisp.org>
47010
47011         * modules/fprintf-posix-tests: New file.
47012         * tests/test-fprintf-posix.sh: New file.
47013         * tests/test-fprintf-posix.c: New file.
47014
47015         * modules/fprintf-posix: New file.
47016         * lib/fprintf.c: New file.
47017         * m4/fprintf-posix.m4: New file.
47018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
47019         REPLACE_FPRINTF.
47020         * lib/stdio_.h (fprintf): New declaration.
47021         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
47022         REPLACE_FPRINTF.
47023
47024 2007-03-08  Bruno Haible  <bruno@clisp.org>
47025
47026         * modules/vfprintf-posix-tests: New file.
47027         * tests/test-vfprintf-posix.sh: New file.
47028         * tests/test-vfprintf-posix.c: New file.
47029         * tests/test-fprintf-posix.h: New file.
47030         * tests/test-fprintf-posix.out: New file.
47031
47032         * modules/vfprintf-posix: New file.
47033         * lib/vfprintf.c: New file.
47034         * m4/vfprintf-posix.m4: New file.
47035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
47036         REPLACE_VFPRINTF.
47037         * lib/stdio_.h (vfprintf): New declaration.
47038         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
47039         REPLACE_VFPRINTF.
47040
47041 2007-03-08  Bruno Haible  <bruno@clisp.org>
47042
47043         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
47044
47045 2007-03-08  Bruno Haible  <bruno@clisp.org>
47046
47047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
47048         instead of 'expr' invocations.
47049         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47053         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47054         Suggested by Paul Eggert.
47055
47056 2007-03-08  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/fseterr-tests: New file.
47059         * tests/test-fseterr.c: New file.
47060
47061         * modules/fseterr: New file.
47062         * lib/fseterr.h: New file.
47063         * lib/fseterr.c: New file.
47064
47065 2007-03-08  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
47068         * lib/getopt_.h: Likewise.
47069         * lib/mbswidth.h: Likewise.
47070         * lib/setenv.h: Likewise.
47071         * lib/vasnprintf.h: Likewise.
47072         * lib/vasprintf.h: Likewise.
47073         * lib/verror.h: Likewise.
47074         * lib/xsetenv.h: Likewise.
47075         * lib/xvasprintf.h: Likewise.
47076
47077 2007-03-08  Jim Meyering  <jim@meyering.net>
47078
47079         * users.txt: Add parted.
47080
47081         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47082
47083 2007-03-07  Bruno Haible  <bruno@clisp.org>
47084
47085         * m4/printf.m4: Make the shell script snippets copy&pastable.
47086
47087 2007-03-02  Bruno Haible  <bruno@clisp.org>
47088
47089         * lib/netinet_in_.h: New file.
47090         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47091         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47092         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47093         (Depends-on): Add absolute-header.
47094         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47095         into netinet/in.h.
47096
47097 2007-03-03  Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/sys_select_.h: New file.
47100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47101         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47102         * modules/sys_select (Files): Add lib/sys_select_.h.
47103         (Depends-on): Add absolute-header.
47104         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47105         into sys/select.h.
47106
47107 2007-03-02  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47110         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47111         values.
47112         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47113         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47114         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47115         * modules/sys_socket (Depends-on): Add absolute-header.
47116         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47117         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47118         (Include): Remove requirement of inclusion of <sys/types.h>.
47119
47120 2007-03-02  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/byteswap_.h (bswap_32): Fix formula.
47123
47124 2007-03-06  Bruno Haible  <bruno@clisp.org>
47125
47126         * modules/sprintf-posix-tests: New file.
47127         * tests/test-sprintf-posix.c: New file.
47128
47129         * modules/sprintf-posix: New file.
47130         * lib/sprintf.c: New file.
47131         * m4/sprintf-posix.m4: New file.
47132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
47133         REPLACE_SPRINTF.
47134         * lib/stdio_.h (sprintf): New declaration.
47135         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
47136         REPLACE_SPRINTF.
47137
47138 2007-03-06  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/vsprintf-posix-tests: New file.
47141         * tests/test-vsprintf-posix.c: New file.
47142         * tests/test-sprintf-posix.h: New file.
47143
47144         * modules/vsprintf-posix: New file.
47145         * lib/vsprintf.c: New file.
47146         * m4/vsprintf-posix.m4: New file.
47147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
47148         REPLACE_VSPRINTF.
47149         * lib/stdio_.h (vsprintf): New declaration.
47150         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
47151         REPLACE_VSPRINTF.
47152
47153 2007-03-06  Bruno Haible  <bruno@clisp.org>
47154
47155         * modules/vsnprintf (Depend-on): Remove minmax.
47156
47157 2007-03-06  Bruno Haible  <bruno@clisp.org>
47158
47159         * modules/snprintf-posix-tests: New file.
47160         * tests/test-snprintf-posix.c: New file.
47161
47162         * modules/snprintf-posix: New file.
47163         * m4/snprintf-posix.m4: New file.
47164         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
47165         gl_FUNC_SNPRINTF.
47166         (gl_FUNC_SNPRINTF): Invoke it.
47167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
47168         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
47169         is set.
47170         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
47171
47172 2007-03-06  Bruno Haible  <bruno@clisp.org>
47173
47174         * modules/vsnprintf-posix-tests: New file.
47175         * tests/test-vsnprintf-posix.c: New file.
47176         * tests/test-snprintf-posix.h: New file.
47177
47178         * modules/vsnprintf-posix: New file.
47179         * m4/vsnprintf-posix.m4: New file.
47180         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
47181         gl_FUNC_VSNPRINTF.
47182         (gl_FUNC_VSNPRINTF): Invoke it.
47183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
47184         * lib/stdio_.h (vsnprintf): Define as a replacement if
47185         REPLACE_VSNPRINTF is set.
47186         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
47187
47188 2007-03-06  Bruno Haible  <bruno@clisp.org>
47189
47190         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
47191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
47192
47193 2007-03-06  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
47196         (asinl): Declare also if HAVE_DECL_ASINL is set.
47197         (atanl): Declare also if HAVE_DECL_ATANL is set.
47198         (ceill): Declare also if HAVE_DECL_CEILL is set.
47199         (cosl): Declare also if HAVE_DECL_COSL is set.
47200         (expl): Declare also if HAVE_DECL_EXPL is set.
47201         (floorl): Declare also if HAVE_DECL_FLOORL is set.
47202         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
47203         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
47204         (logl): Declare also if HAVE_DECL_LOGL is set.
47205         (sinl): Declare also if HAVE_DECL_SINL is set.
47206         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
47207         (tanl): Declare also if HAVE_DECL_TANL is set.
47208         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
47209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
47210         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
47211         declaration of frexpl, ldexpl.
47212         * modules/printf-frexpl (Depends-on): Add math.
47213         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
47214
47215 2007-03-05  Bruno Haible  <bruno@clisp.org>
47216
47217         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
47218         frexpl and ldexpl are declared.
47219         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
47220
47221 2007-03-05  Bruno Haible  <bruno@clisp.org>
47222
47223         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
47224         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
47225
47226 2007-03-05  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/stdio_.h: Include <stddef.h>.
47229
47230 2007-03-05  Bruno Haible  <bruno@clisp.org>
47231
47232         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
47233
47234 2007-03-05  Bruno Haible  <bruno@clisp.org>
47235
47236         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
47237         NetBSD 4, from Ralf Wildenhues.
47238
47239 2007-03-04  Bruno Haible  <bruno@clisp.org>
47240
47241         * lib/vasprintf.h: Update #if logic for the case when the functions
47242         exist but are overridden.
47243
47244 2007-03-04  Bruno Haible  <bruno@clisp.org>
47245
47246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
47247         implementations: glibc-2.4 and MacOS X 10.3.
47248         * tests/test-vasnprintf-posix.c (test_function): Test also the case
47249         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
47250         * tests/test-vasprintf-posix.c (test_function): Likewise.
47251
47252 2007-03-04  Bruno Haible  <bruno@clisp.org>
47253
47254         * modules/vasprintf-posix-tests: New file.
47255         * tests/test-vasprintf-posix.c: New file.
47256
47257         * modules/vasprintf-posix: New file.
47258         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47259         defined.
47260         * m4/vasprintf-posix.m4: New file.
47261         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47262         gl_FUNC_VASPRINTF.
47263         (gl_FUNC_VASPRINTF): Invoke it.
47264         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47265         here.
47266         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47267
47268 2007-03-04  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47271         REPLACE_GETTIMEOFDAY.
47272         * modules/sys_time (Makefile.am): Likewise.
47273         * m4/sys_time_h.m4: Likewise.
47274         * m4/gettimeofday.m4: Likewise.
47275
47276 2007-03-04  Bruno Haible  <bruno@clisp.org>
47277
47278         * modules/vasnprintf-posix-tests: New file.
47279         * tests/test-vasnprintf-posix.c: New file.
47280
47281         * modules/vasnprintf-posix: New file.
47282         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47283         printf-frexpl.h.
47284         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47285         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47286         REPLACE_VASNPRINTF is defined.
47287         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47288         gl_FUNC_VASNPRINTF.
47289         (gl_FUNC_VASNPRINTF): Invoke it.
47290         * m4/vasnprintf-posix.m4: New file.
47291         * m4/printf.m4: New file.
47292
47293 2007-03-04  Bruno Haible  <bruno@clisp.org>
47294
47295         Compile progreloc.c only if --enable-relocatable is specified.
47296         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47297         if --enable-relocatable was specified.
47298         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47299         lib_SOURCES.
47300
47301 2007-03-04  Jim Meyering  <jim@meyering.net>
47302
47303         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47304         Use it consistently, rather than enumerating errno constants.
47305
47306 2007-03-04  Bruno Haible  <bruno@clisp.org>
47307
47308         * modules/xvasprintf-tests: New file.
47309         * tests/test-xvasprintf.c: New file.
47310
47311         * modules/vasprintf-tests: New file.
47312         * tests/test-vasprintf.c: New file.
47313
47314         * modules/vasnprintf-tests: New file.
47315         * tests/test-vasnprintf.c: New file.
47316
47317         * modules/vsnprintf-tests: New file.
47318         * tests/test-vsnprintf.c: New file.
47319
47320         * modules/snprintf-tests: New file.
47321         * tests/test-snprintf.c: New file.
47322
47323 2007-03-04  Bruno Haible  <bruno@clisp.org>
47324
47325         Compile relocatable.c only if --enable-relocatable is specified.
47326         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47327         gl_RELOCATABLE_LIBRARY.
47328         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47329         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47330         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47331         gl_RELOCATABLE_LIBRARY.
47332         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47333         (Makefile.am): Remove lib_SOURCES.
47334         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47335         gl_RELOCATABLE_LIBRARY.
47336         (Makefile.am): Remove lib_SOURCES.
47337         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47338         always.
47339         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47340         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47341
47342 2007-03-04  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/argmatch-tests: New file.
47345         * tests/test-argmatch.c: New file.
47346
47347         * tests/test-allocsa.c (main): Halve the number of loop runs.
47348
47349         * modules/alloca-opt-tests: New file.
47350         * tests/test-alloca-opt.c: New file.
47351
47352 2007-03-04  Jim Meyering  <jim@meyering.net>
47353
47354         Work around difference between Linux ACLs and Solaris 10 ZFS.
47355         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47356         for EINVAL.
47357
47358 2007-03-03  Bruno Haible  <bruno@clisp.org>
47359
47360         * modules/relocatable-prog (Depends-on): Add back progreloc's
47361         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47362
47363 2007-03-03  Bruno Haible  <bruno@clisp.org>
47364
47365         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47366         * modules/relocatable-lib: New file.
47367
47368 2007-03-03  Bruno Haible  <bruno@clisp.org>
47369
47370         * modules/relocatable-prog: Renamed from modules/relocatable.
47371         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47372
47373 2007-03-03  Bruno Haible  <bruno@clisp.org>
47374
47375         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47376         m4/relocatable-lib.m4.
47377         (Depends-on): Remove 'relocatable'.
47378         (configure.ac): Add gl_RELOCATABLE_NOP.
47379
47380 2007-03-03  Bruno Haible  <bruno@clisp.org>
47381
47382         * modules/relocatable-prog-wrapper: New file.
47383         * modules/relocatable (Depends-on): Add it. Remove all other
47384         dependencies except progname.
47385         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47386
47387         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47388         (gl_FUNC_STRERROR): Nop.
47389         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47390
47391         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47392         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47393
47394         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47395         (gl_FUNC_READLINK): Update.
47396
47397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47398
47399 2007-03-03  Bruno Haible  <bruno@clisp.org>
47400
47401         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47402         * modules/xreadlink (Depends-on): Add unistd.
47403         * modules/xreadlink-with-size (Depends-on): Likewise.
47404
47405 2007-03-03  Bruno Haible  <bruno@clisp.org>
47406
47407         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47408         extracted from gt_FUNC_SETENV.
47409         (gt_FUNC_SETENV): Remove macro.
47410         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47411         remove gt_FUNC_SETENV.
47412
47413 2007-03-03  Bruno Haible  <bruno@clisp.org>
47414
47415         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47416         ENABLE_RELOCATABLE here.
47417         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47418
47419 2007-03-03  Bruno Haible  <bruno@clisp.org>
47420
47421         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47422         * tests/test-rbtreehash_list.c: Include progname.h.
47423         (main): Call set_program_name.
47424
47425         * modules/rbtree-oset-tests (Depends-on): Add progname.
47426         * tests/test-rbtree_oset.c: Include progname.h.
47427         (main): Call set_program_name.
47428
47429         * modules/rbtree-list-tests (Depends-on): Add progname.
47430         * tests/test-rbtree_list.c: Include progname.h.
47431         (main): Call set_program_name.
47432
47433         * modules/linked-list-tests (Depends-on): Add progname.
47434         * tests/test-linked_list.c: Include progname.h.
47435         (main): Call set_program_name.
47436
47437 2007-03-03  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47440         All uses of __restrict changed to _Restrict_.
47441         * lib/glob_.h (__restrict): Remove macro.
47442
47443 2007-03-02  Bruno Haible  <bruno@clisp.org>
47444
47445         * modules/gettext (configure.ac): Require gettext infrastructure
47446         from version 0.16.1.
47447
47448 2007-03-02  Bruno Haible  <bruno@clisp.org>
47449
47450         * modules/linkedhash-list-tests (Depends-on): Add progname.
47451         * tests/test-linkedhash_list.c: Include progname.h.
47452         (main): Call set_program_name.
47453
47454         * modules/carray-list-tests (Depends-on): Add progname.
47455         * tests/test-carray_list.c: Include progname.h.
47456         (main): Call set_program_name.
47457
47458         * modules/avltreehash-list-tests (Depends-on): Add progname.
47459         * tests/test-avltreehash_list.c: Include progname.h.
47460         (main): Call set_program_name.
47461
47462         * modules/avltree-oset-tests (Depends-on): Add progname.
47463         * tests/test-avltree_oset.c: Include progname.h.
47464         (main): Call set_program_name.
47465
47466         * modules/avltree-list-tests (Depends-on): Add progname.
47467         * tests/test-avltree_list.c: Include progname.h.
47468         (main): Call set_program_name.
47469
47470         * modules/array-oset-tests (Depends-on): Add progname.
47471         * tests/test-array_oset.c: Include progname.h.
47472         (main): Call set_program_name.
47473
47474         * modules/array-list-tests (Depends-on): Add progname.
47475         * tests/test-array_list.c: Include progname.h.
47476         (main): Call set_program_name.
47477
47478         * modules/argp-tests (Depends-on): Add progname.
47479         * tests/test-argp.c: Include argp.h first. Include progname.h.
47480         (main): Call set_program_name.
47481
47482 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47483
47484         * doc/gnulib-tool.texi (Initial import): Reword description of
47485         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47486         limited effect even if defined after the first system include.
47487
47488 2007-03-01  Bruno Haible  <bruno@clisp.org>
47489
47490         * build-aux/config.libpath: Update to libtool-1.5.22.
47491         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47492
47493 2007-03-01  Bruno Haible  <bruno@clisp.org>
47494
47495         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47496         foo_CFLAGS.
47497         Reported by Ralf Wildenhues.
47498
47499 2007-03-01  Bruno Haible  <bruno@clisp.org>
47500
47501         * build-aux/install-reloc: Remove object files left over by some
47502         compilers.
47503         Reported by Ralf Wildenhues.
47504
47505 2007-03-01  Bruno Haible  <bruno@clisp.org>
47506
47507         * build-aux/install-reloc: Break long lines.
47508
47509 2007-03-01  Bruno Haible  <bruno@clisp.org>
47510
47511         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47512         Reported by Ralf Wildenhues.
47513
47514 2007-03-01  Bruno Haible  <bruno@clisp.org>
47515
47516         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47517         include ordering constraints.
47518
47519 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47522         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47523         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47524         as another example.
47525         * lib/time_.h: Fix misspelling.
47526         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47527         Require gl_HEADER_TIME_H_DEFAULTS.
47528         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47529         * m4/time_r.m4 (gl_TIME_R): Likewise.
47530         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47531
47532 2007-03-01  Bruno Haible  <bruno@clisp.org>
47533
47534         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47535         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47536
47537 2007-03-01  Jim Meyering  <jim@meyering.net>
47538
47539         * modules/xreadlink (Maintainer): Add my name.
47540         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47541
47542 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47543             Bruno Haible  <bruno@clisp.org>
47544
47545         * build-aux/install-reloc: Compile also c-ctype.c.
47546         * build-aux/relocatable.sh.in: New file.
47547         * doc/relocatable.texi: New file.
47548         * doc/relocatable-maint.texi: New file.
47549         * doc/gnulib.texi: Include relocatable-maint.texi.
47550         * lib/progreloc.c: Include unistd.h unconditionally.
47551         * lib/relocwrapper.c: Include unistd.h unconditionally.
47552         Include c-ctype.h.
47553         (add_dotbin): Use c_tolower.
47554         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47555         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47556         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47557         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47558         to m4/relocatable-lib.m4.
47559         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47560         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47561         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47562         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47563         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47564         * modules/relocatable: New file.
47565         * modules/relocatable-lib: New file.
47566         * modules/relocatable-script: New file.
47567
47568 2007-02-28  Bruno Haible  <bruno@clisp.org>
47569
47570         Import --enable-relocatable infrastructure.
47571         * build-aux/config.libpath: New file, from GNU gettext.
47572         * build-aux/install-reloc: New file, from GNU gettext.
47573         * build-aux/reloc-ldflags: New file, from GNU gettext.
47574         * lib/relocatable.h: New file, from GNU gettext.
47575         * lib/relocatable.c: New file, from GNU gettext.
47576         * lib/relocwrapper.c: New file, from GNU gettext.
47577         * m4/relocatable.m4: New file, from GNU gettext.
47578
47579 2007-02-28  Bruno Haible  <bruno@clisp.org>
47580
47581         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47582
47583         * modules/xreadlink: New file, from GNU gettext with modifications.
47584         * lib/xreadlink.c: New file, from GNU gettext.
47585         * lib/xreadlink.h: Add comments.
47586         (xreadlink): New declaration.
47587
47588         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47589         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47590         lib/xreadlink-with-size.c.
47591         (configure.ac): Remove gl_XREADLINK invocation.
47592         (Makefile.am): Augment lib_SOURCES.
47593         * m4/xreadlink.m4: Remove file.
47594         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47595         (xreadlink_with_size): Renamed from xreadink.
47596         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47597         * modules/canonicalize (Depends-on): Replace xreadlink with
47598         xreadlink-with-size.
47599         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47600
47601 2007-02-25  Jim Meyering  <jim@meyering.net>
47602
47603         * build-aux/announce-gen: When complaining about excess arguments,
47604         list them.
47605
47606 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47607
47608         * README: Document signed integer overflow situation more
47609         accurately.
47610
47611 2007-02-25  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47614         'a' or 'A' conversion.
47615
47616 2007-02-25  Bruno Haible  <bruno@clisp.org>
47617
47618         * modules/filename: Renamed from modules/pathname.
47619         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47620         lib/concatpath.c with lib/concat-filename.c.
47621         (Makefile.am): Update.
47622         (Include): Replace pathname.h with filename.h.
47623         * lib/filename.h: Renamed from lib/pathname.h.
47624         (concatenated_filename): Renamed from concatenated_pathname.
47625         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47626         (concatenated_filename): Renamed from concatenated_pathname.
47627         * lib/findprog.c: Include filename.h instead of pathname.h.
47628         (find_in_path): Update.
47629         * lib/javacomp.c: Include filename.h instead of pathname.h.
47630         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47631         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47632         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47633         is_oldgcj_14_13_usable, is_javac_usable): Update.
47634         * lib/javaexec.c: Include filename.h instead of pathname.h.
47635         (execute_java_class): Update.
47636         * modules/findprog: Update.
47637         * modules/javacomp: Update.
47638         * modules/javaexec: Update.
47639         * MODULES.html.sh (File system functions): Add 'filename', remove
47640         'pathname'.
47641
47642 2007-02-25  Bruno Haible  <bruno@clisp.org>
47643
47644         * modules/printf-frexpl-tests: New file.
47645         * tests/test-printf-frexpl.c: New file.
47646
47647         * modules/printf-frexpl: New file.
47648         * lib/printf-frexpl.h: New file.
47649         * lib/printf-frexpl.c: New file.
47650         * m4/printf-frexpl.m4: New file.
47651
47652 2007-02-25  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/printf-frexp-tests: New file.
47655         * tests/test-printf-frexp.c: New file.
47656
47657         * modules/printf-frexp: New file.
47658         * lib/printf-frexp.h: New file.
47659         * lib/printf-frexp.c: New file.
47660         * m4/printf-frexp.m4: New file.
47661
47662 2007-02-25  Bruno Haible  <bruno@clisp.org>
47663
47664         Assume automake >= 1.10 for the tests.
47665         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47666         * modules/arctwo-tests: Likewise.
47667         * modules/argp-tests: Likewise.
47668         * modules/avltree-list-tests: Likewise.
47669         * modules/avltree-oset-tests: Likewise.
47670         * modules/avltreehash-list-tests: Likewise.
47671         * modules/carray-list-tests: Likewise.
47672         * modules/crc-tests: Likewise.
47673         * modules/des-tests: Likewise.
47674         * modules/gc-arcfour-tests: Likewise.
47675         * modules/gc-arctwo-tests: Likewise.
47676         * modules/gc-des-tests: Likewise.
47677         * modules/gc-hmac-md5-tests: Likewise.
47678         * modules/gc-hmac-sha1-tests: Likewise.
47679         * modules/gc-md2-tests: Likewise.
47680         * modules/gc-md4-tests: Likewise.
47681         * modules/gc-md5-tests: Likewise.
47682         * modules/gc-pbkdf2-sha1-tests: Likewise.
47683         * modules/gc-rijndael-tests: Likewise.
47684         * modules/gc-sha1-tests: Likewise.
47685         * modules/gc-tests: Likewise.
47686         * modules/getaddrinfo-tests: Likewise.
47687         * modules/hmac-md5-tests: Likewise.
47688         * modules/hmac-sha1-tests: Likewise.
47689         * modules/linked-list-tests: Likewise.
47690         * modules/linkedhash-list-tests: Likewise.
47691         * modules/lock-tests: Likewise.
47692         * modules/md2-tests: Likewise.
47693         * modules/md4-tests: Likewise.
47694         * modules/md5-tests: Likewise.
47695         * modules/rbtree-list-tests: Likewise.
47696         * modules/rbtree-oset-tests: Likewise.
47697         * modules/rbtreehash-list-tests: Likewise.
47698         * modules/read-file-tests: Likewise.
47699         * modules/rijndael-tests: Likewise.
47700         * modules/stdint-tests: Likewise.
47701         * modules/tls-tests: Likewise.
47702
47703 2007-02-24  Bruno Haible  <bruno@clisp.org>
47704
47705         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47706         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47707         function; instead check whether isnan with a double argument links.
47708         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47709         function; instead check whether isnan with a 'long double' argument
47710         links.
47711         Reported by Eric Blake <ebb9@byu.net>.
47712
47713 2007-02-24  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47716         defined.
47717         * lib/isnanl.c: Remove all code. Just include isnan.c.
47718         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47719
47720 2007-02-25  Jim Meyering  <jim@meyering.net>
47721
47722         Avoid conflicting types for 'unsetenv' on FreeBSD.
47723         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47724         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47725         in stdlib.h.
47726
47727 2007-02-24  Bruno Haible  <bruno@clisp.org>
47728
47729         * modules/isnanl-nolibm-tests: New file.
47730         * tests/test-isnanl.c: New file.
47731
47732         * modules/isnanl-nolibm: New file.
47733         * lib/isnanl.h: New file.
47734         * lib/isnanl.c: New file.
47735         * m4/isnanl.m4: New file.
47736
47737 2007-02-24  Bruno Haible  <bruno@clisp.org>
47738
47739         * modules/isnan-nolibm-tests: New file.
47740         * tests/test-isnan.c: New file.
47741
47742         * modules/isnan-nolibm: New file.
47743         * lib/isnan.h: New file.
47744         * lib/isnan.c: New file.
47745         * m4/isnan.m4: New file.
47746
47747 2007-02-24  Bruno Haible  <bruno@clisp.org>
47748
47749         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47750         assume that an exponent fits in 20 bits.
47751
47752 2007-02-24  Jim Meyering  <jim@meyering.net>
47753
47754         * m4/regex.m4: Update the description of the configure-time option,
47755         --without-included-regex, to state accurately what the defaults are,
47756         and perhaps to give people an idea why using this option is risky.
47757
47758 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47759
47760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47761         loops on small arguments.  This attempts to avoid the problem
47762         Bruno Haible reported for AIX 4.3.2 in
47763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47764
47765 2007-02-23  Bruno Haible  <bruno@clisp.org>
47766
47767         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47768         Needed for help2man.
47769
47770 2007-02-23  Karl Berry  <karl@gnu.org>
47771
47772         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47773         exists, foo.h should be cvs-ignored, not committed.
47774
47775 2007-02-23  Eric Blake  <ebb9@byu.net>
47776
47777         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47778         * lib/stat-time.h (includes): Likewise.
47779         * lib/utimecmp.c (includes): Likewise.
47780         * lib/utimens.h (includes): Likewise.
47781         * lib/getdate.y (includes): Also include "timespec.h" for use
47782         internal to the module.
47783         * modules/utimens (Depends-on): Revert yesterday's patch.
47784         * modules/nanosleep (Depends-on): Add missing dependency.
47785
47786 2007-02-22  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/glob.c: Don't include getlogin_r.h.
47789
47790 2007-02-22  Jim Meyering  <jim@meyering.net>
47791
47792         * modules/utimens (Depends-on): Add timespec, required for
47793         utimens.h's inclusion of timespec.h.
47794
47795 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47796
47797         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47798         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47799         Schwab in
47800         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47801         I'll try to think of a better way to fix the Solaris problem.
47802
47803         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47804         like glibc; on Solaris 10, it fails with errno == EINVAL.
47805         POSIX says the behavior is unspecified if the first argument is NULL,
47806         so play it safe and never pass NULL to the system getcwd.
47807
47808 2007-02-21  Jim Meyering  <jim@meyering.net>
47809
47810         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47811         of gettimeofday.  It would conflict with the one now always
47812         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47813         an IRIX 6.5 build failure.
47814
47815 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47816
47817         Minor fixups to port to Solaris 10 with Sun C 5.8.
47818         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47819         * modules/getcwd (Depends-on): Add dirfd.
47820         * lib/putenv.c (putenv): #undef it.
47821         (rpl_putenv): New decl.
47822         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47823
47824 2007-02-20  Bruno Haible  <bruno@clisp.org>
47825
47826         * modules/stdio-tests: New file.
47827         * tests/test-stdio.c: New file.
47828
47829         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47830         (Depends-on): Add stdio.
47831         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47832         (Include): Use <stdio.h> instead of vsnprintf.h.
47833         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47834         HAVE_DECL_VSNPRINTF.
47835         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47836
47837         * modules/snprintf (Files): Remove lib/snprintf.h.
47838         (Depends-on): Add stdio.
47839         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47840         (Include): Use <stdio.h> instead of snprintf.h.
47841         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47842         HAVE_DECL_SNPRINTF.
47843         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47844         * lib/getaddrinfo.c: Likewise.
47845
47846         * modules/stdio: New file.
47847         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47848         * lib/snprintf.h: Remove file.
47849         * lib/vsnprintf.h: Remove file.
47850         * lib/.cppi-disable: Remove snprintf.h.
47851         * m4/stdio_h.m4: New file.
47852         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47853
47854 2007-02-20  Jim Meyering  <jim@meyering.net>
47855
47856         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47857         used by e.g., mingw.  From Bruno Haible.
47858
47859 2007-02-19  Bruno Haible  <bruno@clisp.org>
47860
47861         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47862         warnings.
47863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47864
47865 2007-02-19  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47868         from mingw users.
47869
47870 2007-02-19  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47873         warnings.
47874         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47875
47876 2007-02-19  Jim Meyering  <jim@meyering.net>
47877
47878         Don't use FD after a successful "fdopendir (fd)".
47879         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47880         Reset it by calling dirfd on the just-obtained DIR*.
47881
47882         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47883         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47884
47885 2007-02-18  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/readlink.c: Include <unistd.h>.
47888         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47889         HAVE_READLINK.
47890         * modules/readlink (Depends-on): Add unistd.
47891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47892         (Include): Add <unistd.h>.
47893
47894         * lib/getlogin_r.h: Remove file.
47895         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47896         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47897         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47898         HAVE_DECL_GETLOGIN_R.
47899         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47901         (Include): Use <unistd.h> instead of getlogin_r.h.
47902
47903         * lib/getcwd.h: Remove file.
47904         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47905         * lib/xgetcwd.c: Likewise.
47906         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47907         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47908         * modules/getcwd (Files): Remove lib/getcwd.h.
47909         (Depends-on): Add unistd.
47910         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47911         (Include): Use <unistd.h> instad of getcwd.h.
47912
47913         * lib/ftruncate.c: Include <unistd.h> first.
47914         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47915         Set HAVE_FTRUNCATE.
47916         * modules/ftruncate (Depends-on): Add unistd.
47917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47918
47919         * lib/fchdir.c: Include <unistd.h> first.
47920         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47922         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47923         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47924         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47925
47926         * lib/dup2.c: Include <unistd.h> first.
47927         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47928         HAVE_DUP2.
47929         * modules/dup2 (Depends-on): Add unistd.
47930         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47931
47932         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47933         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47934         REPLACE_CHOWN. Don't define chown as a macro here.
47935         * modules/chown (Depends-on): Add unistd.
47936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47937
47938         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47939         Add definition for GL_LINK_WARNING.
47940         (chown, dup2): New declarations.
47941         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47942         link warning.
47943         (ftruncate): New declaration.
47944         (getcwd): New declaration, taken from old getcwd.h.
47945         (getlogin_r): New declaration, taken from old getlogin_r.h.
47946         (readlink): New declaration.
47947         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47948         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47949         (gl_PREREQ_UNISTD): Remove macro.
47950         (gl_UNISTD_MODULE_INDICATOR): New macro.
47951         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47952         many new variables. Don't set UNISTD_H.
47953         * modules/unistd (Description): Change.
47954         (Depends-on): Add link-warning.
47955         (configure.ac): Update.
47956         (Makefile.am): Create unistd.h always. Substitute many new variables
47957         into it.
47958
47959 2007-02-18  Bruno Haible  <bruno@clisp.org>
47960
47961         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47962         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47963         HAVE_GETSUBOPT.
47964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47965         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47966         * lib/getsubopt.h: Remove file.
47967         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47968         (Depends-on): Add stdlib.
47969         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47970         (Includes): Use <stdlib.h> instead of getsubopt.h.
47971         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47972         Set HAVE_GETSUBOPT.
47973         * lib/getsubopt.c: Don't include getsubopt.h.
47974
47975 2007-02-18  Bruno Haible  <bruno@clisp.org>
47976
47977         * modules/fchdir (Depends-on): Add dup2.
47978
47979 2007-02-18  Bruno Haible  <bruno@clisp.org>
47980
47981         * lib/stdlib_.h: Handle glibc's special invocation convention
47982         specially.
47983
47984 2007-02-18  Bruno Haible  <bruno@clisp.org>
47985
47986         * modules/stdlib-tests: New file.
47987         * tests/test-stdlib.c: New file.
47988
47989         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47990         (Depends-on): Add stdlib.
47991         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47992         (Includes): Use <stdlib.h> instead of mkstemp.h.
47993         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47994         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47995         * lib/mkstemp.c: Don't include mkstemp.h.
47996         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47997         * lib/stdlib--.h: Don't include mkstemp.h.
47998
47999         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
48000         (Depends-on): Add stdlib.
48001         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48002         (Includes): Use <stdlib.h> instead of mkdtemp.h.
48003         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48004         HAVE_MKDTEMP.
48005         * lib/mkdtemp.c: Don't include mkdtemp.h.
48006         * lib/clean-temp.c: Don't include mkdtemp.h.
48007
48008         * modules/exit (Files): Remove lib/exit.h.
48009         (Depends-on): Add stdlib.
48010         (Makefile.am): Remove lib_SOURCES.
48011         (Include): Use <stdlib.h> instead of exit.h.
48012         * lib/argmatch.c: Don't include exit.h.
48013         * lib/execute.c: Likewise.
48014         * lib/pagealign_alloc.c: Likewise.
48015         * lib/pipe.c: Likewise.
48016         * lib/wait-process.c: Likewise.
48017         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
48018         * lib/exitfail.c: Likewise.
48019         * lib/savewd.c: Likewise.
48020         * lib/xsetenv.c: Likewise.
48021
48022         * modules/stdlib: New file.
48023         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48024         and extra comments about mkstemp().
48025         * lib/exit.h: Remove file.
48026         * lib/mkdtemp.h: Remove file.
48027         * lib/mkstemp.h: Remove file.
48028         * m4/stdlib_h.m4: New file.
48029         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
48030
48031 2007-02-18  Bruno Haible  <bruno@clisp.org>
48032
48033         * modules/math-tests: New file.
48034         * tests/test-math.c: New file.
48035
48036         * modules/math: New file.
48037         * modules/mathl (Files): Remove lib/mathl.h.
48038         (Depends-on): Add math.
48039         (Makefile.am): Don't mention mathl.h.
48040         (Include): Use <math.h> instead of mathl.h.
48041         * lib/math_.h: New file.
48042         * lib/mathl.h: Remove file.
48043         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
48044         mathl.h.
48045         * lib/asinl.c: Likewise.
48046         * lib/atanl.c: Likewise.
48047         * lib/ceill.c: Likewise.
48048         * lib/cosl.c: Likewise.
48049         * lib/expl.c: Likewise.
48050         * lib/floorl.c: Likewise.
48051         * lib/frexpl.c: Likewise.
48052         * lib/ldexpl.c: Likewise.
48053         * lib/logl.c: Likewise.
48054         * lib/sincosl.c: Likewise.
48055         * lib/sinl.c: Likewise.
48056         * lib/sqrtl.c: Likewise.
48057         * lib/tanl.c: Likewise.
48058         * lib/trigl.c: Likewise.
48059         * m4/math_h.m4: New file.
48060         * MODULES.html.sh (Mathematics): Add math.
48061
48062 2007-02-17  Bruno Haible  <bruno@clisp.org>
48063
48064         * modules/wctype-tests: New file.
48065         * tests/test-wctype.c: New file.
48066
48067         * modules/wchar-tests: New file.
48068         * tests/test-wchar.c: New file.
48069
48070         * modules/unistd-tests: New file.
48071         * tests/test-unistd.c: New file.
48072
48073         * modules/time-tests: New file.
48074         * tests/test-time.c: New file.
48075
48076         * modules/sysexits-tests: New file.
48077         * tests/test-sysexits.c: New file.
48078
48079         * modules/sys_time-tests: New file.
48080         * tests/test-sys_time.c: New file.
48081
48082         * modules/sys_stat-tests: New file.
48083         * tests/test-sys_stat.c: New file.
48084
48085         * modules/sys_socket-tests: New file.
48086         * tests/test-sys_socket.c: New file.
48087
48088         * modules/sys_select-tests: New file.
48089         * tests/test-sys_select.c: New file.
48090
48091         * modules/string-tests: New file.
48092         * tests/test-string.c: New file.
48093
48094         * modules/stdbool-tests: New file.
48095         * tests/test-stdbool.c: New file.
48096
48097         * modules/netinet_in-tests: New file.
48098         * tests/test-netinet_in.c: New file.
48099
48100         * modules/inttypes-tests: New file.
48101         * tests/test-inttypes.c: New file.
48102
48103         * modules/fcntl-tests: New file.
48104         * tests/test-fcntl.c: New file.
48105
48106         * modules/byteswap-tests: New file.
48107         * tests/test-byteswap.c: New file.
48108
48109         * modules/arpa_inet-tests: New file.
48110         * tests/test-arpa_inet.c: New file.
48111
48112 2007-02-17  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48115         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48116         if the corresponding module is not enabled. Emit link warnings if
48117         the function is used nevertheless.
48118         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48119         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48120         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48121         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48122         * modules/inttypes (Depends-on): Add link-warning.
48123         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48124         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48125         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48126         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48127         * modules/imaxdiv (configure.ac): Likewise.
48128         * modules/strtoimax (configure.ac): Likewise.
48129         * modules/strtoumax (configure.ac): Likewise.
48130
48131 2007-02-17  Bruno Haible  <bruno@clisp.org>
48132
48133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
48134         gl_STRING_MODULE_INDICATOR_DEFAULTS.
48135         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
48136         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
48137
48138 2007-02-17  Bruno Haible  <bruno@clisp.org>
48139
48140         * modules/link-warning: New file.
48141         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
48142         * lib/string_.h (GL_LINK_WARNING): Remove definition.
48143         * modules/string (Depends-on): Add link-warning.
48144         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48145         string.h.
48146         * MODULES.html.sh (Support for building libraries and executables): Add
48147         link-warning.
48148
48149 2007-02-17  Bruno Haible  <bruno@clisp.org>
48150
48151         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
48152         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
48153         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
48154         long lines.
48155
48156 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
48157             Bruno Haible  <bruno@clisp.org>
48158
48159         * modules/tmpfile: New file.
48160         * lib/tmpfile.c: New file.
48161         * m4/tmpfile.m4: New file.
48162         * MODULES.html.sh (func_all_modules): New section "Input/output".
48163
48164 2007-02-15  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
48167         (supports_delete_on_close): New function.
48168         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
48169
48170 2007-02-14  Bruno Haible  <bruno@clisp.org>
48171
48172         * modules/mbspcasecmp-tests: New file.
48173         * tests/test-mbspcasecmp.sh: New file.
48174         * tests/test-mbspcasecmp.c: New file.
48175
48176         New module mbspcasecmp.
48177         * modules/mbspcasecmp: New file.
48178         * lib/mbspcasecmp.c: New file.
48179         * lib/string_.h (strncasecmp): Change warning message.
48180         (mbspcasecmp): New declaration.
48181         * m4/mbspcasecmp.m4: New file.
48182         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48183         GNULIB_MBSPCASECMP.
48184         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
48185         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
48186
48187 2007-02-14  Bruno Haible  <bruno@clisp.org>
48188
48189         * modules/mbsncasecmp-tests: New file.
48190         * tests/test-mbsncasecmp.sh: New file.
48191         * tests/test-mbsncasecmp.c: New file.
48192
48193         New module mbsncasecmp.
48194         * modules/mbsncasecmp: New file.
48195         * lib/mbsncasecmp.c: New file.
48196         * lib/string_.h (mbsncasecmp): New declaration.
48197         * m4/mbsncasecmp.m4: New file.
48198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48199         GNULIB_MBSNCASECMP.
48200         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
48201         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
48202
48203 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48204
48205         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
48206         Verify that it doesn't overlap with our flags.
48207         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
48208         do not have the desired effect in multibyte locales; instead, use
48209         mbscasecmp.
48210         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
48211         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
48212         we don't require GNU fnmatch ourselves (if our users require it, they
48213         should do so explicitly).
48214
48215         Fix regex code so it doesn't rely on strcasecmp.
48216         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
48217         Otherwise, include gnulib's langinfo.h.
48218         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
48219         undesirable behavior in non-C locales.  Instead, rely on localecharset.
48220         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
48221         * modules/regex (FILES): Remove m4/codeset.m4.
48222         (Depends-on): Add localcharset.  Remove strcase.
48223
48224 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48225
48226         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
48227         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
48228
48229 2007-02-13  Bruno Haible  <bruno@clisp.org>
48230
48231         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
48232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48233
48234 2007-02-12  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48237         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
48238         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
48239         time warning rather than a link error.
48240
48241 2007-02-12  Bruno Haible  <bruno@clisp.org>
48242
48243         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
48244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48245         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48246
48247 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48248
48249         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
48250         args, not 2.
48251
48252 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48253
48254         New module 'time', so that apps can include <time.h> as per
48255         POSIX and GNU instead of separate include files like time_r.h
48256         and timegm.h.  This implementation tries out a simpler approach
48257         for replacing decls in standard include files (as compared to
48258         the string module), somewhat as an experiment.
48259
48260         * config/srclist.txt: Comment out mktime.c for now.
48261         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48262         since it doesn't apply any more.  Use generic wording instead.
48263         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48264         'time'.
48265         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48266         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48267         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48268         Don't include <sys/types.h>; no longer needed since we assume C89.
48269         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48270         * lib/strftime.c: Likewise.
48271         * lib/time_r.c: Likewise.
48272         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48273         * lib/nanosleep.c: Include <time.h> first, to check interface.
48274         * lib/strptime.c: Likewise.
48275         * lib/time_r.c: Likewise.
48276         * lib/timegm.c: Likewise.
48277         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48278         needed.
48279         * lib/timegm.c: Don't include timegm.h; no longer needed.
48280         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48281         time.h now handles any problems in that area.
48282         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48283         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48284         that time.h defines struct timespec.
48285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48286         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48287         handles that.
48288         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48289         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48290         needed.  Set REPLACE_LOCALTIME.
48291         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48292         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48293         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48294         nanosleep; time_h.m4 now does that.  Don't require
48295         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48296         module handles this now.
48297         * modules/getdate (Depends-on): Remove timespec.  Add time.
48298         * modules/nanosleep (Depends-on): Likewise.
48299         * modules/stat-time (Depends-on): Likewise.
48300         * modules/nanosleep (Include): Include time.h, not timespec.h.
48301         * modules/strptime (Files): Remove lib/strptime.h.
48302         (Depends-on): Add extensions, time.
48303         (Include): Include time.h, not strptime.h.
48304         * modules/time_r (Files): Remove lib/time_r.h.
48305         (Depends-on): Add time.
48306         (Include): Include time.h, not time_r.h.
48307         * modules/timegm: Likewise.
48308         * modules/timespec (Description): Now does timespec-related decls
48309         of our own, instead of struct timespec itself.
48310         (Depends-on): Add time; remove extensions.
48311         (Maintainer): Add self.
48312         * modules/utimecmp (Depends-on): Add time; remove timespec.
48313         * modules/utimens (Depends-on): Likewise.
48314         * modules/xnanosleep (Depends-on): Likewise.
48315
48316 2007-02-11  Bruno Haible  <bruno@clisp.org>
48317
48318         * lib/c-strstr.c: Include allocsa.h.
48319         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48320         * lib/c-strcasestr.c: Include allocsa.h.
48321         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48322         * lib/strcasestr.c: Include allocsa.h.
48323         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48324         * lib/mbsstr.c: Include allocsa.h.
48325         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48326         allocsa/freesa instead of malloc/free.
48327         * lib/mbscasestr.c: Include allocsa.h.
48328         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48329         allocsa/freesa instead of malloc/free.
48330         * modules/c-strstr (Depends-on): Add allocsa.
48331         * modules/c-strcasestr (Depends-on): Likewise.
48332         * modules/strcasestr (Depends-on): Likewise.
48333         * modules/mbsstr (Depends-on): Likewise.
48334         * modules/mbscasestr (Depends-on): Likewise.
48335
48336 2007-02-11  Bruno Haible  <bruno@clisp.org>
48337
48338         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48339
48340         * modules/mbsspn-tests: New file.
48341         * tests/test-mbsspn.sh: New file.
48342         * tests/test-mbsspn.c: New file.
48343
48344 2007-02-11  Bruno Haible  <bruno@clisp.org>
48345
48346         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48347
48348         * modules/mbspbrk-tests: New file.
48349         * tests/test-mbspbrk.sh: New file.
48350         * tests/test-mbspbrk.c: New file.
48351
48352 2007-02-11  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48355         unneeded cast.
48356
48357         * modules/mbscspn-tests: New file.
48358         * tests/test-mbscspn.sh: New file.
48359         * tests/test-mbscspn.c: New file.
48360
48361 2007-02-11  Bruno Haible  <bruno@clisp.org>
48362
48363         * modules/mbscasecmp-tests: New file.
48364         * tests/test-mbscasecmp.sh: New file.
48365         * tests/test-mbscasecmp.c: New file.
48366
48367 2007-02-11  Bruno Haible  <bruno@clisp.org>
48368
48369         Ensure O(n) worst-case complexity of mbscasestr.
48370         * lib/mbscasestr.c: Include stdbool.h.
48371         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48372         functions.
48373         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48374         the bookkeeping indicates that it's worth it.
48375         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48376
48377         * modules/mbscasestr-tests: New file.
48378         * tests/test-mbscasestr1.c: New file.
48379         * tests/test-mbscasestr2.sh: New file.
48380         * tests/test-mbscasestr2.c: New file.
48381         * tests/test-mbscasestr3.sh: New file.
48382         * tests/test-mbscasestr3.c: New file.
48383         * tests/test-mbscasestr4.sh: New file.
48384         * tests/test-mbscasestr4.c: New file.
48385         * m4/locale-tr.m4: New file.
48386
48387 2007-02-11  Bruno Haible  <bruno@clisp.org>
48388
48389         Ensure O(n) worst-case complexity of mbsstr.
48390         * lib/mbsstr.c: Include stdbool.h.
48391         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48392         functions.
48393         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48394         bookkeeping indicates that it's worth it.
48395         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48396
48397         * modules/mbsstr-tests: New file.
48398         * tests/test-mbsstr1.c: New file.
48399         * tests/test-mbsstr2.sh: New file.
48400         * tests/test-mbsstr2.c: New file.
48401         * tests/test-mbsstr3.sh: New file.
48402         * tests/test-mbsstr3.c: New file.
48403         * m4/locale-fr.m4: New file.
48404
48405 2007-02-11  Bruno Haible  <bruno@clisp.org>
48406
48407         * lib/mbsrchr.c (mbsrchr): Fix bug.
48408
48409         * modules/mbsrchr-tests: New file.
48410         * tests/test-mbsrchr.sh: New file.
48411         * tests/test-mbsrchr.c: New file.
48412
48413 2007-02-11  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/mbschr.c (mbschr): Fix bug.
48416
48417         * modules/mbschr-tests: New file.
48418         * tests/test-mbschr.sh: New file.
48419         * tests/test-mbschr.c: New file.
48420         * m4/locale-zh.m4: New file.
48421
48422 2007-02-11  Bruno Haible  <bruno@clisp.org>
48423
48424         Support for copying multibyte string iterators.
48425         * lib/mbiter.h: Include <string.h>.
48426         (mbiter_multi_copy): New function.
48427         (mbi_copy): New macro.
48428         * lib/mbuiter.h: Include <string.h>.
48429         (mbuiter_multi_copy): New function.
48430         (mbui_copy): New macro.
48431
48432 2007-02-11  Bruno Haible  <bruno@clisp.org>
48433
48434         New module mbslen.
48435         * modules/mbslen: New file.
48436         * lib/mbslen.c: New file.
48437         * lib/string_.h (mbslen): New declaration.
48438         * m4/mbslen.m4: New file.
48439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48440         GNULIB_MBSLEN.
48441         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48442         * MODULES.html.sh (Internationalization functions): Add mbslen.
48443
48444 2007-02-11  Bruno Haible  <bruno@clisp.org>
48445
48446         Ensure O(n) worst-case complexity of strcasestr substitute.
48447         * lib/strcasestr.c: Include stdbool.h.
48448         (knuth_morris_pratt): New function.
48449         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48450         bookkeeping indicates that it's worth it.
48451         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48452
48453         * modules/strcasestr-tests: New file.
48454         * tests/test-strcasestr.c: New file.
48455
48456 2007-02-11  Bruno Haible  <bruno@clisp.org>
48457
48458         Ensure O(n) worst-case complexity of c_strcasestr.
48459         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48460         (knuth_morris_pratt): New function.
48461         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48462         the bookkeeping indicates that it's worth it.
48463         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48464
48465         * modules/c-strcasestr-tests: New file.
48466         * tests/test-c-strcasestr.c: New file.
48467
48468 2007-02-11  Bruno Haible  <bruno@clisp.org>
48469
48470         Ensure O(n) worst-case complexity of c_strstr.
48471         * lib/c-strstr.c: Include stdbool.h, string.h.
48472         (knuth_morris_pratt): New function.
48473         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48474         bookkeeping indicates that it's worth it.
48475         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48476
48477         * lib/c-strstr.c: Complete rewrite for maintainability.
48478
48479         * modules/c-strstr-tests: New file.
48480         * tests/test-c-strstr.c: New file.
48481
48482 2007-02-11  Bruno Haible  <bruno@clisp.org>
48483
48484         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48485         5.2.1 and earlier, whereby \055 was treated just like the range
48486         delimiter '-'.
48487         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48488
48489 2007-02-08  Bruno Haible  <bruno@clisp.org>
48490
48491         * modules/regex (Depends-on): Add stdbool.
48492         Reported by Dalibor Topic <robilad@kaffe.org>.
48493
48494 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48495
48496         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48497         Prefer returning from main to exiting from it.
48498         Remove unnecessary parens after sizeof.
48499
48500 2007-02-05  Bruno Haible  <bruno@clisp.org>
48501
48502         New module mbssep.
48503         * modules/mbssep: New file.
48504         * lib/mbssep.c: New file.
48505         * lib/string_.h (strsep): Add a conditional link warning.
48506         (mbssep): New declaration.
48507         * m4/mbssep.m4: New file.
48508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48509         GNULIB_MBSSEP.
48510         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48511         * MODULES.html.sh (Internationalization functions): Add mbssep.
48512
48513 2007-02-05  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48516         Optimize search in case of 1 delimiter.
48517
48518 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48519
48520         * lib/acl.h: Include sys/types.h before sys/acl.h.
48521
48522 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48523
48524         Merge upstream fix for glibc bugzilla #3957:
48525
48526         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48527
48528         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48529         bit for RE_HAT_LISTS_NOT_NEWLINE.
48530         (build_charclass_op): Remove bogus comment.
48531
48532 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48533
48534         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48535
48536 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48537
48538         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48539         * lib/memmem.c [!defined _LIBC]: Include config.h.
48540
48541 2007-02-04  Bruno Haible  <bruno@clisp.org>
48542
48543         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48544         warning message.
48545
48546 2007-02-04  Bruno Haible  <bruno@clisp.org>
48547
48548         New module mbstok_r.
48549         * modules/mbstok_r: New file.
48550         * lib/mbstok_r.c: New file.
48551         * lib/string_.h (strtok_r): Change argument names to match the
48552         comments. Add a conditional link warning.
48553         (mbstok_r): New declaration.
48554         * m4/mbstok_r.m4: New file.
48555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48556         GNULIB_MBSTOK_R.
48557         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48558         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48559
48560 2007-02-04  Bruno Haible  <bruno@clisp.org>
48561
48562         New module mbsspn.
48563         * modules/mbsspn: New file.
48564         * lib/mbsspn.c: New file.
48565         * lib/string_.h (strspn): Add a conditional link warning.
48566         (mbsspn): New declaration.
48567         * m4/mbsspn.m4: New file.
48568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48569         GNULIB_MBSSPN.
48570         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48571         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48572
48573 2007-02-04  Bruno Haible  <bruno@clisp.org>
48574
48575         New module mbspbrk.
48576         * modules/mbspbrk: New file.
48577         * lib/mbspbrk.c: New file.
48578         * lib/string_.h (strpbrk): Add a conditional link warning.
48579         (mbspbrk): New declaration.
48580         * m4/mbspbrk.m4: New file.
48581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48582         GNULIB_MBSPBRK.
48583         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48584         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48585
48586 2007-02-04  Bruno Haible  <bruno@clisp.org>
48587
48588         New module mbscspn.
48589         * modules/mbscspn: New file.
48590         * lib/mbscspn.c: New file.
48591         * lib/string_.h (strcspn): Add a conditional link warning.
48592         (mbscspn): New declaration.
48593         * m4/mbscspn.m4: New file.
48594         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48595         GNULIB_MBSCSPN.
48596         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48597         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48598
48599 2007-02-04  Bruno Haible  <bruno@clisp.org>
48600
48601         New module mbscasestr, reduced goal of strcasestr.
48602         * modules/mbscasestr: New file.
48603         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48604         (mbscasestr): Renamed from strcasestr.
48605         * lib/strcasestr.c: Don't include mbuiter.h.
48606         (strcasestr): Remove support for multibyte locales.
48607         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48608         Change the conditional link warning.
48609         (mbscasestr): New declaration.
48610         * m4/mbscasestr.m4: New file.
48611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48612         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48613         REPLACE_STRCASESTR.
48614         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48616         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48617         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48618         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48619         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48620         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48621         (Depends-on): Remove mbuiter.
48622         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48623
48624 2007-02-04  Bruno Haible  <bruno@clisp.org>
48625
48626         Simplify handling of strncasecmp.
48627         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48628         the conditional link warning.
48629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48630         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48631         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48632         * modules/strcase (configure.ac): Don't invoke
48633         gl_STRING_MODULE_INDICATOR.
48634         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48635
48636 2007-02-04  Bruno Haible  <bruno@clisp.org>
48637
48638         New module mbscasecmp, reduced goal of strcasecmp.
48639         * modules/mbscasecmp: New file.
48640         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48641         (mbscasecmp): Renamed from strcasecmp.
48642         * lib/strcasecmp.c: Don't include mbuiter.h.
48643         (strcasecmp): Remove support for multibyte locales.
48644         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48645         Change the conditional link warning.
48646         (mbscasecmp): New declaration.
48647         * m4/mbscasecmp.m4: New file.
48648         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48649         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48650         REPLACE_STRCASECMP.
48651         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48653         GNULIB_MBSCASECMP.
48654         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48655         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48656         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48657         (Depends-on): Remove mbuiter.
48658         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48659
48660 2007-02-04  Bruno Haible  <bruno@clisp.org>
48661
48662         New module mbsstr. Remove module strstr.
48663         * modules/mbsstr: New file.
48664         * modules/strstr: Remove file.
48665         * lib/mbsstr.c: Renamed from lib/strstr.c.
48666         (mbsstr): Renamed from strstr.
48667         * lib/string_.h (strstr): Remove declaration. Change the conditional
48668         link warning.
48669         (mbsstr): New declaration.
48670         * m4/mbsstr.m4: New file.
48671         * m4/strstr.m4: Remove file.
48672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48673         REPLACE_STRSTR.
48674         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48675         Don't initialize GNULIB_STRSTR.
48676         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48677         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48678         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48679         (Support for systems lacking ANSI C 89): Remove strstr.
48680
48681 2007-02-04  Bruno Haible  <bruno@clisp.org>
48682
48683         New module mbsrchr.
48684         * modules/mbsrchr: New file.
48685         * lib/mbsrchr.c: New file.
48686         * lib/string_.h (strrchr): Add a conditional link warning.
48687         (mbsrchr): New declaration.
48688         * m4/mbsrchr.m4: New file.
48689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48690         GNULIB_MBSRCHR.
48691         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48692         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48693
48694 2007-02-04  Bruno Haible  <bruno@clisp.org>
48695
48696         New module mbschr.
48697         * modules/mbschr: New file.
48698         * lib/mbschr.c: New file.
48699         * lib/string_.h (strchr): Add a conditional link warning.
48700         (mbschr): New declaration.
48701         * m4/mbschr.m4: New file.
48702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48703         GNULIB_MBSCHR.
48704         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48705         * MODULES.html.sh (Internationalization functions): Add mbschr.
48706
48707 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48708
48709         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48710
48711         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48712
48713 2007-02-04  Bruno Haible  <bruno@clisp.org>
48714
48715         New module description section 'configure.ac-early'.
48716         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48717         (func_get_autoconf_early_snippet): New function.
48718         (func_import, func_create_testdir): Use it. Remove special cases for
48719         modules 'extensions' and 'lock'.
48720         * modules/extensions (configure.ac-early): Require
48721         gl_USE_SYSTEM_EXTENSIONS.
48722         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48723
48724 2007-02-04  Bruno Haible  <bruno@clisp.org>
48725
48726         Make use of gcj-4.3's -fsource and -ftarget option.
48727         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48728         and if so try the options -fsource and -ftarget.
48729         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48730         source_version, ftarget_option, target_version arguments.
48731         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48732         (is_envjavac_oldgcj_14_14_usable): Renamed from
48733         is_envjavac_gcj_14_14_usable.
48734         (is_envjavac_oldgcj_14_13_usable): Renamed from
48735         is_envjavac_gcj_14_13_usable.
48736         (is_gcj_present): Update.
48737         (is_gcj_43, is_gcj43_usable): New functions.
48738         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48739         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48740         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48741         try the options -fsource and -ftarget.
48742
48743 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48744
48745         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48746         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48747         larger value.
48748
48749 2007-02-03  Jim Meyering  <jim@meyering.net>
48750
48751         Give tools a better chance to allocate space for very large buffers.
48752         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48753
48754         Make pwd and readlink work also when run with an unreadable parent dir
48755         on systems with openat support.
48756         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48757         provided getcwd function, even when we have openat support.
48758         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48759
48760 2007-02-02  Bruno Haible  <bruno@clisp.org>
48761
48762         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48763         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48764         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48765         portability problems if one of these functions is only used on specific
48766         platforms.
48767         Reported by Paul Eggert.
48768
48769 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48770
48771         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48772         is causing more trouble than it's curing.
48773         * lib/regex_internal.h (__mempcpy): Remove.
48774         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48775         (and make the code a tad smaller to boot).
48776         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48777
48778 2007-02-02  Jim Meyering  <jim@meyering.net>
48779
48780         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48781         section, not in the Makefile.am: one.
48782
48783 2007-02-02  Eric Blake  <ebb9@byu.net>
48784
48785         * lib/strchrnul.c: Always include config.h first.
48786
48787         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48788         gnulib strstr is not necessary here.
48789
48790 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48791
48792         * m4/socklen.m4: Fix typo.
48793
48794 2007-02-02  Eric Blake  <ebb9@byu.net>
48795
48796         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48797         * modules/netinet_in (Makefile.am): Likewise.
48798
48799 2007-02-01  Bruno Haible  <bruno@clisp.org>
48800
48801         * lib/string_.h (GL_LINK_WARNING): New macro.
48802         (strcasecmp, strstr, strcasestr): If provided by the system,
48803         conditionally define as a macro that leads to a warning instead of to
48804         an error.
48805         (strncasecmp): Conditionally define as a macro that leads to a warning.
48806
48807 2007-02-01  Karl Berry  <karl@gnu.org>
48808
48809         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48810
48811 2007-02-01  Bruno Haible  <bruno@clisp.org>
48812
48813         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48814         renamings.
48815
48816 2007-02-01  Eric Blake  <ebb9@byu.net>
48817
48818         * modules/regex (Depends-on): Revert dependence on mempcpy.
48819         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48820         module's definition of mempcpy.
48821         Reported by Paul Eggert.
48822
48823 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48824
48825         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48826         the symbol XYZ before redefining it.  This fixes a problem with
48827         programs that don't use XYZ, when compiled on systems that define
48828         XYZ to something else.
48829
48830 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48831
48832         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48833         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48834         writeable to group or other and (2) is intended to have a special
48835         mode bit that is set or cleared.  In such a case, the directory
48836         should be neither group- nor other-writeable until the special
48837         mode bits are right.
48838
48839 2007-01-31  Eric Blake  <ebb9@byu.net>
48840
48841         * modules/mountlist (Depends-on): Add strstr.
48842
48843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48844         bug.
48845         * modules/string (Makefile.am): Remove redundant replacement.
48846         * modules/regex (Depends-on): Add mempcpy.
48847
48848 2007-01-31  Bruno Haible  <bruno@clisp.org>
48849
48850         New module description field 'Link'.
48851         * gnulib-tool (func_usage): Document --extract-link-directive.
48852         (sed_extract_prog): Recognize 'Link' directive.
48853         (func_get_link_directive): New function.
48854         (func_import): Show summary of link directives.
48855         Handle --extract-link-directive option.
48856         * modules/acl (Link): New section.
48857         * modules/clock-time (Link): New section.
48858         * modules/euidaccess (Link): New section.
48859         * modules/gettext (Link): New section.
48860         * modules/iconv (Link): New section.
48861         * modules/lock (Link): New section.
48862         * modules/nanosleep (Link): New section.
48863         * modules/readline (Link): New section.
48864
48865 2007-01-27  Bruno Haible  <bruno@clisp.org>
48866
48867         Enforce the use of gnulib modules for unportable <string.h> functions.
48868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48869         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48870         (gl_HEADER_STRING_H_BODY): Require it.
48871         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48872         the symbol XYZ to one that gives a link error.
48873         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48874         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48875         * modules/mempcpy (configure.ac): Likewise.
48876         * modules/memrchr (configure.ac): Likewise.
48877         * modules/stpcpy (configure.ac): Likewise.
48878         * modules/stpncpy (configure.ac): Likewise.
48879         * modules/strcase (configure.ac): Likewise.
48880         * modules/strcasestr (configure.ac): Likewise.
48881         * modules/strchrnul (configure.ac): Likewise.
48882         * modules/strdup (configure.ac): Likewise.
48883         * modules/strndup (configure.ac): Likewise.
48884         * modules/strnlen (configure.ac): Likewise.
48885         * modules/strpbrk (configure.ac): Likewise.
48886         * modules/strsep (configure.ac): Likewise.
48887         * modules/strstr (configure.ac): Likewise.
48888         * modules/strtok_r (configure.ac): Likewise.
48889
48890 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48891
48892         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48893
48894 2007-01-30  Jim Meyering  <jim@meyering.net>
48895
48896         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48897
48898 2007-01-29  Bruno Haible  <bruno@clisp.org>
48899
48900         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48901         * lib/execute.c: Likewise.
48902         * lib/pipe.c: Likewise.
48903         * lib/printf-args.h: Likewise.
48904         * lib/printf-args.c: Likewise.
48905         * lib/printf-parse.c: Likewise.
48906         * lib/vasnprintf.c: Likewise.
48907
48908 2007-01-29  Eric Blake  <ebb9@byu.net>
48909
48910         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48911         declaration.
48912
48913 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48914
48915         * lib/strptime.h (strptime): Use 'restrict' for args where
48916         POSIX requires this.
48917         * lib/strptime.c (strptime): Likewise.
48918         Change license notice from LGPL to GPL, since gnulib-tool will
48919         change this as needed.
48920         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48921         defined.
48922         Include "strptime.h" first, to check interface.
48923         Do not #undef _LIBC and _NL_CURRENT.
48924         Do not include <stdlib.h>; no longer needed.
48925         Include "time_r.h" and declare ptime_locale_status
48926         only if _LIBC is not defined.
48927         (__P): Remove unused macro.
48928         (match_string): Bring back glibc version, but use it only if _LIBC
48929         is defined.
48930         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48931         Remove unnecessary assertion and abort() call.
48932         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48933         * m4/strptime.m4: Fix serial number comment.
48934         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48935         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48936         (Depends-on): Add time_r.
48937
48938 2007-01-29  Bruno Haible  <bruno@clisp.org>
48939
48940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48941         strptime.
48942         * modules/strptime (Depends-on): Add stdbool.
48943         * lib/strptime.h: Include <time.h> always. Add comments.
48944
48945 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48946
48947         * modules/strptime: New file.
48948         * lib/strptime.h: New file.
48949         * lib/strptime.c: New file.
48950         * m4/strptime.m4: New file.
48951
48952 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48953
48954         * MODULES.html.sh: New module mpsort.
48955         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48956
48957         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48958         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48960         All uses changed.
48961         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48962         All uses changed.
48963         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48964         to _Restrict_.
48965         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48966         the parameter matches the prototype.
48967
48968 2007-01-28  Jim Meyering  <jim@meyering.net>
48969
48970         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48971         sys/time.h here, reverting that part of the previous patch:
48972         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48973
48974 2007-01-28  Bruno Haible  <bruno@clisp.org>
48975
48976         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48977         value of $(SYS_TIME_H).
48978         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48979         remove it conditionally, too. [added by Jim Meyering]
48980         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48982         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48983         GETTIMEOFDAY_REPLACEMENT to 1.
48984
48985 2007-01-28  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48988         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48990         Set UNISTD_H instead of UNISTD_H2.
48991         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48992
48993 2007-01-28  Bruno Haible  <bruno@clisp.org>
48994
48995         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48996         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48997
48998 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48999
49000         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
49001         (func_create_testdir): Ensure C locale for `grep' and `tr'
49002         character ranges.
49003         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
49004         ACLOCAL_AMFLAGS parsing state machine.
49005
49006 2007-01-27  Bruno Haible  <bruno@clisp.org>
49007
49008         * modules/unistr/base: Update.
49009
49010 2007-01-27  Bruno Haible  <bruno@clisp.org>
49011
49012         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
49013         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
49014         * modules/unistr/u32-mbtouc-unsafe: Renamed from
49015         modules/unistr/u32-mbtouc.
49016         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
49017         * lib/unistr.h: Update.
49018         * lib/linebreak.c: Update.
49019         * modules/unistr/u32-mbtouc: Renamed from
49020         modules/unistr/u32-mbtouc-safe.
49021         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
49022         * lib/unistr.h: Update.
49023         * lib/unistr/u32-to-u8.c: Update.
49024         * lib/unistr/u32-to-u16.c: Update.
49025
49026 2007-01-27  Bruno Haible  <bruno@clisp.org>
49027
49028         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
49029         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
49030         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
49031         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
49032         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
49033         * modules/unistr/u16-mbtouc-unsafe: Renamed from
49034         modules/unistr/u16-mbtouc.
49035         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
49036         * lib/unistr.h: Update.
49037         * lib/linebreak.c: Update.
49038         * modules/linebreak: Update.
49039         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
49040         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
49041         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
49042         * modules/unistr/u16-mbtouc: Renamed from
49043         modules/unistr/u16-mbtouc-safe.
49044         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
49045         * lib/unistr.h: Update.
49046         * lib/unistr/u16-to-u8.c: Update.
49047         * modules/unistr/u16-to-u8: Update.
49048         * lib/unistr/u16-to-u32.c: Update.
49049         * modules/unistr/u16-to-u32: Update.
49050
49051 2007-01-27  Bruno Haible  <bruno@clisp.org>
49052
49053         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
49054         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
49055         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
49056         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
49057         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
49058         * modules/unistr/u8-mbtouc-unsafe: Renamed from
49059         modules/unistr/u8-mbtouc.
49060         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
49061         * lib/unistr.h: Update.
49062         * lib/striconveh.c: Update.
49063         * modules/striconveh: Update.
49064         * lib/linebreak.c: Update.
49065         * modules/linebreak: Update.
49066         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
49067         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
49068         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
49069         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
49070         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
49071         * lib/unistr.h: Update.
49072         * lib/striconveh.c: Update.
49073         * modules/striconveh: Update.
49074         * lib/unistr/u8-to-u16.c: Update.
49075         * modules/unistr/u8-to-u16: Update.
49076         * lib/unistr/u8-to-u32.c: Update.
49077         * modules/unistr/u8-to-u32: Update.
49078
49079 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49080
49081         Sync from Libtool.
49082         * lib/argz.c: Do not include strings.h nor memory.h, include
49083         string.h unconditionally.  Patch by Simon Josefsson.
49084
49085 2007-01-27  Bruno Haible  <bruno@clisp.org>
49086
49087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49088         from gl_HEADER_STRING_H_BODY.
49089         (gl_HEADER_STRING_H_BODY): Require it.
49090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49091         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49093         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49095         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49097         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49098         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49099         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49100         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49101         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49102         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49103         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49104         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49105
49106 2007-01-27  Bruno Haible  <bruno@clisp.org>
49107
49108         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49109         check_PROGRAMS into noinst_PROGRAMS.
49110         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49111         check_PROGRAMS in this case.
49112         (func_import): Set for_test to false.
49113         (func_create_testdir): Set for_test to true.
49114
49115 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49116             Bruno Haible  <bruno@clisp.org>
49117
49118         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49119         (Depends-on): Add string.
49120         (Includes): Use <string.h> instead of strcasestr.h.
49121         * modules/string (Makefile.am): Also substitute the value of
49122         REPLACE_STRCASESTR.
49123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49124         assume strcasestr is declared in <string.h> not <strings.h>. Also
49125         set REPLACE_STRCASESTR.
49126         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49127         REPLACE_STRCASESTR.
49128         * lib/strcasestr.h: Remove file.
49129         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
49130         * lib/string_.h (strcasestr): New declaration.
49131
49132 2007-01-27  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/string_.h: Use 'extern'.
49135
49136 2007-01-27  Jim Meyering  <jim@meyering.net>
49137
49138         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
49139         of set-but-not-used local, "q".
49140
49141         * lib/mempcpy.c: Include <config.h> before <string.h>.
49142         This fixes a compilation error on HP-UX, due to the system's
49143         "restrict"-using mempcpy prototype.
49144
49145 2007-01-26  Bruno Haible  <bruno@clisp.org>
49146
49147         Small optimization.
49148         * lib/javacomp.c: Include c-strstr.h.
49149          (is_envjavac_gcj): Use c_strstr instead of strstr.
49150         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
49151
49152 2007-01-26  Bruno Haible  <bruno@clisp.org>
49153
49154         * MODULES.html.sh (Unicode string functions): Add the new modules.
49155
49156         * modules/uniconv/u32-strconv-to-locale: New file.
49157         * lib/uniconv/u32-strconv-to-locale.c: New file.
49158
49159         * modules/uniconv/u16-strconv-to-locale: New file.
49160         * lib/uniconv/u16-strconv-to-locale.c: New file.
49161
49162         * modules/uniconv/u8-strconv-to-locale: New file.
49163         * lib/uniconv/u8-strconv-to-locale.c: New file.
49164
49165         * modules/uniconv/u32-strconv-from-locale: New file.
49166         * lib/uniconv/u32-strconv-from-locale.c: New file.
49167
49168         * modules/uniconv/u16-strconv-from-locale: New file.
49169         * lib/uniconv/u16-strconv-from-locale.c: New file.
49170
49171         * modules/uniconv/u8-strconv-from-locale: New file.
49172         * lib/uniconv/u8-strconv-from-locale.c: New file.
49173
49174         * modules/uniconv/u32-strconv-to-enc: New file.
49175         * lib/uniconv/u32-strconv-to-enc.c: New file.
49176         * modules/uniconv/u32-strconv-to-enc-tests: New file.
49177         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
49178
49179         * modules/uniconv/u16-strconv-to-enc: New file.
49180         * lib/uniconv/u16-strconv-to-enc.c: New file.
49181         * lib/uniconv/u-strconv-to-enc.h: New file.
49182         * modules/uniconv/u16-strconv-to-enc-tests: New file.
49183         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
49184
49185         * modules/uniconv/u8-strconv-to-enc: New file.
49186         * lib/uniconv/u8-strconv-to-enc.c: New file.
49187         * modules/uniconv/u8-strconv-to-enc-tests: New file.
49188         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
49189
49190         * modules/uniconv/u32-strconv-from-enc: New file.
49191         * lib/uniconv/u32-strconv-from-enc.c: New file.
49192         * modules/uniconv/u32-strconv-from-enc-tests: New file.
49193         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
49194
49195         * modules/uniconv/u16-strconv-from-enc: New file.
49196         * lib/uniconv/u16-strconv-from-enc.c: New file.
49197         * modules/uniconv/u16-strconv-from-enc-tests: New file.
49198         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
49199
49200         * modules/uniconv/u8-strconv-from-enc: New file.
49201         * lib/uniconv/u8-strconv-from-enc.c: New file.
49202         * lib/uniconv/u-strconv-from-enc.h: New file.
49203         * modules/uniconv/u8-strconv-from-enc-tests: New file.
49204         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
49205
49206         * modules/uniconv/u32-conv-from-enc: New file.
49207         * lib/uniconv/u32-conv-from-enc.c: New file.
49208         * modules/uniconv/u32-conv-from-enc-tests: New file.
49209         * tests/uniconv/test-u32-conv-from-enc.c: New file.
49210
49211         * modules/uniconv/u16-conv-from-enc: New file.
49212         * lib/uniconv/u16-conv-from-enc.c: New file.
49213         * lib/uniconv/u-conv-from-enc.h: New file.
49214         * modules/uniconv/u16-conv-from-enc-tests: New file.
49215         * tests/uniconv/test-u16-conv-from-enc.c: New file.
49216
49217         * modules/uniconv/u8-conv-from-enc: New file.
49218         * lib/uniconv/u8-conv-from-enc.c: New file.
49219         * modules/uniconv/u8-conv-from-enc-tests: New file.
49220         * tests/uniconv/test-u8-conv-from-enc.c: New file.
49221
49222         * modules/uniconv/base: New file.
49223         * lib/uniconv.h: New file.
49224
49225 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
49226
49227         * doc/gnulib-tool.texi (Initial import): Update to match current
49228         behavior with strdup module.
49229         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
49230         * lib/memmem.h: Remove; all uses removed.  This is now done
49231         by <string.h>.
49232         * lib/mempcpy.h: Likewise.
49233         * lib/memrchr.h: Likewise.
49234         * lib/stpcpy.h: Likewise.
49235         * lib/stpncpy.h: Likewise.
49236         * lib/strcase.h: Likewise.
49237         * lib/strchrnul.h: Likewise.
49238         * lib/strdup.h: Likewise.
49239         * lib/strndup.h: Likewise.
49240         * lib/strnlen.h: Likewise.
49241         * lib/strpbrk.h: Likewise.
49242         * lib/strsep.h: Likewise.
49243         * lib/strstr.h: Likewise.
49244         * lib/strtok_r.h: Likewise.
49245         * lib/string_.h: New file.
49246         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
49247         Rely on <string.h> instead.
49248         * lib/canon-host.c: Likewise.
49249         * lib/chdir-long.c: Likewise.
49250         * lib/concatpath.c: Likewise.
49251         * lib/exclude.c: Likewise.
49252         * lib/fchdir.c: Likewise.
49253         * lib/getaddrinfo.c: Likewise.
49254         * lib/getcwd.c: Likewise.
49255         * lib/getsubopt.c: Likewise.
49256         * lib/glob.c: Likewise.
49257         * lib/hard-locale.c: Likewise.
49258         * lib/iconvme.c: Likewise.
49259         * lib/javacomp.c: Likewise.
49260         * lib/mempcpy.c: Likewise.
49261         * lib/memrchr.c: Likewise.
49262         * lib/regex_internal.h: Likewise.
49263         * lib/stpncpy.c: Likewise.
49264         * lib/strcasecmp.c: Likewise.
49265         * lib/strchrnul.c: Likewise.
49266         * lib/strdup.c: Likewise.
49267         * lib/striconv.c: Likewise.
49268         * lib/striconveh.c: Likewise.
49269         * lib/striconveha.c: Likewise.
49270         * lib/strncasecmp.c: Likewise.
49271         * lib/strndup.c: Likewise.
49272         * lib/strnlen.c: Likewise.
49273         * lib/strsep.c: Likewise.
49274         * lib/strstr.c: Likewise.
49275         * lib/strtok_r.c: Likewise.
49276         * lib/userspec.c: Likewise.
49277         * lib/w32spawn.h: Likewise.
49278         * lib/xstrndup.c: Likewise.
49279         * lib/mountlist.c (strstr): Remove decl.
49280         * m4/string_h.m4: New file.
49281         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49282         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49283         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49284         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49285         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49286         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49287         Set REPLACE_STRCASECMP if necessary.
49288         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49289         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49290         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49292         HAVE_DECL_STRDUP if necessary.
49293         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49294         since gl_FUNC_STRNDUP does that now.
49295         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49296         Check for decl here...
49297         (gl_PREREQ_STRNLEN): ... not here.
49298         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49299         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49300         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49301         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49302         necessary.
49303         * modules/string: New file.
49304         * modules/memmem (Files): Remove special-purpose include file.
49305         (Depends-on): Add string.
49306         (Include): Include <string.h>, not the removed file.
49307         * modules/mempcpy: Likewise.
49308         * modules/memrchr: Likewise.
49309         * modules/stpcpy: Likewise.
49310         * modules/stpncpy: Likewise.
49311         * modules/strcase: Likewise.
49312         * modules/strchrnul: Likewise.
49313         * modules/strdup: Likewise.
49314         * modules/strndup: Likewise.
49315         * modules/strnlen: Likewise.
49316         * modules/strpbrk: Likewise.
49317         * modules/strsep: Likewise.
49318         * modules/strstr: Likewise.
49319         * modules/strtok_r: Likewise.
49320         * tests/test-dirname.c: Don't include "strdup.h", since
49321         <string.h> now suffices.
49322         * tests/test-memmem.c: Don't include "memmem.h", since
49323         <string.h> now suffices.
49324
49325 2007-01-25  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49328         *resultp is 0.
49329
49330         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49331         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49332         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49333         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49334
49335         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49336         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49337         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49338         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49339         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49340         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49341
49342 2007-01-24  Bruno Haible  <bruno@clisp.org>
49343
49344         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49345         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49346         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49347         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49348         gl_FUNC_FTS_CORE.
49349         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49350         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49352         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49353         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49354         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49355         gl_FUNC_FCHOWNAT.
49356         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49357         gl_FUNC_STRFTIME.
49358         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49359         Reported by Ralf Wildenhues.
49360
49361 2007-01-24  Bruno Haible  <bruno@clisp.org>
49362
49363         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49364         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49365         gl_GETADDRINFO.
49366         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49367         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49368         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49369
49370 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49371
49372         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49373         Don't use 'exit'; just return from 'main'.
49374         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49375
49376         * lib/fnmatch_.h: Readjust white space and comments to match
49377         glibc, to avoid spurious diffs.
49378
49379 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49382         2004-12-01 change by Jakub Jelinek, since this code won't compile
49383         if !LIBC.  Problem reported by Bob Proulx.
49384
49385 2007-01-23  Bruno Haible  <bruno@clisp.org>
49386
49387         * lib/striconveh.c: Include c-strcaseeq.h.
49388         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49389         * modules/striconveh (Depends-on): Add c-strcaseeq.
49390
49391 2007-01-23  Bruno Haible  <bruno@clisp.org>
49392
49393         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49394
49395         * modules/c-strcaseeq: New file.
49396         * lib/c-strcaseeq.h: New file.
49397
49398         * modules/streq: New file.
49399         * lib/streq.h: New file.
49400
49401 2007-01-23  Bruno Haible  <bruno@clisp.org>
49402
49403         * modules/striconveha-tests: New file.
49404         * tests/test-striconveha.c: New file.
49405
49406         * lib/striconveha.h: Include <stdbool.h>.
49407         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49408         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49409         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49410         (mem_iconveha): New function.
49411         (str_iconveha_notranslit): Renamed from str_iconveha.
49412         (str_iconveha): New function.
49413         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49414         c-strcase.
49415
49416 2007-01-23  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49419         encodings without forgiving before trying any encoding with handler.
49420         (str_iconveha): Try all encodings without forgiving before trying any
49421         encoding with handler.
49422
49423 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49424
49425         Import the following changes from libc.
49426
49427         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49428
49429         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49430
49431         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49432
49433         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49434         normal_bracket label.
49435
49436         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49437
49438         [BZ #361]
49439         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49440         to normal_bracket after fetching the next character.
49441
49442 2007-01-22  Bruno Haible  <bruno@clisp.org>
49443
49444         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49445         argument.
49446         * lib/striconveh.c (iconv_carefully_1): New function.
49447         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49448         argument.
49449         (str_cd_iconveh): Update.
49450         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49451         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49452         * tests/test-striconveh.c (MAGIC): New macro.
49453         (new_offsets): New function.
49454         (main): Test call with and without offsets.
49455
49456 2007-01-22  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49459         * modules/sys_select (Makefile.am): Likewise.
49460         * modules/sys_socket (Makefile.am): Likewise.
49461         * modules/sys_time (Makefile.am): Likewise.
49462
49463 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49464
49465         * modules/gettimeofday (License): Change from GPL to LGPL, since
49466         gettimeofday is a library function.
49467
49468 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49469
49470         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49471
49472 2007-01-21  Bruno Haible  <bruno@clisp.org>
49473
49474         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49475
49476 2007-01-21  Bruno Haible  <bruno@clisp.org>
49477
49478         * modules/striconveha: New file.
49479         * lib/striconveha.h: New file.
49480         * lib/striconveha.c: New file.
49481         * MODULES.html.sh (Internationalization functions): Add striconveha.
49482         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49483         string.
49484         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49485
49486 2007-01-21  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49489         * lib/striconveh.c (str_iconveh): Likewise.
49490
49491 2007-01-21  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/striconveh.h (mem_iconveh): New declaration.
49494         * lib/striconveh.c (mem_iconveh): New function.
49495         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49496
49497 2007-01-21  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49500
49501         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49502         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49503         original result buffer.
49504         (str_cd_iconveh): Update.
49505         * tests/test-striconveh.c (main): Update.
49506
49507         * lib/striconv.h (mem_cd_iconv): Change specification.
49508         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49509         result buffer.
49510         (str_cd_iconv): Update.
49511         * tests/test-striconv.c (main): Update.
49512
49513 2007-01-21  Bruno Haible  <bruno@clisp.org>
49514
49515         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49516
49517 2007-01-20  Jim Meyering  <jim@meyering.net>
49518
49519         * lib/userspec.c (parse_with_separator): If a user or group string
49520         starts with "+", skip the corresponding name-to-ID look-up, since
49521         such a look-up must fail: user and group names may not include "+".
49522
49523 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49524
49525         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49526         since we now assume the sys_time module.
49527         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49528         check for sys/time.h; no longer needed.
49529         * modules/poll (Depends-on): Depend on sys_time.
49530
49531 2007-01-18  Bruno Haible  <bruno@clisp.org>
49532
49533         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49535
49536         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49537         gettimeofday.
49538
49539         * tests/test-gettimeofday.c: Include <time.h>.
49540         (dummy): Remove variable.
49541
49542         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49543         gl_HEADER_SYS_TIME_H.
49544         (gl_HEADER_SYS_TIME_H): New macro.
49545
49546         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49547         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49549         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49550         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49551         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49552         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49553         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49554         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49555         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49556         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49557
49558         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49559         last change; it caused a compilation error when cross-compiling to
49560         Cygwin.
49561
49562 2007-01-18  Jim Meyering  <jim@meyering.net>
49563
49564         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49565         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49566         than the race-prone "test -d sys || mkdir sys".
49567         (configure.ac): Use AC_PROG_MKDIR_P.
49568         * modules/sys_select: Likewise.
49569         * modules/sys_socket: Likewise.
49570         * modules/sys_time: Likewise.
49571
49572 2007-01-18  Eric Blake  <ebb9@byu.net>
49573
49574         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49575         replace gettimeofday.
49576         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49577         name, to avoid infinite recursion.
49578
49579 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49580
49581         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49582         module sys_time.
49583         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49584         assume timespec.h defines struct timeval.
49585         * lib/settime.c: Likewise.
49586         * lib/utimens.c: Likewise.
49587         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49588         since we now assume the gettimeofday module.
49589         * lib/tempname.c (__gen_tempname): Likewise.
49590         * lib/gettimeofday.h: Remove.
49591         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49592         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49593         Include <time.h>, for 'time()'.
49594         (localtime_buffer_addr): Also use this workaround if
49595         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49596         to simplify the uses.  All uses changed.
49597         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49598         that #undef is inside {}, and 'const' follows type name consistently.
49599         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49600         (gettimeofday): Do not use the maximum possible value for
49601         tv->tv_usec, since that might break usages other than ls.c.
49602         Instead, we'll leave ls.c alone.  This undoes today's patch
49603         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49604         we've never observed the problem but might as well keep the
49605         canary.
49606         * lib/nanosleep.c: Include timespec.h first, for interface check.
49607         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49608         now assume the sys_time module.
49609         * lib/tempname.c: Likewise.
49610         * lib/timespec.h: Likewise.
49611         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49612         needed.
49613         * lib/strftime.c: Likewise.
49614         * lib/timespec.h: Likewise.
49615         * lib/posixtm.c: Include posixtm.h first, for interface check.
49616         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49617         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49618         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49619         * lib/sys_time_.h: New file.
49620         * lib/timespec.h (struct timespec): Use long int, not long.
49621         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49622         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49623         Remove obsolescent call to AC_HEADER_TIME.
49624         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49626         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49627         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49628         Likewise.
49629         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49630         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49631         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49632         into the sys_time module.  Check for gettimeofday just once.
49633         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49634         for gettimeofday signature to just check the signature.  Merely
49635         compile it, since linking doesn't test signature.  Improve test for
49636         whether gettimeofday.o is actually needed.
49637         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49638         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49639         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49640         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49641         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49642         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49643         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49644         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49645         than worrying about sys/time.h.
49646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49647         Don't bother worrying about TIME_WITH_SYS_TIME.
49648         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49649         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49650         * m4/sys_time_h.m4: New file.
49651         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49652         Don't include sys/time.h.  Return from main rather than exiting.
49653         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49654         all uses changed.
49655         * modules/gethrxtime (Depends-on): Add sys_time.
49656         * modules/gettime (Depends-on): Likewise.
49657         * modules/gettimeofday (Depends-on): Likewise.
49658         * modules/nanosleep (Depends-on): Likewise.
49659         * modules/settime (Depends-on): Likewise.
49660         * modules/tempname (Depends-on): Likewise.
49661         * modules/utimens (Depends-on): Likewise.
49662         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49663         (Include:) Change back to <sys/time.h>.
49664         (Maintainer:) Add self.
49665         * modules/sys_time: New file.
49666         * modules/tempname (Depends-on): Add gettimeofday.
49667         * tests/test-gettimeofday.c: Include <sys/time.h>
49668         rather than gettimeofday.h.
49669
49670 2007-01-17  Bruno Haible  <bruno@clisp.org>
49671
49672         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49673         the license default to GPL.
49674         (func_create_testdir): Don't complain if a module is LGPL and its
49675         tests module depends on GPLed modules.
49676
49677 2007-01-17  Bruno Haible  <bruno@clisp.org>
49678
49679         * lib/gettimeofday.c (gettimeofday): Add code for the case
49680         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49681         maximum possible value for tv->tv_usec, rather than the minimum one.
49682
49683 2005-10-08  Martin Lambers  <marlam@marlam.de>
49684 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49685 2007-01-16  Bruno Haible  <bruno@clisp.org>
49686
49687         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49688         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49689         gl_FUNC_GETTIMEOFDAY.
49690         (Include): Add gettimeofday.h.
49691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49692         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49693         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49694         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49695         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49696         * lib/gettimeofday.h: New file.
49697         * lib/gettimeofday.c: Include <sys/timeb.h>.
49698         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49699         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49700         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49701         fall back on time().
49702
49703         * tests/test-gettimeofday.c: New file.
49704         * modules/gettimeofday-tests: New file.
49705
49706 2007-01-16  Eric Blake  <ebb9@byu.net>
49707
49708         * modules/fnmatch (Depends-on): Depend on wchar.
49709         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49710         * m4/fnmatch.m4: Likewise.
49711         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49712         * m4/mbchar.m4: Likewise.
49713         * modules/mbswidth (Depends-on): Depend on wchar.
49714         * lib/mbswidth.c: Assume <wchar.h>.
49715         * m4/mbswidth.m4: Likewise.
49716         * modules/quotearg (Depends-on): Depend on wchar.
49717         * lib/quotearg.c: Assume <wchar.h>.
49718         * m4/quotearg.m4: Likewise.
49719         * modules/regex (Depends-on): Depend on wchar.
49720         * lib/regex_internal.h: Assume <wchar.h>.
49721         * m4/regex.m4: Likewise.
49722         * modules/stdint (Depends-on): Depend on wchar.
49723         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49724         * m4/stdint.m4: Likewise.
49725         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49726         * modules/strftime (Depends-on): Depend on wchar.
49727         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49728         * modules/strtol (Depends-on): Depend on wchar.
49729         * lib/strtol.c: Assume <wchar.h>.
49730         * modules/wcwidth (Depends-on): Depend on wchar.
49731         * lib/wcwidth.h: Assume <wchar.h>.
49732         * m4/wcwidth.m4: Likewise.
49733
49734 2007-01-16  Bruno Haible  <bruno@clisp.org>
49735
49736         * modules/csharpexec-script: New, created from...
49737         * modules/csharpexec: ... this.
49738
49739 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49740
49741         * modules/javaexec-script: New, created from...
49742         * modules/javaexec: ... this.
49743
49744 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49745
49746         * modules/poll (Dependencies): Add sys_select.
49747
49748 2007-01-15  Jim Meyering  <jim@meyering.net>
49749
49750         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49751         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49752         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49753         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49754
49755 2007-01-15  Bruno Haible  <bruno@clisp.org>
49756
49757         * modules/striconveh: New file.
49758         * lib/striconveh.h: New file.
49759         * lib/striconveh.c: New file.
49760         * MODULES.html.sh (Internationalization functions): Add striconveh.
49761
49762         * modules/striconveh-tests: New file.
49763         * tests/test-striconveh.c: New file.
49764
49765 2007-01-15  Bruno Haible  <bruno@clisp.org>
49766
49767         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49768         not from GNU libiconv or GNU libc.
49769
49770 2007-01-15  Bruno Haible  <bruno@clisp.org>
49771
49772         * doc/gnulib-intro.texi (Copyright): Explain the different license
49773         terms for module descriptions, autoconf macros, tests, documentation.
49774
49775 2007-01-14  Bruno Haible  <bruno@clisp.org>
49776
49777         * modules/striconv-tests: New file.
49778         * tests/test-striconv.c: New file.
49779
49780 2007-01-14  Bruno Haible  <bruno@clisp.org>
49781
49782         * modules/iconv-tests: New file.
49783         * tests/test-iconv.c: New file.
49784
49785 2007-01-14  Bruno Haible  <bruno@clisp.org>
49786
49787         * gnulib-tool (func_get_license): For test modules, use the license of
49788         the main module.
49789
49790 2007-01-14  Bruno Haible  <bruno@clisp.org>
49791
49792         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49793         if iconv is found to exist.
49794
49795 2007-01-14  Bruno Haible  <bruno@clisp.org>
49796
49797         * modules/c-ctype-tests: New file.
49798         * tests/test-c-ctype.c: New file.
49799
49800 2007-01-14  Bruno Haible  <bruno@clisp.org>
49801
49802         * modules/binary-io-tests: New file.
49803         * tests/test-binary-io.sh: New file.
49804         * tests/test-binary-io.c: New file.
49805
49806 2007-01-14  Bruno Haible  <bruno@clisp.org>
49807
49808         * modules/array-oset-tests: New file.
49809         * tests/test-array_oset.c: New file.
49810
49811 2007-01-14  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/array-list-tests: New file.
49814         * tests/test-array_list.c: New file.
49815
49816 2007-01-14  Bruno Haible  <bruno@clisp.org>
49817
49818         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49819         and make.
49820         Reported by Simon Josefsson in
49821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49822
49823 2007-01-14  Bruno Haible  <bruno@clisp.org>
49824
49825         * modules/allocsa-tests: New file.
49826         * tests/test-allocsa.c: New file.
49827
49828 2007-01-14  Bruno Haible  <bruno@clisp.org>
49829
49830         * modules/fchdir (Depends-on): Add absolute-header.
49831         * modules/unistd (Depends-on): Likewise.
49832
49833 2006-12-30  Bruno Haible  <bruno@clisp.org>
49834
49835         * modules/fchdir: New file.
49836         * modules/unistd (Files): Add lib/unistd_.h.
49837         (Makefile.am): Generate unistd.h from unistd_.h.
49838         * lib/fchdir.c: New file.
49839         * lib/dirent_.h: New file.
49840         * lib/unistd_.h: New file.
49841         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49842         * m4/fchdir.m4: New file.
49843         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49844         (gl_HEADER_UNISTD): Invoke it.
49845         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49846         function.
49847         * lib/backupfile.c (opendir, closedir): Undefine.
49848         * lib/chown.c (open, close): Undefine.
49849         * lib/clean-temp.c (open, close): Undefine.
49850         * lib/copy-file.c (open, close): Undefine.
49851         * lib/execute.c (open, close): Undefine.
49852         * lib/fsusage.c (open, close): Undefine.
49853         * lib/gc-gnulib.c (open, close): Undefine.
49854         * lib/getcwd.c (opendir, closedir): Undefine.
49855         * lib/glob.c (opendir, closedir): Undefine.
49856         * lib/javacomp.c (open, close): Undefine.
49857         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49858         * lib/openat-proc.c (open, close): Undefine.
49859         * lib/pagealign_alloc.c (open, close): Undefine.
49860         * lib/pipe.c (open, close): Undefine.
49861         * lib/progreloc.c (open, close): Undefine.
49862         * lib/savedir.c (opendir, closedir): Undefine.
49863         * lib/utime.c (open, close): Undefine.
49864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49865
49866 2007-01-10  Bruno Haible  <bruno@clisp.org>
49867
49868         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49869
49870 2007-01-12  Eric Blake  <ebb9@byu.net>
49871
49872         Provide a robust <wchar.h>.  Further simplifications are now
49873         possible in other modules, but not included here.
49874         * modules/wchar: New module.
49875         * m4/wchar.m4: New file.
49876         * lib/wchar_.h: Likewise.
49877         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49878         of the new module.
49879         * MODULES.html.sh (Extended multibyte and wide character utilities):
49880         New section.
49881
49882 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49885         to a reasonable default for memory allocation.
49886         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49887         file system that reports garbage st_size values for symlinks.
49888         Problem reported by Liyang Hu.
49889
49890 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49891
49892         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49893         Emacs .#* auto-save files).
49894
49895 2007-01-11  Bruno Haible  <bruno@clisp.org>
49896
49897         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49898         directory.
49899
49900 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         Use @...@ consistently in lib/wctype_.h.
49903         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49904         on it being set to 1 or 0.
49905         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49906         go back to AC_SUBSTing it.
49907         * modules/wctype (Makefile.am): Undo previous change.
49908
49909 2007-01-10  Eric Blake  <ebb9@byu.net>
49910
49911         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49912         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49913         * modules/wctype (Makefile.am): Likewise.
49914         Reported by Chris McGuire.
49915
49916 2007-01-10  Jim Meyering  <jim@meyering.net>
49917
49918         fts.c: a small readability/maintainability improvement
49919         * lib/fts.c (fts_read): Make this code slightly more readable and
49920         maintainable by hoisting the "sp->fts_cur = p" assignments to
49921         immediately follow the statements that set P.  Derived from
49922         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49923
49924 2007-01-10  Eric Blake  <ebb9@byu.net>
49925
49926         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49927         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49929         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49930         Reported by Chris McGuire.
49931
49932 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49933
49934         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49935         in sed script.
49936
49937 2007-01-09  Bruno Haible  <bruno@clisp.org>
49938
49939         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49940         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49941         variables.
49942         (func_module): Use them.
49943
49944 2007-01-09  Bruno Haible  <bruno@clisp.org>
49945
49946         * modules/unistr/base: New file.
49947         * lib/unistr.h: New file.
49948
49949         * modules/unistr/u8-to-u16: New file.
49950         * lib/unistr/u8-to-u16.c: New file.
49951
49952         * modules/unistr/u8-to-u32: New file.
49953         * lib/unistr/u8-to-u32.c: New file.
49954
49955         * modules/unistr/u16-to-u8: New file.
49956         * lib/unistr/u16-to-u8.c: New file.
49957
49958         * modules/unistr/u16-to-u32: New file.
49959         * lib/unistr/u16-to-u32.c: New file.
49960
49961         * modules/unistr/u32-to-u8: New file.
49962         * lib/unistr/u32-to-u8.c: New file.
49963
49964         * modules/unistr/u32-to-u16: New file.
49965         * lib/unistr/u32-to-u16.c: New file.
49966
49967         * modules/unistr/u8-check: New file.
49968         * modules/unistr/u16-check: New file.
49969         * modules/unistr/u32-check: New file.
49970         * lib/unistr/u8-check.c: New file.
49971         * lib/unistr/u16-check.c: New file.
49972         * lib/unistr/u32-check.c: New file.
49973
49974         * modules/unistr/u8-chr: New file.
49975         * modules/unistr/u16-chr: New file.
49976         * modules/unistr/u32-chr: New file.
49977         * lib/unistr/u8-chr.c: New file.
49978         * lib/unistr/u16-chr.c: New file.
49979         * lib/unistr/u32-chr.c: New file.
49980
49981         * modules/unistr/u8-cmp: New file.
49982         * modules/unistr/u16-cmp: New file.
49983         * modules/unistr/u32-cmp: New file.
49984         * lib/unistr/u8-cmp.c: New file.
49985         * lib/unistr/u16-cmp.c: New file.
49986         * lib/unistr/u32-cmp.c: New file.
49987
49988         * modules/unistr/u8-cpy: New file.
49989         * modules/unistr/u16-cpy: New file.
49990         * modules/unistr/u32-cpy: New file.
49991         * lib/unistr/u8-cpy.c: New file.
49992         * lib/unistr/u16-cpy.c: New file.
49993         * lib/unistr/u32-cpy.c: New file.
49994         * lib/unistr/u-cpy.h: New file.
49995
49996         * modules/unistr/u8-cpy-alloc: New file.
49997         * modules/unistr/u16-cpy-alloc: New file.
49998         * modules/unistr/u32-cpy-alloc: New file.
49999         * lib/unistr/u8-cpy-alloc.c: New file.
50000         * lib/unistr/u16-cpy-alloc.c: New file.
50001         * lib/unistr/u32-cpy-alloc.c: New file.
50002         * lib/unistr/u-cpy-alloc.h: New file.
50003
50004         * modules/unistr/u8-endswith: New file.
50005         * modules/unistr/u16-endswith: New file.
50006         * modules/unistr/u32-endswith: New file.
50007         * lib/unistr/u8-endswith.c: New file.
50008         * lib/unistr/u16-endswith.c: New file.
50009         * lib/unistr/u32-endswith.c: New file.
50010         * lib/unistr/u-endswith.h: New file.
50011
50012         * modules/unistr/u8-mblen: New file.
50013         * modules/unistr/u16-mblen: New file.
50014         * modules/unistr/u32-mblen: New file.
50015         * lib/unistr/u8-mblen.c: New file.
50016         * lib/unistr/u16-mblen.c: New file.
50017         * lib/unistr/u32-mblen.c: New file.
50018
50019         * modules/unistr/u8-mbtouc: New file.
50020         * modules/unistr/u16-mbtouc: New file.
50021         * modules/unistr/u32-mbtouc: New file.
50022         * lib/unistr/u8-mbtouc.c: New file.
50023         * lib/unistr/u16-mbtouc.c: New file.
50024         * lib/unistr/u32-mbtouc.c: New file.
50025
50026         * modules/unistr/u8-mbtouc-safe: New file.
50027         * modules/unistr/u16-mbtouc-safe: New file.
50028         * modules/unistr/u32-mbtouc-safe: New file.
50029         * lib/unistr/u8-mbtouc-safe.c: New file.
50030         * lib/unistr/u16-mbtouc-safe.c: New file.
50031         * lib/unistr/u32-mbtouc-safe.c: New file.
50032
50033         * modules/unistr/u8-move: New file.
50034         * modules/unistr/u16-move: New file.
50035         * modules/unistr/u32-move: New file.
50036         * lib/unistr/u8-move.c: New file.
50037         * lib/unistr/u16-move.c: New file.
50038         * lib/unistr/u32-move.c: New file.
50039         * lib/unistr/u-move.h: New file.
50040
50041         * modules/unistr/u8-next: New file.
50042         * modules/unistr/u16-next: New file.
50043         * modules/unistr/u32-next: New file.
50044         * lib/unistr/u8-next.c: New file.
50045         * lib/unistr/u16-next.c: New file.
50046         * lib/unistr/u32-next.c: New file.
50047
50048         * modules/unistr/u8-prev: New file.
50049         * modules/unistr/u16-prev: New file.
50050         * modules/unistr/u32-prev: New file.
50051         * lib/unistr/u8-prev.c: New file.
50052         * lib/unistr/u16-prev.c: New file.
50053         * lib/unistr/u32-prev.c: New file.
50054
50055         * modules/unistr/u8-set: New file.
50056         * modules/unistr/u16-set: New file.
50057         * modules/unistr/u32-set: New file.
50058         * lib/unistr/u8-set.c: New file.
50059         * lib/unistr/u16-set.c: New file.
50060         * lib/unistr/u32-set.c: New file.
50061         * lib/unistr/u-set.h: New file.
50062
50063         * modules/unistr/u8-startswith: New file.
50064         * modules/unistr/u16-startswith: New file.
50065         * modules/unistr/u32-startswith: New file.
50066         * lib/unistr/u8-startswith.c: New file.
50067         * lib/unistr/u16-startswith.c: New file.
50068         * lib/unistr/u32-startswith.c: New file.
50069         * lib/unistr/u-startswith.h: New file.
50070
50071         * modules/unistr/u8-stpcpy: New file.
50072         * modules/unistr/u16-stpcpy: New file.
50073         * modules/unistr/u32-stpcpy: New file.
50074         * lib/unistr/u8-stpcpy.c: New file.
50075         * lib/unistr/u16-stpcpy.c: New file.
50076         * lib/unistr/u32-stpcpy.c: New file.
50077         * lib/unistr/u-stpcpy.h: New file.
50078
50079         * modules/unistr/u8-stpncpy: New file.
50080         * modules/unistr/u16-stpncpy: New file.
50081         * modules/unistr/u32-stpncpy: New file.
50082         * lib/unistr/u8-stpncpy.c: New file.
50083         * lib/unistr/u16-stpncpy.c: New file.
50084         * lib/unistr/u32-stpncpy.c: New file.
50085         * lib/unistr/u-stpncpy.h: New file.
50086
50087         * modules/unistr/u8-strcat: New file.
50088         * modules/unistr/u16-strcat: New file.
50089         * modules/unistr/u32-strcat: New file.
50090         * lib/unistr/u8-strcat.c: New file.
50091         * lib/unistr/u16-strcat.c: New file.
50092         * lib/unistr/u32-strcat.c: New file.
50093         * lib/unistr/u-strcat.h: New file.
50094
50095         * modules/unistr/u8-strchr: New file.
50096         * modules/unistr/u16-strchr: New file.
50097         * modules/unistr/u32-strchr: New file.
50098         * lib/unistr/u8-strchr.c: New file.
50099         * lib/unistr/u16-strchr.c: New file.
50100         * lib/unistr/u32-strchr.c: New file.
50101
50102         * modules/unistr/u8-strcmp: New file.
50103         * modules/unistr/u16-strcmp: New file.
50104         * modules/unistr/u32-strcmp: New file.
50105         * lib/unistr/u8-strcmp.c: New file.
50106         * lib/unistr/u16-strcmp.c: New file.
50107         * lib/unistr/u32-strcmp.c: New file.
50108
50109         * modules/unistr/u8-strcpy: New file.
50110         * modules/unistr/u16-strcpy: New file.
50111         * modules/unistr/u32-strcpy: New file.
50112         * lib/unistr/u8-strcpy.c: New file.
50113         * lib/unistr/u16-strcpy.c: New file.
50114         * lib/unistr/u32-strcpy.c: New file.
50115         * lib/unistr/u-strcpy.h: New file.
50116
50117         * modules/unistr/u8-strcspn: New file.
50118         * modules/unistr/u16-strcspn: New file.
50119         * modules/unistr/u32-strcspn: New file.
50120         * lib/unistr/u8-strcspn.c: New file.
50121         * lib/unistr/u16-strcspn.c: New file.
50122         * lib/unistr/u32-strcspn.c: New file.
50123         * lib/unistr/u-strcspn.h: New file.
50124
50125         * modules/unistr/u8-strdup: New file.
50126         * modules/unistr/u16-strdup: New file.
50127         * modules/unistr/u32-strdup: New file.
50128         * lib/unistr/u8-strdup.c: New file.
50129         * lib/unistr/u16-strdup.c: New file.
50130         * lib/unistr/u32-strdup.c: New file.
50131         * lib/unistr/u-strdup.h: New file.
50132
50133         * modules/unistr/u8-strlen: New file.
50134         * modules/unistr/u16-strlen: New file.
50135         * modules/unistr/u32-strlen: New file.
50136         * lib/unistr/u8-strlen.c: New file.
50137         * lib/unistr/u16-strlen.c: New file.
50138         * lib/unistr/u32-strlen.c: New file.
50139         * lib/unistr/u-strlen.h: New file.
50140
50141         * modules/unistr/u8-strmblen: New file.
50142         * modules/unistr/u16-strmblen: New file.
50143         * modules/unistr/u32-strmblen: New file.
50144         * lib/unistr/u8-strmblen.c: New file.
50145         * lib/unistr/u16-strmblen.c: New file.
50146         * lib/unistr/u32-strmblen.c: New file.
50147
50148         * modules/unistr/u8-strmbtouc: New file.
50149         * modules/unistr/u16-strmbtouc: New file.
50150         * modules/unistr/u32-strmbtouc: New file.
50151         * lib/unistr/u8-strmbtouc.c: New file.
50152         * lib/unistr/u16-strmbtouc.c: New file.
50153         * lib/unistr/u32-strmbtouc.c: New file.
50154
50155         * modules/unistr/u8-strncat: New file.
50156         * modules/unistr/u16-strncat: New file.
50157         * modules/unistr/u32-strncat: New file.
50158         * lib/unistr/u8-strncat.c: New file.
50159         * lib/unistr/u16-strncat.c: New file.
50160         * lib/unistr/u32-strncat.c: New file.
50161         * lib/unistr/u-strncat.h: New file.
50162
50163         * modules/unistr/u8-strncmp: New file.
50164         * modules/unistr/u16-strncmp: New file.
50165         * modules/unistr/u32-strncmp: New file.
50166         * lib/unistr/u8-strncmp.c: New file.
50167         * lib/unistr/u16-strncmp.c: New file.
50168         * lib/unistr/u32-strncmp.c: New file.
50169
50170         * modules/unistr/u8-strncpy: New file.
50171         * modules/unistr/u16-strncpy: New file.
50172         * modules/unistr/u32-strncpy: New file.
50173         * lib/unistr/u8-strncpy.c: New file.
50174         * lib/unistr/u16-strncpy.c: New file.
50175         * lib/unistr/u32-strncpy.c: New file.
50176         * lib/unistr/u-strncpy.h: New file.
50177
50178         * modules/unistr/u8-strnlen: New file.
50179         * modules/unistr/u16-strnlen: New file.
50180         * modules/unistr/u32-strnlen: New file.
50181         * lib/unistr/u8-strnlen.c: New file.
50182         * lib/unistr/u16-strnlen.c: New file.
50183         * lib/unistr/u32-strnlen.c: New file.
50184         * lib/unistr/u-strnlen.h: New file.
50185
50186         * modules/unistr/u8-strpbrk: New file.
50187         * modules/unistr/u16-strpbrk: New file.
50188         * modules/unistr/u32-strpbrk: New file.
50189         * lib/unistr/u8-strpbrk.c: New file.
50190         * lib/unistr/u16-strpbrk.c: New file.
50191         * lib/unistr/u32-strpbrk.c: New file.
50192         * lib/unistr/u-strpbrk.h: New file.
50193
50194         * modules/unistr/u8-strrchr: New file.
50195         * modules/unistr/u16-strrchr: New file.
50196         * modules/unistr/u32-strrchr: New file.
50197         * lib/unistr/u8-strrchr.c: New file.
50198         * lib/unistr/u16-strrchr.c: New file.
50199         * lib/unistr/u32-strrchr.c: New file.
50200
50201         * modules/unistr/u8-strspn: New file.
50202         * modules/unistr/u16-strspn: New file.
50203         * modules/unistr/u32-strspn: New file.
50204         * lib/unistr/u8-strspn.c: New file.
50205         * lib/unistr/u16-strspn.c: New file.
50206         * lib/unistr/u32-strspn.c: New file.
50207         * lib/unistr/u-strspn.h: New file.
50208
50209         * modules/unistr/u8-strstr: New file.
50210         * modules/unistr/u16-strstr: New file.
50211         * modules/unistr/u32-strstr: New file.
50212         * lib/unistr/u8-strstr.c: New file.
50213         * lib/unistr/u16-strstr.c: New file.
50214         * lib/unistr/u32-strstr.c: New file.
50215         * lib/unistr/u-strstr.h: New file.
50216
50217         * modules/unistr/u8-strtok: New file.
50218         * modules/unistr/u16-strtok: New file.
50219         * modules/unistr/u32-strtok: New file.
50220         * lib/unistr/u8-strtok.c: New file.
50221         * lib/unistr/u16-strtok.c: New file.
50222         * lib/unistr/u32-strtok.c: New file.
50223         * lib/unistr/u-strtok.h: New file.
50224
50225         * modules/unistr/u8-uctomb: New file.
50226         * modules/unistr/u16-uctomb: New file.
50227         * modules/unistr/u32-uctomb: New file.
50228         * lib/unistr/u8-uctomb.c: New file.
50229         * lib/unistr/u16-uctomb.c: New file.
50230         * lib/unistr/u32-uctomb.c: New file.
50231
50232         * MODULES.html.sh (Unicode string functions): Add the new modules.
50233
50234 2007-01-08  Bruno Haible  <bruno@clisp.org>
50235
50236         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
50237         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
50238         subdirectories.
50239
50240 2007-01-08  Karl Berry  <karl@gnu.org>
50241
50242         * doc/error.texi: mention that main() fns must set program_name
50243         when progname is used.
50244
50245 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
50248         WCTYPE_H is empty, for the benefit of builds from non-distclean
50249         directories.  Problem reported by Eric Blake in
50250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
50251
50252 2007-01-08  Bruno Haible  <bruno@clisp.org>
50253
50254         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50255         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50256         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50257         PROVIDE_CANONICALIZE_FILENAME_MODE.
50258         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50259
50260 2007-01-08  Bruno Haible  <bruno@clisp.org>
50261
50262         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50263         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50264         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50265         * lib/fts.c: Likewise.
50266         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50267
50268 2006-12-25  Bruno Haible  <bruno@clisp.org>
50269
50270         * modules/utf8-ucs4-safe: New file.
50271         * lib/utf8-ucs4-safe.h: New file.
50272         * lib/unistr/utf8-ucs4-safe.c: New file.
50273
50274         * modules/utf16-ucs4-safe: New file.
50275         * lib/utf16-ucs4-safe.h: New file.
50276         * lib/unistr/utf16-ucs4-safe.c: New file.
50277
50278         * MODULES.html.sh (Unicode string functions): Add the new modules.
50279
50280 2007-01-08  Bruno Haible  <bruno@clisp.org>
50281
50282         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50283         (Depends-on): Add unitypes.
50284         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50285         (u8_mbtouc_aux): Move out to separate file.
50286         (u8_mbtouc): Use ucs4_t, uint8_t types.
50287         * lib/unistr/utf8-ucs4.c: New file.
50288
50289         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50290         (Depends-on): Add unitypes.
50291         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50292         (u16_mbtouc_aux): Move out to separate file.
50293         (u16_mbtouc): Use ucs4_t, uint16_t types.
50294         * lib/unistr/utf16-ucs4.c: New file.
50295
50296         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50297         (Depends-on): Add unitypes.
50298         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50299         (u8_uctomb_aux): Move out to separate file.
50300         (u8_uctomb): Use ucs4_t, uint8_t types.
50301         * lib/unistr/ucs4-utf8.c: New file.
50302
50303         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50304         (Depends-on): Add unitypes.
50305         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50306         (u16_uctomb_aux): Move out to separate file.
50307         (u16_uctomb): Use ucs4_t, uint16_t types.
50308         * lib/unistr/ucs4-utf16.c: New file.
50309
50310 2006-12-25  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/unitypes: New file.
50313         * lib/unitypes.h: New file.
50314         * MODULES.html.sh (func_all_modules): New section "Unicode string
50315         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50316         this section. Add unitypes.
50317
50318 2007-01-08  Bruno Haible  <bruno@clisp.org>
50319
50320         Avoid variable names that conflict with those from libtool.
50321         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50322         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50323         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50324         library_names_spec to acl_library_names_spec, hardcode_* to
50325         acl_hardcode_*.
50326         Reported by Ralf Wildenhues.
50327
50328 2007-01-08  Bruno Haible  <bruno@clisp.org>
50329
50330         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50331         definition.
50332         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50333         definition.
50334         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50335         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50336         definition.
50337         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50338         definition.
50339         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50340         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50341         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50342         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50343         definition.
50344         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50345         definition.
50346         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50347         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50348         GC_USE_<algorithm>.
50349         * lib/gc-libgcrypt.c: Likewise.
50350         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50351         * modules/gc-arctwo (configure.ac): Likewise.
50352         * modules/gc-des (configure.ac): Likewise.
50353         * modules/gc-hmac-md5 (configure.ac): Likewise.
50354         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50355         * modules/gc-md2 (configure.ac): Likewise.
50356         * modules/gc-md4 (configure.ac): Likewise.
50357         * modules/gc-md5 (configure.ac): Likewise.
50358         * modules/gc-random (configure.ac): Likewise.
50359         * modules/gc-rijndael (configure.ac): Likewise.
50360         * modules/gc-sha1 (configure.ac): Likewise.
50361
50362 2007-01-08  Bruno Haible  <bruno@clisp.org>
50363
50364         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50365         macro definition.
50366         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50367         definition.
50368         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50369         definition.
50370         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50371         * modules/fcntl-safer (configure.ac): Likewise.
50372         * modules/fopen-safer (configure.ac): Likewise.
50373         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50374         GNULIB_FWRITEERROR macro definition.
50375
50376 2007-01-08  Bruno Haible  <bruno@clisp.org>
50377
50378         * m4/gnulib-common.m4: New file.
50379         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50380         (func_get_filelist): Add m4/gnulib-common.m4.
50381
50382 2007-01-08  Bruno Haible  <bruno@clisp.org>
50383
50384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50385         command.
50386
50387 2007-01-08  Jim Meyering  <jim@meyering.net>
50388
50389         Use a more robust test for a "can't happen" condition.
50390         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50391         narrowed the st_size value.  Presuming the "can't happen" condition
50392         is true, that narrowing could conceivably convert an invalid st_size
50393         value into a valid one.  Instead, use a change based on Matthew
50394         Woehlke's original patch.
50395
50396         Slight readability improvement: use an assert-like macro
50397         in place of literal "abort ()" uses.
50398         * lib/fts.c (fts_assert): Define.
50399         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50400         Use this macro instead of a bare 'abort'.
50401
50402 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50403
50404         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50405         simply work around them.
50406         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50407         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50408         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50409         declaring.
50410         Don't bother to define as macros, since the standard doesn't require it.
50411         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50412         longer worry about IRIX 5.3.
50413         (HAVE_WCTYPE_CTMP_BUG): Remove.
50414
50415 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50418         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50419         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50420         Problems reported by Georg Schwarz for IRIX 5.3.
50421
50422         * gnulib-tool (autoconf_minversion): Take the maximum version number
50423         found, not the minimum.  Problem reported by James Youngman.
50424
50425 2007-01-03  Karl Berry  <karl@gnu.org>
50426
50427         * doc/error.texi: new file, explaining interaction with progname.
50428         * doc/gnulib.texi: include it.  Update copyright.
50429
50430 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50431
50432         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50433         AC_CANONICAL_HOST, to improve autobuild outputs.
50434
50435 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50436             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50437
50438         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50439         sockets, server sockets, and other file descriptors.  Count errors
50440         to compute the return value.  Reorder the code a bit to be easier
50441         to follow.  Don't set event bits that were not requested (except
50442         POLLERR and POLLHUP).
50443
50444 2007-01-01  Bruno Haible  <bruno@clisp.org>
50445
50446         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50447
50448 2007-01-03  Jim Meyering  <jim@meyering.net>
50449
50450         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50451
50452 2007-01-02  Bruno Haible  <bruno@clisp.org>
50453
50454         * modules/settime (Include): Require timespec.h.
50455         * modules/nanosleep (Include): Likewise.
50456
50457 2007-01-01  Bruno Haible  <bruno@clisp.org>
50458
50459         * gnulib-tool (func_emit_copyright_notice): Bump year.
50460         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50461
50462 2007-01-01  Bruno Haible  <bruno@clisp.org>
50463
50464         Improve support for OpenBSD.
50465         * build-aux/config.rpath (libname_spec): Export.
50466         (library_names_spec): New variable. Export.
50467         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50468         library_names_spec from the config.rpath output. Locate shared library
50469         through the name pattern in library_names_spec.
50470
50471 2007-01-01  Eric Blake  <ebb9@byu.net>
50472
50473         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50474
50475 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50476
50477         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50478         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50479         assume the C locale, and avoid an "eval" that could cause trouble.
50480         Problem with SORT reported by Bob Proulx.
50481
50482         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50483         Define.  Trivial patch from Henning Nielsen Lund, originally
50484         sent to bug-grep@gnu.org today.
50485
50486 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50487
50488         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50489         struct stat.  Problem reported by Henning Nielsen Lund.
50490         * lib/acl.c: Include acl.h first, to check interface.  Don't
50491         bother to include sys/types.h and sys/stat.h again.
50492
50493 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50494
50495         Import the following change from libc; problem reported by
50496         Sven Verdoolaege.
50497
50498         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50499
50500         [BZ #1373]
50501         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50502
50503 2006-12-28  Jim Meyering  <jim@meyering.net>
50504
50505         * build-aux/announce-gen: Do not assume that the package
50506         builds any of tar.gz, tar.bz2, and .xdelta files.
50507         Suggestion from Simon Josefsson.
50508
50509 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50510
50511         * modules/announce-gen: New file.
50512
50513 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50514
50515         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50516         handles its gotchas now.
50517         * lib/mbswidth.c: Likewise.
50518         * lib/wcwidth.h: Likewise.
50519         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50520         and iswcntrl; the wctype module does this stuff now.
50521         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50523         * modules/mbchar (Depends-on): Add wctype.
50524         * modules/mbswidth (Depends-on): Likewise.
50525         * modules/wcwidth (Depends-on): Likewise.
50526
50527 2006-12-27  Eric Blake  <ebb9@byu.net>
50528
50529         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50530         module uses more than what <wctype.h> is required to provide.
50531
50532 2006-12-26  Eric Blake  <ebb9@byu.net>
50533
50534         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50535
50536 2006-12-26  Eric Blake  <ebb9@byu.net>
50537
50538         * modules/absolute-header: New module.
50539         * modules/fcntl (Depends-on): Depend on it.
50540         * modules/inttypes (Depends-on): Likewise.
50541         * modules/stdint (Depends-on): Likewise.
50542         * modules/sys_stat (Depends-on): Likewise.
50543         * modules/wctype (Depends-on): Likewise.
50544         * MODULES.html.sh (Support for building libraries and
50545         executables): Document it.
50546
50547 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50548
50549         * gnulib-tool (SED): Remove, undoing previous change.
50550         The problem was that it broke coreutils on Solaris, because
50551         "sed --posix" leaked into a makefile.
50552         (sed): New alias, if 'alias' and GNU sed.
50553
50554 2006-12-24  Jim Meyering  <jim@meyering.net>
50555
50556         Work around an fchownat bug in glibc-2.4:
50557         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50558         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50559         in spite of the -P option.
50560         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50561         New macros.
50562         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50563         * modules/openat (Files): Add lib/fchownat.c.
50564         * lib/openat.c (fchownat): Don't define here.  Move to...
50565         * lib/fchownat.c: ...this new file.
50566
50567 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         Fix bug reported by Bruno Haible in
50570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50571         where quotearg.c didn't compile on Mac OS X 10.2 because it
50572         lacks <wchar.h> and wint_t.
50573         * lib/wctype_.h (__wctype_wint_t): New type.
50574         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50575         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50576         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50577         Arg is now of type __wctype_wint_t, not wint_t.
50578         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50579         substitute HAVE_WINT_T.
50580         * modules/wctype (Files): Add m4/wint_t.m4.
50581         (wctype.h): Substitute HAVE_WINT_T.
50582
50583 2006-12-23  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50586
50587 2006-12-23  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50590         S_ISLNK.
50591         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50592         mingw.
50593
50594 2006-12-22  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/copy-file.c: Include acl.h.
50597         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50598         Close the file descriptors only after being done with copy_acl.
50599         * modules/copy-file (Depends-on): Add acl.
50600
50601 2006-12-22  Bruno Haible  <bruno@clisp.org>
50602
50603         * gnulib-tool (SED): New variable.
50604         Use $SED instead of sed everywhere.
50605
50606 2006-12-22  Bruno Haible  <bruno@clisp.org>
50607
50608         * modules/no-c++: New file.
50609         * m4/no-c++.m4: New file.
50610         * MODULES.html.sh (Support for building libraries and executables):
50611         Add no-c++.
50612
50613 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50616         Include <limits.h>, and use its INT_MAX to rewrite the
50617         j loop so that it does not overflow 'int'.  Problem reported by
50618         Ralf Wildenhues in
50619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50620         Play it safe by shifting left by 1 rather than multiplying by 2,
50621         as GCC is less likely to optimize this away when the value
50622         is signed (when it assumes overflow leads to undefined behavior).
50623         Also, don't assume time_t uses two's complement.
50624
50625 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50626
50627         * MODULES.html.sh: New module wctype.
50628         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50629         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50630         <wctype.h>, since the new wctype module should fix this.
50631         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50632         the wctype module should arrange for it.
50633         * lib/regex_internal.h: Likewise.
50634         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50635         since the wctype module should handle this now.
50636         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50637         * modules/fnmatch (Depends-on): Add wctype.
50638         * modules/quotearg (Depends-on): Likewise.
50639         * modules/regex (Depends-on): Likewise.
50640
50641 2006-12-19  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50644         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50645
50646 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50647
50648         * modules/savewd (Depends-on): Fix dependency on fcntl.
50649
50650 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50653         conforms to C99, rather than relying on the user's environment
50654         setting of STDINT_H.
50655
50656 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50657         and Eric Blake  <ebb9@byu.net>
50658
50659         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50660         This is more consistent with the other defines here.
50661         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50662         Port to z/OS.  Problem reported by Paul Gilmartin.
50663         Change local vars to use gl_ prefix rather than ac_.
50664         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50665         with other defines.
50666         * modules/double-slash-root: New module.
50667         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50668         (Depends-on): Add double-slash-root.
50669         * MODULES.html.sh (File system functions): Mention new module.
50670
50671 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50674         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50675         This is for the benefit of gzip, which doesn't do i18n.
50676
50677 2006-12-12  Jim Meyering  <jim@meyering.net>
50678
50679         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50680         Reported by Andreas Schwab <schwab@suse.de>.
50681
50682 2006-12-12  Bruno Haible  <bruno@clisp.org>
50683
50684         Merge these changes.
50685         2006-09-05  Bruno Haible  <bruno@clisp.org>
50686         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50687         iconv_alloc succeeded.
50688         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50689         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50690         test for " && dest " at the end - dest is always != NULL there. Call
50691         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50692         with 2xNULL arguments, also to flush the state storage. Handle the
50693         IRIX iconv behaviour. Realloc the final result, to throw away unused
50694         memory.
50695
50696 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50697
50698         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50699         and fchmodat unconditionally, since glibc 2.4 has them.
50700         Problem reported by Arkadiusz Miskiewicz.
50701
50702 2006-12-10  Bruno Haible  <bruno@clisp.org>
50703
50704         * gnulib-tool (func_import): Show the include files only for those
50705         modules that are copied and specified.
50706         Reported by Karl Berry.
50707
50708 2006-12-08  Jim Meyering  <jim@meyering.net>
50709
50710         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50711         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50712
50713         * build-aux/announce-gen: Add two new options, both optional:
50714         --bootstrap-tools=TOOL_LIST
50715               a comma-separated list of tools, e.g.,
50716               autoconf,automake,bison,gnulib
50717         --gnulib-snapshot-date=DATE
50718               if gnulib is in the bootstrap tool list,
50719               then report this as the snapshot date.
50720               If not specified, use the current date/time.
50721               If you specify a date here, be sure it's UTC.
50722
50723 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50724
50725         * tests/test-argp-2.sh: Fix test to match actual output.
50726         (func_compare): Fix sed script to be portable.
50727
50728 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50731         workaround for this case.  It is not autoconfigured now; offhand
50732         it's hard to see how to autoconfigure it.
50733
50734 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50735
50736         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50737         a directory that is about to be chowned.  Such a directory's
50738         initial file permissions should permit the owner only and this
50739         should not be changed until after the chown, since the group and
50740         other bits would be incorrect if they granted permission before
50741         the chown.
50742
50743         Fix porting problem for iswctype reported by Georg Schwarz in:
50744         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50745         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50746         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50748         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50749
50750 2006-12-03  Jim Meyering  <jim@meyering.net>
50751
50752         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50753         p->fts_statp may not yet be defined.
50754         (fts_read): Instead, set it in the caller, once p->fts_statp is
50755         sure to be defined, and corresponds to a top-level directory.
50756         This bug made du -x fail.  Here's the coreutils test case:
50757         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50758         Reported by Mike Frysinger.
50759
50760 2006-12-01  Jim Meyering  <jim@meyering.net>
50761
50762         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50763         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50764         Reported by Simon Josefsson.
50765
50766 2006-11-30  Jim Meyering  <jim@meyering.net>
50767
50768         * m4/warning.m4: Use the all-permissive copyright notice
50769         recommended by RMS (rather than LGPL).
50770         * m4/vararrays.m4: Likewise.
50771         * m4/flexmember.m4: Likewise.
50772
50773 2006-11-29  Bruno Haible  <bruno@clisp.org>
50774
50775         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50776         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50777         using +=.
50778         Reported by Simon Josefsson <simon@josefsson.org>.
50779
50780 2006-11-28  James Youngman <jay@gnu.org>
50781
50782         * README: Advise users that they might find the bug-gnulib@gnu.org
50783         and autotools-announce@gnu.org mailing lists useful.
50784
50785 2006-11-28  Bruno Haible  <bruno@clisp.org>
50786
50787         * m4/ptrdiff_max.m4: Remove file.
50788
50789 2006-11-21  Bruno Haible  <bruno@clisp.org>
50790
50791         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50792         _AC_COMPUTE_INT.
50793         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50794         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50795         _AC_COMPUTE_INT.
50796         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50797         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50798         _AC_COMPUTE_INT.
50799         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50800
50801 2006-11-28  Jim Meyering  <jim@meyering.net>
50802
50803         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50804         warning from "gcc -Wshadow" about shadowing the builtin.
50805
50806 2006-11-27  Bruno Haible  <bruno@clisp.org>
50807
50808         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50809         _AC_COMPUTE_INT.
50810         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50811
50812 2006-11-27  Bruno Haible  <bruno@clisp.org>
50813             Paul Eggert  <eggert@cs.ucla.edu>
50814
50815         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50816
50817 2006-11-26  Bruno Haible  <bruno@clisp.org>
50818
50819         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50820         noinst_LTLIBRARIES.
50821
50822 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50823             Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50826         if compiling with "gcc -ansi".
50827
50828 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         Fix some incompatibilities with gcc -ansi -pedantic.
50831         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50832         if compiling pedantically with GCC, unless it's C99 or later.
50833         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50834         it mishandles gcc -ansi -pedantic as well.
50835         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50836         if gcc -pedantic.
50837         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50838         initializers for struct if -pedantic, unless it's C99 or later.
50839
50840 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50841
50842         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50843         Don't close an fd more than once. Identical atimes indicate
50844         success, not failure.
50845
50846 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50847
50848         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50849
50850 2006-11-23  Jim Meyering  <jim@meyering.net>
50851
50852         * build-aux/announce-gen: New file.  From coreutils.
50853
50854 2006-11-22  Jim Meyering  <jim@meyering.net>
50855
50856         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50857         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50858         (fts_read): Use a temporary to narrow the overused st_size member
50859         before using it in a switch statement.  Reported by Matthew Woehlke.
50860
50861         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50862         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50863
50864 2006-11-20  Bruno Haible  <bruno@clisp.org>
50865
50866         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50867         changequote instead of pairs of brackets.
50868         Reported by Andreas Schwab <schwab@suse.de>.
50869
50870 2006-11-21  Jim Meyering  <jim@meyering.net>
50871
50872         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50873         so as to remain compatible with older compilers.
50874         Patch from Michael Deutschmann.
50875
50876 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50877
50878         * MODULES.html.sh (File system functions): Add openat.
50879
50880         * lib/openat.h (rpl_fstatat): New macro, if
50881         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50882         (fstatat): Define to rpl_fstatat under the same conditions,
50883         unless COMPILING_FSTATAT.
50884         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50885         seems to have the bug.
50886         * lib/fstatat.c: New file.
50887         * modules/openat (Files): Add it.
50888
50889 2006-11-20  Bruno Haible  <bruno@clisp.org>
50890
50891         * Makefile: New file.
50892
50893 2006-11-20  Jim Meyering  <jim@meyering.net>
50894
50895         The beginnings of syntax-related checks for gnulib.
50896         * lib/Makefile: New file.
50897         * lib/t-idcache: New script.  Ensure that the two halves of
50898         idcache.c stay in sync.
50899
50900         * lib/idcache.c: Adjust comments in user- and group- portions to
50901         be more accurate, and to be consistent with one another.
50902
50903 2006-11-20  Jim Meyering  <jim@meyering.net>
50904
50905         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50906         continue using the flexible array member (thus, this module performs
50907         half as many malloc calls), with the addition that...
50908         (getgroup, getuser): Consistently record a non-match via an empty
50909         "name" string, and map an empty string match to a NULL return value.
50910         * modules/idcache (Depends-on): Re-add flexmember.
50911
50912         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50913         (getuidbyname, getgroup, getgidbyname): Likewise.
50914
50915         Use cleaner syntax: NULL rather than 0.
50916         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50917
50918 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50921         It mishandled the case where the group was missing.
50922         Problem reported by Greg Schafer.
50923         * modules/idcache: Likewise.
50924
50925 2006-11-18  Jim Meyering  <jim@meyering.net>
50926
50927         * check-module (%exempt_header): Add exception for some
50928         conditionally-included headers.
50929
50930         * modules/i-ring (Depends-on): Add verify.
50931         (License): Change to LGPL.
50932
50933 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50934
50935         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50936         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50937         and inttostr.h.  Use snprintf rather than uinttostr, so that
50938         LGPLed code doesn't depend on GPLed.
50939
50940 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50941
50942         * modules/inline (License): Change from GPL to LGPL.
50943
50944 2006-11-17  Jim Meyering  <jim@meyering.net>
50945
50946         * modules/d-type (License): Switch to LGPL.
50947
50948 2006-11-15  Bruno Haible  <bruno@clisp.org>
50949
50950         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50951
50952 2006-11-15  Eric Blake  <ebb9@byu.net>
50953
50954         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50955         the module dependency.
50956
50957 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50958             Bruno Haible  <bruno@clisp.org>
50959
50960         * gnulib-tool (func_create_testdir): Add license consistency check.
50961
50962 2006-11-15  Eric Blake  <ebb9@byu.net>
50963
50964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50965         random "(cached)" in configure output.
50966
50967 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50968
50969         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50970         test for conforming inttypes.h is both announced and cached.
50971
50972         * MODULES.html.sh (seen_modules, seen_files): New variables.
50973         (func_module): Rewrite to use a few less gnulib-tool and sed
50974         invocations.  Avoid a couple of quadratic algorithms for ...
50975         (missed_modules, missed_files): ... these, with ...
50976         (func_append, func_tmpdir): ... these new functions, from
50977         gnulib-tool.  Analogously, install traps for cleanup.
50978
50979         * tests/test-gc.c (main): Remove unused variables.
50980         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50981
50982 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * modules/inttostr (License): Change to LGPL.
50985
50986 2006-11-14  Eric Blake  <ebb9@byu.net>
50987
50988         * modules/tempname (License): Change to LGPL.
50989
50990 2006-11-14  Eric Blake  <ebb9@byu.net>
50991
50992         * doc/functions.texi (Function Portability): *printf functions on
50993         Cygwin now understand all POSIX size specifiers.
50994
50995 2006-11-14  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/c-ctype (License): Change to LGPL.
50998
50999 2006-11-12  Bruno Haible  <bruno@clisp.org>
51000
51001         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51002         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
51003         for GNOME libraries, for which the include files are installed in
51004         subdirectories of $prefix/include.
51005
51006 2006-11-12  Bruno Haible  <bruno@clisp.org>
51007
51008         * m4/lib-link.m4: Require at least autoconf-2.54.
51009         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
51010         name to underscores for the --with option.
51011
51012 2006-11-13  Bruno Haible  <bruno@clisp.org>
51013
51014         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
51015         the tests directory.
51016         Reported by Ralf Wildenhues.
51017
51018 2006-11-13  Bruno Haible  <bruno@clisp.org>
51019
51020         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
51021         (func_emit_initmacro_end): Undo the override here.
51022         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
51023         Works around the famous automake error in coreutils.
51024
51025 2006-11-13  Eric Blake  <ebb9@byu.net>
51026
51027         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
51028         element, not its node.
51029
51030 2006-11-12  Bruno Haible  <bruno@clisp.org>
51031
51032         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
51033         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
51034
51035 2006-11-12  Bruno Haible  <bruno@clisp.org>
51036
51037         * gnulib-tool: New option --local-symlink.
51038         (func_usage): Document it.
51039         (lsymbolic): New variable.
51040         (func_import, func_create_testdir): If --symlink was not specified,
51041         test whether --local-symlink was specified and the file comes from
51042         the local_gnulib_dir.
51043
51044 2006-11-12  Bruno Haible  <bruno@clisp.org>
51045
51046         * gnulib-tool (func_ln): New function.
51047         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
51048
51049 2006-11-12  Bruno Haible  <bruno@clisp.org>
51050
51051         Finish support for source files in subdirectories.
51052         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
51053         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
51054         AUTOMAKE_OPTIONS.
51055         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
51056
51057 2006-11-12  Bruno Haible  <bruno@clisp.org>
51058
51059         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51060         EXTRA_lib_SOURCES augmentation.
51061         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
51062
51063 2006-11-12  Jim Meyering  <jim@meyering.net>
51064
51065         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
51066         file descriptors.  This also averts a failure on systems with
51067         native openat support when a traversed directory lacks "x" access.
51068         * lib/fts_.h: Include "i-ring.h"
51069         (struct FTS) [fts_fd_ring]: New member.
51070         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
51071         (FCHDIR): Add parentheses.
51072         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
51073         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
51074         When descending, rather than simply closing the previous
51075         fts_cwd_fd value, push that file descriptor onto the ring.
51076         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51077         (fts_open): Initialize the new fd_ring member.
51078         (fts_close): Clear the ring.
51079         (fts_safe_changedir): When possible, use our new fd_ring to skip
51080         the diropen and fstat and dev/ino comparison that would normally
51081         accompany a virtual `chdir ("..")'.
51082
51083         * modules/fts (Depends-on): Add i-ring.
51084         * modules/i-ring: New module.
51085         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51086         * m4/i-ring.m4: New file.
51087
51088 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51089
51090         * gnulib-tool (func_create_testdir): Fix replacement of
51091         `build-aux' in configure.ac.  Run autotools in gltests
51092         subdirectory.
51093         (func_create_testdir, func_create_megatestdir, test): There is
51094         no need for '--force' in most autotool invocations in a new
51095         tree.  Actually fail the whole test if any of the tools, or the
51096         configure or make stages fail.
51097
51098         Sync from Automake.
51099         * build-aux/gnupload: Revert last change.  Add pointer to upload
51100         instructions of the GNU Maintenance Instructions.
51101         Suggestion by Karl Berry.
51102
51103 2006-11-10  Jim Meyering  <jim@meyering.net>
51104
51105         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51106
51107 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51108
51109         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51110         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51111         (bind_textdomain_codeset) [! ENABLE_NLS]:
51112         Evaluate all the arguments.  That way, callers get compatible behavior
51113         if the arguments have side effects.  Also, it avoids some GCC
51114         diagnostics in some cases; Joel E. Denny reported problems when Bison
51115         was configured with --enable-gcc-warnigs.
51116
51117 2006-11-10  Jim Meyering  <jim@meyering.net>
51118
51119         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51120         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51121         account.
51122
51123 2006-11-10  Jim Meyering  <jim@meyering.net>
51124
51125         * modules/inline: New file/module.
51126         * modules/xalloc (Files): Remove m4/inline.m4.
51127         (Depends-on): Add inline, instead.
51128         * modules/oset: Likewise.
51129         * modules/list: Likewise.
51130
51131 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51132
51133         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
51134         Problem reported by Matthew Woehlke.
51135
51136 2006-11-09  Bruno Haible  <bruno@clisp.org>
51137
51138         * lib/tempname.c (gen_tempname): Remove variant that invokes
51139         __gen_tempname.
51140         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
51141         __gen_tempname.
51142
51143 2006-11-08  Bruno Haible  <bruno@clisp.org>
51144
51145         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
51146         to 'yes' instead of 'cross-compiling'.
51147
51148 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
51149
51150         * lib/quotearg.h (quotearg_free): New decl.
51151         * lib/quotearg.c (quotearg_free): New function.
51152         (slot0, nslots, slotvec0, slotvec):
51153         Now file-scope so that quotearg_free can get at them.
51154
51155 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51156
51157         Sync from Automake.
51158         * build-aux/gnupload: Add missing 'gnu' to example URL.
51159         Report by Karl Berry.
51160
51161 2006-11-08  Bruno Haible  <bruno@clisp.org>
51162
51163         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
51164         Suggested by Paul Eggert.
51165
51166 2006-11-08  Jim Meyering  <jim@meyering.net>
51167
51168         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
51169         It's already included if !_LIBC.
51170         (fts_safe_changedir): Add a comment.
51171
51172 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51173
51174         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
51175         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
51176         Matthew Woehlke.
51177
51178         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
51179         definitions up, to avoid colliding with change below.
51180         (static_inline) [HAVE_INLINE]: New macro.
51181         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
51182         Provide extern decls when !HAVE_INLINE.  Do not define unless
51183         static_inline is defined, either by us or by xmalloc.c.  Use
51184         static_inline rather than static inline.
51185         (XCALLOC): Optimize sizeof(T) = 1 case.
51186         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
51187
51188 2006-11-07  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
51191         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
51192         AC_C_INLINE.
51193         * modules/xalloc (Files): Add m4/inline.m4.
51194
51195 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51196
51197         * README: Fix typo.
51198         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
51199         (Miscellanous Notes): ...from this.
51200
51201 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
51202
51203         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
51204         Mention that offsetof should be used instead of sizeof.
51205         From Bruno Haible.
51206
51207 2006-11-07  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
51210
51211 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51212
51213         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51214         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
51215         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51216         (gl_tree_add_before, gl_tree_add_after):
51217         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
51218         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
51219         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51220         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
51221         (gl_linked_add_after, gl_linked_add_at): Likewise.
51222         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
51223         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
51224         (gl_tree_add_before, gl_tree_add_after): Likewise.
51225         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
51226         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
51227         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
51228
51229 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51230
51231         * lib/gl_oset.h: Use C comment style, not C++ comment style.
51232
51233 2006-11-06  Bruno Haible  <bruno@clisp.org>
51234
51235         * m4/inline.m4: New file.
51236         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
51237         * modules/list (Files): Add m4/inline.m4.
51238         * modules/oset (Files): Likewise.
51239
51240 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
51241
51242         * lib/idcache.c: Include <stddef.h>, for offsetof.
51243         (struct userid.name): Change from char * to a flexible array member.
51244         All uses changed.
51245         * modules/idcache (Depends-on): Add flexmember.
51246
51247         * MODULES.html.sh (Core language properties): New module flexmember.
51248         * modules/flexmember, m4/flexmember.m4: New files.
51249
51250         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
51251         inline functions that are identical with the old xnmalloc_inline,
51252         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
51253         that we can avoid some unnecessary integer multiplications and
51254         divisions in the common case where the element size is known at
51255         compile time.
51256         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51257         needed.
51258         (xnboundedmalloc): Remove.
51259         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51260         arguments, for consistency with rest of this header.
51261         (xcharalloc): Rewrite using XNMALLOC.
51262         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51263         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51264         versions have been moved to lib/xalloc.h and renamed to be the
51265         non-*_inline versions.
51266         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51267         and xnrealloc functions, since those functions are now inline and
51268         now call us.
51269         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51270         renaming described above.
51271         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51272         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51273         captures the dependency in AC_C_INLINE.
51274
51275         New module canonicalize-lgpl, proposed by Charles Wilson in
51276         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51277         with a few small changes afterwards.
51278         * MODULES.html.sh (File system functions): New module
51279         canonicalize-lgpl.
51280         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51281         and canonicalize_file_name.
51282         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51283         * modules/canonicalize-lgpl: New files.
51284
51285 2006-11-05  Bruno Haible  <bruno@clisp.org>
51286
51287         * gnulib-tool (func_import, func_create_testdir): Create directories
51288         also for files in subdirectories of lib/.
51289
51290 2006-11-05  Bruno Haible  <bruno@clisp.org>
51291
51292         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51293         ANSI C compliant.
51294
51295 2006-11-03  Bruno Haible  <bruno@clisp.org>
51296
51297         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51298         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51299         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51300         (xnboundedmalloc): New inline function.
51301         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51302         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51303         xmalloc.
51304         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51305         xmalloc.
51306         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51307         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51308         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51309         xmalloc.
51310         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51311         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51312         xmalloc.
51313         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51314         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51315         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51316         xmalloc.
51317         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51318         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51319         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51320         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51321         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51322         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51323         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51324
51325 2006-11-03  Bruno Haible  <bruno@clisp.org>
51326
51327         * lib/c-ctype.h [C++]: Define functions without name mangling.
51328         * lib/fwriteerror.h [C++]: Likewise.
51329         * lib/gcd.h [C++]: Likewise.
51330         * lib/linebreak.h [C++]: Likewise.
51331
51332 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51333
51334         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51335         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51336         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51337         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51338         Check for functions and headers just once.
51339         Check for declaration of canonicalize_file_name.
51340         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51341
51342 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51343
51344         * gnulib-tool (func_import): Fix typo in actioncmd.
51345
51346 2006-11-02  Bruno Haible  <bruno@clisp.org>
51347
51348         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51349         newline sequence in the Makefile.am snippet as a space, like "make"
51350         does.
51351         Reported by Roger Persson <perrog@gmail.com>.
51352
51353 2006-11-01  Bruno Haible  <bruno@clisp.org>
51354
51355         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51356         already declared in <string.h>.
51357         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51358
51359 2006-11-01  Bruno Haible  <bruno@clisp.org>
51360
51361         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51362         * lib/strcase.h: Include <string.h>.
51363         (strcasecmp): Define to rpl_strcasecmp here.
51364
51365 2006-11-01  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51368
51369 2006-11-01  Eric Blake  <ebb9@byu.net>
51370
51371         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51372
51373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51374
51375 2006-10-29  Bruno Haible  <bruno@clisp.org>
51376
51377         Make it compile in C++ mode.
51378         * lib/full-write.c (full_rw): Add a cast.
51379
51380 2006-11-01  Bruno Haible  <bruno@clisp.org>
51381
51382         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51383         be POSIX compliant.
51384         Reported by Roger Persson <perrog@gmail.com>.
51385
51386 2006-11-01  Eric Blake  <ebb9@byu.net>
51387
51388         * lib/getopt_.h: Fix comments.
51389
51390 2006-10-31  Eric Blake  <ebb9@byu.net>
51391
51392         * modules/tmpdir (Depends-on): Add sys_stat.
51393         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51394         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51395         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51396         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51397         tempname.
51398
51399 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         Avoid some C++ diagnostics reported by Bruno Haible.
51402         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51403         xmalloc.
51404         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51405         (struct slotvec): Move to top level.
51406         (quotearg_n_options): Rewrite to avoid xmalloc.
51407         * lib/xalloc.h (xcharalloc): New function.
51408         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51409         [defined __cplusplus]: Add function template that provides result
51410         type propagation.  This part of the change is from Bruno Haible.
51411
51412 2006-10-29  Bruno Haible  <bruno@clisp.org>
51413
51414         Make it compile in C++ mode.
51415         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51416         * lib/strnlen1.c (strnlen1): Cast memchr result.
51417         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51418         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51419         (create_temp_dir): Rename local variable 'template'.
51420         (compile_csharp_using_sscli): Add cast.
51421         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51422         * lib/findprog.c (find_in_path): Likewise.
51423         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51424         * lib/wait-process.c (register_slave_subprocess): Likewise.
51425
51426 2006-10-22  Bruno Haible  <bruno@clisp.org>
51427
51428         * modules/tsearch: New file.
51429         * lib/tsearch.h: New file.
51430         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51431         * m4/tsearch.m4: New file.
51432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51433
51434 2006-10-29  Eric Blake  <ebb9@byu.net>
51435
51436         * lib/arcfour.c: Assume config.h.
51437         * lib/arctwo.c: Likewise.
51438         * lib/base64.c: Likewise.
51439         * lib/check-version.c: Likewise.
51440         * lib/crc.c: Likewise.
51441         * lib/des.c: Likewise.
51442         * lib/gc-gnulib.c: Likewise.
51443         * lib/gc-libgcrypt.c: Likewise.
51444         * lib/gc-pbkdf2-sha1.c: Likewise.
51445         * lib/getaddrinfo.c: Likewise.
51446         * lib/getdelim.c: Likewise.
51447         * lib/getline.c: Likewise.
51448         * lib/hmac-md5.c: Likewise.
51449         * lib/hmac-sha1.c: Likewise.
51450         * lib/iconvme.c: Likewise.
51451         * lib/md2.c: Likewise.
51452         * lib/md4.c: Likewise.
51453         * lib/memxor.c: Likewise.
51454         * lib/read-file.c: Likewise.
51455         * lib/readline.c: Likewise.
51456         * lib/rijndael-alg-fst.c: Likewise.
51457         * lib/rijndael-api-fst.c: Likewise.
51458         * lib/xgetdomainname.c: Likewise.
51459
51460 2006-10-28  Eric Blake  <ebb9@byu.net>
51461
51462         * lib/xstrndup.c: Assume config.h.
51463
51464 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51465
51466         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51467         stat-macros.h is now for our own macros, whereas stat_h is for
51468         macros in the <sys/stat.h> name space.
51469         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51470         (STAT_MACROS_H): Remove.
51471         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51472         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51473         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51474         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51475         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51476         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51477         Move these macros to ...
51478         * lib/stat_.h: here.  Don't include stat-macros.h.
51479         * lib/canonicalize.c: Don't include stat-macros.h.
51480         * lib/chown.c: Likewise.
51481         * lib/euidaccess.c: Likewise.
51482         * lib/file-type.c: Likewise.
51483         * lib/filemode.c: Likewise.
51484         * lib/glob.c: Likewise.
51485         * lib/isapipe.c: Likewise.
51486         * lib/lchown.c: Likewise.
51487         * lib/lstat.c: Likewise.
51488         * lib/mkdir-p.c: Likewise.
51489         * lib/rmdir.c: Likewise.
51490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51492         unless mkdir isn't declared, to speed up 'configure'.
51493         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51494         would define all the S_* symbols.
51495         * modules/canonicalize (Depends-on):
51496         Depend on sys_stat, not stat-macros.
51497         * modules/chown: Likewise.
51498         * modules/euidaccess: Likewise.
51499         * modules/filemode: Likewise.
51500         * modules/file-type: Likewise.
51501         * modules/glob: Likewise.
51502         * modules/isapipe: Likewise.
51503         * modules/lchown: Likewise.
51504         * modules/lstat: Likewise.
51505         * modules/mkancesdirs: Likewise.
51506         * modules/rmdir: Likewise.
51507         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51508         * modules/modechange: Likewise.
51509         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51510         (configure.ac): Remove gl_STAT_MACROS.
51511         * modules/sys_stat (Depends-on): Remove stat-macros.
51512
51513 2006-10-27  Bruno Haible  <bruno@clisp.org>
51514
51515         * m4/signed.m4: Remove file.
51516         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51517         invocation.
51518         * modules/vasnprintf (Files): Remove m4/signed.m4.
51519
51520 2006-10-27  Bruno Haible  <bruno@clisp.org>
51521
51522         Update to GNU gettext 0.16.
51523         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51524         m4/inttypes-h.m4, m4/signed.m4.
51525         * m4/gettext.m4: Update to GNU gettext 0.16.
51526         * m4/intl.m4: New file, from GNU gettext.
51527         * m4/intldir.m4: New file, from GNU gettext.
51528         * config/srclist.txt: Update
51529
51530 2006-10-27  Eric Blake  <ebb9@byu.net>
51531
51532         * MODULES.html.sh: Document tempname.
51533         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51534         dependencies.
51535         (Files): Move lib/tempname.c...
51536         * modules/tempname: ...to this new module.
51537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51538         (gl_PREREQ_TEMPNAME): Move...
51539         * m4/tempname.m4: ...to this new file.
51540         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51541         * modules/sys_stat (Depends-on): Add stat-macros.
51542         * lib/stat_.h (includes): Pick up stat macros.
51543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51544         if stat macros are broken.
51545         * lib/tempname.c (includes): No need to include "stat-macros.h".
51546         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51547         (direxists, __path_search) [!_LIBC]: Don't compile these in
51548         gnulib; the tmpdir module covers that.
51549         * lib/tempname.h: New file.
51550
51551 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * COPYING: Explain how gnulib-tool converts licence headers.
51554         Almost all wording by Eric Blake.
51555
51556 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         * lib/mbchar.h (is_basic_table): Make read-only.
51559         * lib/mbchar.c (is_basic_table): Likewise.
51560         Reported by John Darrington.
51561
51562 2006-10-25  Bruno Haible  <bruno@clisp.org>
51563
51564         * lib/progname.h (set_program_name): Undefine before defining.
51565
51566 2006-10-25  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51569         false for non-gcc C++ compilers.
51570         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51571
51572 2006-10-24  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51575         iconv implementations like Irix iconv.
51576
51577 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51578
51579         * modules/vararrays: New file.
51580         * m4/vararrays.m4: New file, taken from diffutils.
51581         * MODULES.html.sh: New module vararrays.
51582
51583 2006-10-24  Karl Berry  <karl@gnu.org>
51584
51585         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51586         Don't call GNU Unix.
51587
51588 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51589
51590         * users.txt: Add Libtool.
51591
51592         Sync from Libtool:
51593
51594         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51595
51596         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51597         to gnulib's policy of including config.h unconditionally.
51598
51599 2006-10-24  Bruno Haible  <bruno@clisp.org>
51600
51601         * modules/wcwidth (Files): Add m4/wint_t.m4.
51602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51603         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51604
51605 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51608         to pacify GCC with some -W flags enabled.  Problem reported by
51609         Bruno Haible.
51610
51611 2006-10-24  Jim Meyering  <jim@meyering.net>
51612
51613         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51614         Reported by Karl Berry.
51615
51616 2006-10-23  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51619
51620 2006-10-24  Bruno Haible  <bruno@clisp.org>
51621
51622         * lib/gl_list.h: Use C comment style, not C++ comment style.
51623
51624 2006-10-23  Eric Blake  <ebb9@byu.net>
51625
51626         * lib/getaddrinfo.c (includes): Add missing include.
51627
51628 2006-10-23  Bruno Haible  <bruno@clisp.org>
51629             Paul Eggert  <eggert@cs.ucla.edu>
51630
51631         Ability to rename obstack_free.
51632         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51633         obstack_free.
51634         (obstack_free): Invoke the __obstack_free macro.
51635         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51636
51637 2006-10-23  Bruno Haible  <bruno@clisp.org>
51638             Paul Eggert  <eggert@cs.ucla.edu>
51639
51640         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51641         __argc, __argv from the declaration. (They are defined as macros on
51642         mingw.)
51643
51644 2006-10-22  Bruno Haible  <bruno@clisp.org>
51645
51646         * doc/gnulib-intro.texi: New file.
51647         * doc/gnulib.texi: Include it.
51648
51649 2006-10-21  Bruno Haible  <bruno@clisp.org>
51650
51651         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51652         "Introduction", "Miscellanous Notes", "Particular Modules".
51653
51654 2006-10-21  Bruno Haible  <bruno@clisp.org>
51655
51656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51657         Change mostlyclean-local rule to avoid sh syntax error from bash
51658         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51659
51660 2006-10-23  Jim Meyering  <jim@meyering.net>
51661
51662         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51663         in place of snprintf.
51664
51665         * modules/inttostr (Files): Add lib/uinttostr.c.
51666         * lib/uinttostr.c (inttostr): New file/function.
51667         * lib/inttostr.h (uinttostr): Declare.
51668         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51669         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51670         Add uinttostr.
51671         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51672
51673 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51674
51675         * lib/canonicalize.c (ELOOP): Define if not already defined.
51676         Problem reported by Bruno Haible in
51677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51678
51679 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51682         Problem reported by Perry Smith and Ville Laurikari.
51683
51684         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51685         uses.
51686
51687 2006-10-19  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51690         for mingw.
51691
51692 2006-10-19  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51695         Needed for mingw.
51696
51697 2006-10-19  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51700
51701 2006-10-19  Bruno Haible  <bruno@clisp.org>
51702
51703         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51704         it.
51705
51706 2006-10-19  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51709         invocation.
51710
51711 2006-10-19  Bruno Haible  <bruno@clisp.org>
51712
51713         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51714         mountlist by default.
51715
51716 2006-10-16  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/c-strstr.c: Include c-strstr.h.
51719
51720 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51721
51722         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51723         in a slash.
51724
51725 2006-10-18  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/lock.h [C++]: Wrap definitions in extern "C".
51728
51729 2006-10-18  Bruno Haible  <bruno@clisp.org>
51730
51731         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51732         gl_LIBOBJS list.
51733
51734 2006-10-18  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51737
51738 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51739
51740         * lib/xstrtol.h: Include gettext.h.
51741         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51742         Problem reported by Eric Blake.
51743         * modules/xstrtol (Depends-on): Add gettext-h.
51744
51745 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51746
51747         * lib/strftime.c (advance): New macro.
51748         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51749         incomplete type, so you can't add 0 to it.  Problem and patch
51750         reported by Eelco Dolstra for dietlibc.
51751
51752 2006-10-18  Jim Meyering  <jim@meyering.net>
51753
51754         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51755         type for a local, and rename it: s/up/user_proc/.
51756
51757 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51758
51759         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51760         READ_UTMP_USER_PROCESS.
51761         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51762
51763 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51764
51765         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51766         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51767
51768 2006-10-17  Eric Blake  <ebb9@byu.net>
51769
51770         * lib/sigprocmask.c (sigprocmask): Fix typo.
51771
51772         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51773
51774         * modules/clean-temp (Makefile.am): Don't add to make output...
51775         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51776         config.h.
51777
51778 2006-10-17  Bruno Haible  <bruno@clisp.org>
51779
51780         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51781         differently if DEFAULT_TEXT_DOMAIN is set.
51782
51783 2006-10-16  Bruno Haible  <bruno@clisp.org>
51784
51785         * lib/clean-temp.c: Include fwriteerror.h.
51786
51787 2006-10-16  Bruno Haible  <bruno@clisp.org>
51788
51789         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51790
51791 2006-10-16  Bruno Haible  <bruno@clisp.org>
51792
51793         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51794         * lib/sigprocmask.h: Include <sys/types.h>.
51795         (sigset_t): Use the system's definition if present.
51796
51797 2006-10-17  Eric Blake  <ebb9@byu.net>
51798
51799         * lib/xvasprintf.c (includes): Assume config.h.
51800         * lib/xasprintf.c (includes): Likewise.
51801
51802 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51803
51804         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51805         at least as wide as intmax_t.
51806
51807 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51808
51809         (Imported from Automake.)
51810         * build-aux/gnupload: Update to version 1.1 of directive file.
51811
51812 2006-10-16  Eric Blake  <ebb9@byu.net>
51813
51814         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51815         match Automake 1.10a.
51816
51817 2006-10-14  Bruno Haible  <bruno@clisp.org>
51818
51819         * modules/sigprocmask: New file.
51820         * lib/sigprocmask.h: New file.
51821         * lib/sigprocmask.c: New file.
51822         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51823         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51824         request sigprocmask.o.
51825         (gl_PREREQ_SIGPROCMASK): New macro.
51826         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51827         (Depends-on): Add sigprocmask.
51828         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51829         gt_SIGNALBLOCKING. Test for 'raise' only once.
51830         * lib/fatal-signal.c: Include sigprocmask.h.
51831         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51832         unblock_fatal_signals): Define always.
51833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51834         sigprocmask.
51835
51836 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51837
51838         Sync from Automake.
51839         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51840         which incorrectly sets the mode of an existing destination
51841         directory.  In some cases the unpatched install-sh could do the
51842         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51843         system.  We hope this is rare in practice, but it's clearly worth
51844         fixing.  Problem reported by Alex Unleashed in
51845         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51846         Also, don't bother to check for -m bugs unless we're using -m;
51847         suggested by Stepan Kasal.
51848
51849 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51850
51851         Sync from Automake.
51852         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51853         `-c' flag, so they appear at the same position as in %FASTDEP%
51854         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51855         which ignores unknown options only after the first non-option.
51856         Bug report against M4 by Nelson H. F. Beebe.
51857
51858 2006-10-13  Jim Meyering  <jim@meyering.net>
51859
51860         Fix a bug in yesterday's change.
51861         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51862         p->fts_statp->st_dev would be used uninitialized.
51863         Ensures that we always call fts_stat on the very first entry.
51864         Miklos Szeredi reported that find -xdev stopped working.
51865
51866 2006-10-12  Bruno Haible  <bruno@clisp.org>
51867
51868         * gnulib-tool (func_get_automake_snippet): Append an automatically
51869         computed EXTRA_DIST augmentation.
51870         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51871         * modules/alloca-opt (Makefile.am): Likewise.
51872         * modules/allocsa (Makefile.am): Likewise.
51873         * modules/arcfour (Makefile.am): Likewise.
51874         * modules/arctwo (Makefile.am): Likewise.
51875         * modules/argmatch (Makefile.am): Likewise.
51876         * modules/argz (Makefile.am): Likewise.
51877         * modules/atexit (Makefile.am): Likewise.
51878         * modules/backupfile (Makefile.am): Likewise.
51879         * modules/byteswap (Makefile.am): Likewise.
51880         * modules/c-strtod (Makefile.am): Likewise.
51881         * modules/c-strtold (Makefile.am): Likewise.
51882         * modules/calloc (Makefile.am): Likewise.
51883         * modules/canon-host (Makefile.am): Likewise.
51884         * modules/canonicalize (Makefile.am): Likewise.
51885         * modules/chdir-long (Makefile.am): Likewise.
51886         * modules/chdir-safer (Makefile.am): Likewise.
51887         * modules/check-version (Makefile.am): Likewise.
51888         * modules/chown (Makefile.am): Likewise.
51889         * modules/cloexec (Makefile.am): Likewise.
51890         * modules/close-stream (Makefile.am): Likewise.
51891         * modules/closeout (Makefile.am): Likewise.
51892         * modules/crc (Makefile.am): Likewise.
51893         * modules/csharpexec (Makefile.am): Likewise.
51894         * modules/cycle-check (Makefile.am): Likewise.
51895         * modules/des (Makefile.am): Likewise.
51896         * modules/dev-ino (Makefile.am): Likewise.
51897         * modules/dirfd (Makefile.am): Likewise.
51898         * modules/dirname (Makefile.am): Likewise.
51899         * modules/dup2 (Makefile.am): Likewise.
51900         * modules/eealloc (Makefile.am): Likewise.
51901         * modules/error (Makefile.am): Likewise.
51902         * modules/euidaccess (Makefile.am): Likewise.
51903         * modules/exclude (Makefile.am): Likewise.
51904         * modules/exitfail (Makefile.am): Likewise.
51905         * modules/fcntl-safer (Makefile.am): Likewise.
51906         * modules/fcntl (Makefile.am): Likewise.
51907         * modules/file-type (Makefile.am): Likewise.
51908         * modules/fileblocks (Makefile.am): Likewise.
51909         * modules/filemode (Makefile.am): Likewise.
51910         * modules/filenamecat (Makefile.am): Likewise.
51911         * modules/fnmatch (Makefile.am): Likewise.
51912         * modules/fopen-safer (Makefile.am): Likewise.
51913         * modules/fpending (Makefile.am): Likewise.
51914         * modules/fprintftime (Makefile.am): Likewise.
51915         * modules/free (Makefile.am): Likewise.
51916         * modules/fsusage (Makefile.am): Likewise.
51917         * modules/ftruncate (Makefile.am): Likewise.
51918         * modules/fts (Makefile.am): Likewise.
51919         * modules/gc-arcfour (Makefile.am): Likewise.
51920         * modules/gc-des (Makefile.am): Likewise.
51921         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51922         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51923         * modules/gc-md4 (Makefile.am): Likewise.
51924         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51925         * modules/gc-sha1 (Makefile.am): Likewise.
51926         * modules/gc (Makefile.am): Likewise.
51927         * modules/getaddrinfo (Makefile.am): Likewise.
51928         * modules/getcwd (Makefile.am): Likewise.
51929         * modules/getdelim (Makefile.am): Likewise.
51930         * modules/getdomainname (Makefile.am): Likewise.
51931         * modules/getgroups (Makefile.am): Likewise.
51932         * modules/gethostname (Makefile.am): Likewise.
51933         * modules/gethrxtime (Makefile.am): Likewise.
51934         * modules/getline (Makefile.am): Likewise.
51935         * modules/getloadavg (Makefile.am): Likewise.
51936         * modules/getlogin_r (Makefile.am): Likewise.
51937         * modules/getndelim2 (Makefile.am): Likewise.
51938         * modules/getopt (Makefile.am): Likewise.
51939         * modules/getpagesize (Makefile.am): Likewise.
51940         * modules/getpass-gnu (Makefile.am): Likewise.
51941         * modules/getpass (Makefile.am): Likewise.
51942         * modules/getsubopt (Makefile.am): Likewise.
51943         * modules/gettime (Makefile.am): Likewise.
51944         * modules/gettimeofday (Makefile.am): Likewise.
51945         * modules/getugroups (Makefile.am): Likewise.
51946         * modules/getusershell (Makefile.am): Likewise.
51947         * modules/glob (Makefile.am): Likewise.
51948         * modules/group-member (Makefile.am): Likewise.
51949         * modules/hard-locale (Makefile.am): Likewise.
51950         * modules/hash (Makefile.am): Likewise.
51951         * modules/hmac-md5 (Makefile.am): Likewise.
51952         * modules/hmac-sha1 (Makefile.am): Likewise.
51953         * modules/human (Makefile.am): Likewise.
51954         * modules/idcache (Makefile.am): Likewise.
51955         * modules/imaxabs (Makefile.am): Likewise.
51956         * modules/imaxdiv (Makefile.am): Likewise.
51957         * modules/inet_ntop (Makefile.am): Likewise.
51958         * modules/inet_pton (Makefile.am): Likewise.
51959         * modules/intprops (Makefile.am): Likewise.
51960         * modules/inttostr (Makefile.am): Likewise.
51961         * modules/inttypes (Makefile.am): Likewise.
51962         * modules/isapipe (Makefile.am): Likewise.
51963         * modules/javaversion (Makefile.am): Likewise.
51964         * modules/lchmod (Makefile.am): Likewise.
51965         * modules/lchown (Makefile.am): Likewise.
51966         * modules/localcharset (Makefile.am): Likewise.
51967         * modules/long-options (Makefile.am): Likewise.
51968         * modules/lstat (Makefile.am): Likewise.
51969         * modules/malloc (Makefile.am): Likewise.
51970         * modules/mathl (Makefile.am): Likewise.
51971         * modules/mbchar (Makefile.am): Likewise.
51972         * modules/md2 (Makefile.am): Likewise.
51973         * modules/md4 (Makefile.am): Likewise.
51974         * modules/md5 (Makefile.am): Likewise.
51975         * modules/memcasecmp (Makefile.am): Likewise.
51976         * modules/memchr (Makefile.am): Likewise.
51977         * modules/memcmp (Makefile.am): Likewise.
51978         * modules/memcoll (Makefile.am): Likewise.
51979         * modules/memcpy (Makefile.am): Likewise.
51980         * modules/memmem (Makefile.am): Likewise.
51981         * modules/memmove (Makefile.am): Likewise.
51982         * modules/mempcpy (Makefile.am): Likewise.
51983         * modules/memrchr (Makefile.am): Likewise.
51984         * modules/memset (Makefile.am): Likewise.
51985         * modules/memxor (Makefile.am): Likewise.
51986         * modules/mkancesdirs (Makefile.am): Likewise.
51987         * modules/mkdir-p (Makefile.am): Likewise.
51988         * modules/mkdir (Makefile.am): Likewise.
51989         * modules/mkdtemp (Makefile.am): Likewise.
51990         * modules/mkstemp (Makefile.am): Likewise.
51991         * modules/mktime (Makefile.am): Likewise.
51992         * modules/modechange (Makefile.am): Likewise.
51993         * modules/mountlist (Makefile.am): Likewise.
51994         * modules/nanosleep (Makefile.am): Likewise.
51995         * modules/obstack (Makefile.am): Likewise.
51996         * modules/openat (Makefile.am): Likewise.
51997         * modules/pagealign_alloc (Makefile.am): Likewise.
51998         * modules/pathmax (Makefile.am): Likewise.
51999         * modules/physmem (Makefile.am): Likewise.
52000         * modules/poll (Makefile.am): Likewise.
52001         * modules/posixtm (Makefile.am): Likewise.
52002         * modules/posixver (Makefile.am): Likewise.
52003         * modules/putenv (Makefile.am): Likewise.
52004         * modules/quote (Makefile.am): Likewise.
52005         * modules/quotearg (Makefile.am): Likewise.
52006         * modules/raise (Makefile.am): Likewise.
52007         * modules/read-file (Makefile.am): Likewise.
52008         * modules/readline (Makefile.am): Likewise.
52009         * modules/readlink (Makefile.am): Likewise.
52010         * modules/readtokens (Makefile.am): Likewise.
52011         * modules/readutmp (Makefile.am): Likewise.
52012         * modules/realloc (Makefile.am): Likewise.
52013         * modules/regex (Makefile.am): Likewise.
52014         * modules/rename-dest-slash (Makefile.am): Likewise.
52015         * modules/rename (Makefile.am): Likewise.
52016         * modules/rijndael (Makefile.am): Likewise.
52017         * modules/rmdir (Makefile.am): Likewise.
52018         * modules/rpmatch (Makefile.am): Likewise.
52019         * modules/safe-read (Makefile.am): Likewise.
52020         * modules/safe-write (Makefile.am): Likewise.
52021         * modules/same-inode (Makefile.am): Likewise.
52022         * modules/same (Makefile.am): Likewise.
52023         * modules/save-cwd (Makefile.am): Likewise.
52024         * modules/savedir (Makefile.am): Likewise.
52025         * modules/setenv (Makefile.am): Likewise.
52026         * modules/settime (Makefile.am): Likewise.
52027         * modules/sha1 (Makefile.am): Likewise.
52028         * modules/sig2str (Makefile.am): Likewise.
52029         * modules/snprintf (Makefile.am): Likewise.
52030         * modules/stat-macros (Makefile.am): Likewise.
52031         * modules/stat-time (Makefile.am): Likewise.
52032         * modules/stdbool (Makefile.am): Likewise.
52033         * modules/stdint (Makefile.am): Likewise.
52034         * modules/stdlib-safer (Makefile.am): Likewise.
52035         * modules/stpcpy (Makefile.am): Likewise.
52036         * modules/stpncpy (Makefile.am): Likewise.
52037         * modules/strcase (Makefile.am): Likewise.
52038         * modules/strcasestr (Makefile.am): Likewise.
52039         * modules/strchrnul (Makefile.am): Likewise.
52040         * modules/strcspn (Makefile.am): Likewise.
52041         * modules/strdup (Makefile.am): Likewise.
52042         * modules/strerror (Makefile.am): Likewise.
52043         * modules/strftime (Makefile.am): Likewise.
52044         * modules/strndup (Makefile.am): Likewise.
52045         * modules/strnlen (Makefile.am): Likewise.
52046         * modules/strpbrk (Makefile.am): Likewise.
52047         * modules/strsep (Makefile.am): Likewise.
52048         * modules/strstr (Makefile.am): Likewise.
52049         * modules/strtod (Makefile.am): Likewise.
52050         * modules/strtoimax (Makefile.am): Likewise.
52051         * modules/strtok_r (Makefile.am): Likewise.
52052         * modules/strtol (Makefile.am): Likewise.
52053         * modules/strtoll (Makefile.am): Likewise.
52054         * modules/strtoul (Makefile.am): Likewise.
52055         * modules/strtoull (Makefile.am): Likewise.
52056         * modules/strtoumax (Makefile.am): Likewise.
52057         * modules/strverscmp (Makefile.am): Likewise.
52058         * modules/sys_socket (Makefile.am): Likewise.
52059         * modules/sys_stat (Makefile.am): Likewise.
52060         * modules/sysexits (Makefile.am): Likewise.
52061         * modules/time_r (Makefile.am): Likewise.
52062         * modules/timegm (Makefile.am): Likewise.
52063         * modules/timespec (Makefile.am): Likewise.
52064         * modules/tmpfile-safer (Makefile.am): Likewise.
52065         * modules/trim (Makefile.am): Likewise.
52066         * modules/unistd-safer (Makefile.am): Likewise.
52067         * modules/unlinkdir (Makefile.am): Likewise.
52068         * modules/unlocked-io (Makefile.am): Likewise.
52069         * modules/userspec (Makefile.am): Likewise.
52070         * modules/utime (Makefile.am): Likewise.
52071         * modules/utimecmp (Makefile.am): Likewise.
52072         * modules/utimens (Makefile.am): Likewise.
52073         * modules/vasnprintf (Makefile.am): Likewise.
52074         * modules/vasprintf (Makefile.am): Likewise.
52075         * modules/vsnprintf (Makefile.am): Likewise.
52076         * modules/xalloc (Makefile.am): Likewise.
52077         * modules/xgetcwd (Makefile.am): Likewise.
52078         * modules/xnanosleep (Makefile.am): Likewise.
52079         * modules/xreadlink (Makefile.am): Likewise.
52080         * modules/xstrtod (Makefile.am): Likewise.
52081         * modules/xstrtol (Makefile.am): Likewise.
52082         * modules/xstrtold (Makefile.am): Likewise.
52083         * modules/yesno (Makefile.am): Likewise.
52084         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52085
52086 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52087
52088         * modules/error (Makefile.am): Distribute files through
52089         EXTRA_DIST, not lib_SOURCES.
52090
52091 2006-10-12  Eric Blake  <ebb9@byu.net>
52092
52093         * modules/error (Makefile.am): Distribute files in /lib.
52094         * modules/obstack (Makefile.am): Likewise.
52095
52096 2006-10-12  Bruno Haible  <bruno@clisp.org>
52097
52098         * modules/acl (Makefile.am): Distribute all files in lib/ through
52099         EXTRA_DIST.
52100         * modules/arcfour (Makefile.am): Likewise.
52101         * modules/arctwo (Makefile.am): Likewise.
52102         * modules/argmatch (Makefile.am): Likewise.
52103         * modules/argz (Makefile.am): Likewise.
52104         * modules/atexit (Makefile.am): Likewise.
52105         * modules/backupfile (Makefile.am): Likewise.
52106         * modules/c-strtod (Makefile.am): Likewise.
52107         * modules/c-strtold (Makefile.am): Likewise.
52108         * modules/calloc (Makefile.am): Likewise.
52109         * modules/canon-host (Makefile.am): Likewise.
52110         * modules/canonicalize (Makefile.am): Likewise.
52111         * modules/chdir-long (Makefile.am): Likewise.
52112         * modules/chdir-safer (Makefile.am): Likewise.
52113         * modules/check-version (Makefile.am): Likewise.
52114         * modules/chown (Makefile.am): Likewise.
52115         * modules/cloexec (Makefile.am): Likewise.
52116         * modules/close-stream (Makefile.am): Likewise.
52117         * modules/closeout (Makefile.am): Likewise.
52118         * modules/crc (Makefile.am): Likewise.
52119         * modules/cycle-check (Makefile.am): Likewise.
52120         * modules/des (Makefile.am): Likewise.
52121         * modules/dirfd (Makefile.am): Likewise.
52122         * modules/dirname (Makefile.am): Likewise.
52123         * modules/dup2 (Makefile.am): Likewise.
52124         * modules/euidaccess (Makefile.am): Likewise.
52125         * modules/exclude (Makefile.am): Likewise.
52126         * modules/exitfail (Makefile.am): Likewise.
52127         * modules/fcntl-safer (Makefile.am): Likewise.
52128         * modules/file-type (Makefile.am): Likewise.
52129         * modules/fileblocks (Makefile.am): Likewise.
52130         * modules/filemode (Makefile.am): Likewise.
52131         * modules/filenamecat (Makefile.am): Likewise.
52132         * modules/fnmatch (Makefile.am): Likewise.
52133         * modules/fopen-safer (Makefile.am): Likewise.
52134         * modules/fpending (Makefile.am): Likewise.
52135         * modules/fprintftime (Makefile.am): Likewise.
52136         * modules/free (Makefile.am): Likewise.
52137         * modules/fsusage (Makefile.am): Likewise.
52138         * modules/ftruncate (Makefile.am): Likewise.
52139         * modules/fts (Makefile.am): Likewise.
52140         * modules/gc (Makefile.am): Likewise.
52141         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52142         * modules/getaddrinfo (Makefile.am): Likewise.
52143         * modules/getcwd (Makefile.am): Likewise.
52144         * modules/getdelim (Makefile.am): Likewise.
52145         * modules/getdomainname (Makefile.am): Likewise.
52146         * modules/getgroups (Makefile.am): Likewise.
52147         * modules/gethostname (Makefile.am): Likewise.
52148         * modules/gethrxtime (Makefile.am): Likewise.
52149         * modules/getline (Makefile.am): Likewise.
52150         * modules/getloadavg (Makefile.am): Likewise.
52151         * modules/getlogin_r (Makefile.am): Likewise.
52152         * modules/getopt (Makefile.am): Likewise.
52153         * modules/getpass (Makefile.am): Likewise.
52154         * modules/getpass-gnu (Makefile.am): Likewise.
52155         * modules/getsubopt (Makefile.am): Likewise.
52156         * modules/gettime (Makefile.am): Likewise.
52157         * modules/gettimeofday (Makefile.am): Likewise.
52158         * modules/getugroups (Makefile.am): Likewise.
52159         * modules/getusershell (Makefile.am): Likewise.
52160         * modules/glob (Makefile.am): Likewise.
52161         * modules/group-member (Makefile.am): Likewise.
52162         * modules/hard-locale (Makefile.am): Likewise.
52163         * modules/hash (Makefile.am): Likewise.
52164         * modules/hmac-md5 (Makefile.am): Likewise.
52165         * modules/hmac-sha1 (Makefile.am): Likewise.
52166         * modules/human (Makefile.am): Likewise.
52167         * modules/idcache (Makefile.am): Likewise.
52168         * modules/imaxabs (Makefile.am): Likewise.
52169         * modules/imaxdiv (Makefile.am): Likewise.
52170         * modules/inet_ntop (Makefile.am): Likewise.
52171         * modules/inet_pton (Makefile.am): Likewise.
52172         * modules/inttostr (Makefile.am): Likewise.
52173         * modules/isapipe (Makefile.am): Likewise.
52174         * modules/lchown (Makefile.am): Likewise.
52175         * modules/long-options (Makefile.am): Likewise.
52176         * modules/lstat (Makefile.am): Likewise.
52177         * modules/malloc (Makefile.am): Likewise.
52178         * modules/mathl (Makefile.am): Likewise.
52179         * modules/mbchar (Makefile.am): Likewise.
52180         * modules/md2 (Makefile.am): Likewise.
52181         * modules/md4 (Makefile.am): Likewise.
52182         * modules/md5 (Makefile.am): Likewise.
52183         * modules/memcasecmp (Makefile.am): Likewise.
52184         * modules/memchr (Makefile.am): Likewise.
52185         * modules/memcmp (Makefile.am): Likewise.
52186         * modules/memcoll (Makefile.am): Likewise.
52187         * modules/memcpy (Makefile.am): Likewise.
52188         * modules/memmem (Makefile.am): Likewise.
52189         * modules/memmove (Makefile.am): Likewise.
52190         * modules/mempcpy (Makefile.am): Likewise.
52191         * modules/memrchr (Makefile.am): Likewise.
52192         * modules/memset (Makefile.am): Likewise.
52193         * modules/memxor (Makefile.am): Likewise.
52194         * modules/mkancesdirs (Makefile.am): Likewise.
52195         * modules/mkdir (Makefile.am): Likewise.
52196         * modules/mkdir-p (Makefile.am): Likewise.
52197         * modules/mkdtemp (Makefile.am): Likewise.
52198         * modules/mkstemp (Makefile.am): Likewise.
52199         * modules/mktime (Makefile.am): Likewise.
52200         * modules/modechange (Makefile.am): Likewise.
52201         * modules/mountlist (Makefile.am): Likewise.
52202         * modules/nanosleep (Makefile.am): Likewise.
52203         * modules/openat (Makefile.am): Likewise.
52204         * modules/pagealign_alloc (Makefile.am): Likewise.
52205         * modules/physmem (Makefile.am): Likewise.
52206         * modules/poll (Makefile.am): Likewise.
52207         * modules/posixtm (Makefile.am): Likewise.
52208         * modules/posixver (Makefile.am): Likewise.
52209         * modules/putenv (Makefile.am): Likewise.
52210         * modules/quote (Makefile.am): Likewise.
52211         * modules/quotearg (Makefile.am): Likewise.
52212         * modules/raise (Makefile.am): Likewise.
52213         * modules/read-file (Makefile.am): Likewise.
52214         * modules/readline (Makefile.am): Likewise.
52215         * modules/readlink (Makefile.am): Likewise.
52216         * modules/readtokens (Makefile.am): Likewise.
52217         * modules/readutmp (Makefile.am): Likewise.
52218         * modules/realloc (Makefile.am): Likewise.
52219         * modules/regex (Makefile.am): Likewise.
52220         * modules/rename (Makefile.am): Likewise.
52221         * modules/rename-dest-slash (Makefile.am): Likewise.
52222         * modules/rijndael (Makefile.am): Likewise.
52223         * modules/rmdir (Makefile.am): Likewise.
52224         * modules/rpmatch (Makefile.am): Likewise.
52225         * modules/safe-read (Makefile.am): Likewise.
52226         * modules/safe-write (Makefile.am): Likewise.
52227         * modules/same (Makefile.am): Likewise.
52228         * modules/save-cwd (Makefile.am): Likewise.
52229         * modules/savedir (Makefile.am): Likewise.
52230         * modules/setenv (Makefile.am): Likewise.
52231         * modules/settime (Makefile.am): Likewise.
52232         * modules/sha1 (Makefile.am): Likewise.
52233         * modules/sig2str (Makefile.am): Likewise.
52234         * modules/snprintf (Makefile.am): Likewise.
52235         * modules/stdlib-safer (Makefile.am): Likewise.
52236         * modules/stpcpy (Makefile.am): Likewise.
52237         * modules/stpncpy (Makefile.am): Likewise.
52238         * modules/strcase (Makefile.am): Likewise.
52239         * modules/strcasestr (Makefile.am): Likewise.
52240         * modules/strchrnul (Makefile.am): Likewise.
52241         * modules/strcspn (Makefile.am): Likewise.
52242         * modules/strdup (Makefile.am): Likewise.
52243         * modules/strerror (Makefile.am): Likewise.
52244         * modules/strftime (Makefile.am): Likewise.
52245         * modules/strndup (Makefile.am): Likewise.
52246         * modules/strnlen (Makefile.am): Likewise.
52247         * modules/strpbrk (Makefile.am): Likewise.
52248         * modules/strsep (Makefile.am): Likewise.
52249         * modules/strstr (Makefile.am): Likewise.
52250         * modules/strtod (Makefile.am): Likewise.
52251         * modules/strtoimax (Makefile.am): Likewise.
52252         * modules/strtok_r (Makefile.am): Likewise.
52253         * modules/strtol (Makefile.am): Likewise.
52254         * modules/strtoll (Makefile.am): Likewise.
52255         * modules/strtoul (Makefile.am): Likewise.
52256         * modules/strtoull (Makefile.am): Likewise.
52257         * modules/strtoumax (Makefile.am): Likewise.
52258         * modules/strverscmp (Makefile.am): Likewise.
52259         * modules/time_r (Makefile.am): Likewise.
52260         * modules/timegm (Makefile.am): Likewise.
52261         * modules/tmpfile-safer (Makefile.am): Likewise.
52262         * modules/unistd-safer (Makefile.am): Likewise.
52263         * modules/unlinkdir (Makefile.am): Likewise.
52264         * modules/userspec (Makefile.am): Likewise.
52265         * modules/utime (Makefile.am): Likewise.
52266         * modules/utimecmp (Makefile.am): Likewise.
52267         * modules/utimens (Makefile.am): Likewise.
52268         * modules/vasnprintf (Makefile.am): Likewise.
52269         * modules/vasprintf (Makefile.am): Likewise.
52270         * modules/vsnprintf (Makefile.am): Likewise.
52271         * modules/xalloc (Makefile.am): Likewise.
52272         * modules/xgetcwd (Makefile.am): Likewise.
52273         * modules/xnanosleep (Makefile.am): Likewise.
52274         * modules/xreadlink (Makefile.am): Likewise.
52275         * modules/xstrtod (Makefile.am): Likewise.
52276         * modules/xstrtol (Makefile.am): Likewise.
52277         * modules/xstrtold (Makefile.am): Likewise.
52278         * modules/yesno (Makefile.am): Likewise.
52279
52280 2006-10-12  Jim Meyering  <jim@meyering.net>
52281
52282         * m4/getloadavg.m4: Revert the change below.
52283
52284         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52285         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52286         fail with a symlink, which is what coreutils' ./bootstrap now
52287         creates by default.
52288
52289 2006-10-12  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52292         mingw.
52293         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52294         MSVC and mingw explicitly.
52295
52296 2006-10-11  Simon Josefsson  <jas@extundo.com>
52297             Bruno Haible  <bruno@clisp.org>
52298
52299         Add support for multiple gnulib-tool invocations in the scope of a
52300         single configure.ac file.
52301         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52302         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52303         with the same contents as the _LIBADD variable.
52304         (func_emit_initmacro_start, func_emit_initmacro_end,
52305         func_emit_initmacro_done): New functions.
52306         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52307         gl_LIBOBJS and gl_LTLIBOBJS.
52308
52309 2006-10-11  Bruno Haible  <bruno@clisp.org>
52310
52311         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52312         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52313         autoreconf. Instead, invoke autopoint explicitly but move back the
52314         *.m4 files from gnulib.
52315
52316 2006-10-11  Bruno Haible  <bruno@clisp.org>
52317
52318         * gnulib-tool (func_usage): Make module names after --create-testdir
52319         optional.
52320         (func_create_testdir): If no module was specified, use nearly all
52321         modules.
52322
52323 2006-10-12  Jim Meyering  <jim@meyering.net>
52324
52325         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52326         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52327         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52328         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52329         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52330         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52331         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52332         (fts_set_stat_required): New function.
52333         (fts_open): Defer the calls to fts_stat, if possible or requested.
52334         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52335         into fts_stat itself.
52336         (fts_read): Perform any required (deferred) fts_stat call.
52337         (fts_build): Likewise, for the directory we're about to open and read.
52338         In the readdir loop, carefully decide whether each entry will require
52339         an eventual call to fts_stat, using dirent.d_type info if available.
52340         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52341         a command line argument into this function.  Update all callers.
52342         Map a return value of FTS_DOT to FTS_D for a command line argument.
52343         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52344         Thanks to Miklos Szeredi for his tenacity and for the initial
52345         bug report about "find" failing on a FUSE-based file system.
52346
52347         * lib/fts.c (fts_open): Use consistent indentation.
52348
52349 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52350
52351         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52352         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52353         reported by Jim Meyering.  All uses of cache variables renamed
52354         to match Autoconf's.
52355         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52356         the other one.
52357
52358         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52359         Fix misspelling in diagnostic.
52360
52361 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52362
52363         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52364         defined.  Problem reported by Matthew Woehlke.
52365
52366         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52367         Add support for Tandem NonStop R series.
52368         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52369         Use new macro.
52370
52371         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52372         (has_trailing_slash): Omit size arg; all callers changed.
52373         Omit 'inline', since it doesn't help performance and we'd
52374         need to configure it.
52375         Don't count //, ///, etc. as having a trailing slash.
52376         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52377         (rpl_rename_dest_slash): On failure, use rename's errno rather
52378         than (in some cases) an incorrect or junk errno.
52379         Simplify code by removing need to compute length; this does
52380         cause it to make two passes instead of one over the file name,
52381         but it's worth it.
52382
52383         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52384         change, since Autoconf's version may no longer be appropriate now
52385         that we are using CVS Autoconf's version.  Add support for Tandem.
52386
52387 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52388             Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52391         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52392         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52393         gl_AC_TYPE_LONG_LONG.
52394
52395         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52396         instead of HAVE_LONG_LONG.
52397         * lib/printf-args.c (printf_fetchargs): Likewise.
52398         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52399         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52400         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52401         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52402         gl_AC_TYPE_LONG_LONG.
52403
52404 2006-10-11  Bruno Haible  <bruno@clisp.org>
52405
52406         * m4/longlong.m4: Add comments.
52407         * m4/ulonglong.m4: Likewise.
52408
52409 2006-10-10  Bruno Haible  <bruno@clisp.org>
52410
52411         Make it possible to #define stpcpy, strdup to aliases.
52412         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52413         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52414
52415 2006-10-10  Bruno Haible  <bruno@clisp.org>
52416
52417         Make it possible to #define gcd to an alias.
52418         * lib/gcd.c: Include config.h.
52419
52420 2006-10-10  Bruno Haible  <bruno@clisp.org>
52421
52422         Make it possible to #define c_isascii to an alias.
52423         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52424         defined. Undefine the macros before defining them, to avoid gcc
52425         warnings.
52426         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52427         define NO_C_CTYPE_MACROS early.
52428
52429 2006-10-10  Bruno Haible  <bruno@clisp.org>
52430
52431         Make it possible to #define set_program_name to an alias.
52432         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52433         ENABLE_RELOCATABLE early.
52434
52435 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52436
52437         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52438         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52439         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52440         More generally, don't assume that 64-bit signed int is available
52441         if unsigned int is, and vice versa.
52442         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52443         unsigned symbols, not on their signed counterparts.
52444         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52445         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52446         (UINT64_C, UINTMAX_C):
52447         Likewise.
52448         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52449         unsigned counterparts.
52450         (Have_long_long, Unsigned): New macros.
52451         (Int): Renamed from INT.
52452         (strtoimax): Use the new macros.
52453         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52454         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52455         * modules/inttypes (inttypes.h): Substitute
52456         HAVE_UNSIGNED_LONG_LONG_INT.
52457         * modules/stdint (stdint.h): Likewise.
52458         (Files): Add m4/ulonglong.m4.
52459
52460 2006-10-10  Bruno Haible  <bruno@clisp.org>
52461
52462         Fix a gcc -Wshadow warning.
52463         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52464         to 'bucket'.
52465         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52466         gl_linked_indexof_from_to): Likewise.
52467         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52468         Likewise.
52469         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52470         Likewise.
52471         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52472         Reported by Eric Blake.
52473
52474 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52477         for NetBSD.  Problem reported by Bruno Haible.
52478
52479 2006-10-09  Jim Meyering  <jim@meyering.net>
52480
52481         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52482         Patch from Bruno Haible.
52483
52484 2006-10-09  Jim Meyering  <jim@meyering.net>
52485
52486         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52487         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52488         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52489
52490 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         Don't include <config.h> twice; this doesn't work in some cases,
52493         e.g., when config.h has "#define intmax_t long long int" and
52494         we include <config.h>, <inttypes.h>, <config.h> in that order.
52495         Problem reported by Matthew Woehlke in:
52496         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52497         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52498         * lib/fts-cycle.c: Don't include config.h.
52499         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52500         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52501         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52502         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52503         inttypes.h.
52504         * lib/xstrtoumax.c: Likewise.
52505         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52506         __strtol and the like, so that this module is more like its siblings.
52507         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52508         Remove; no longer needed now that we assume gnulib inttypes.h.
52509
52510 2006-10-08  Bruno Haible  <bruno@clisp.org>
52511
52512         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52513         option.
52514
52515 2006-10-07  Jim Meyering  <jim@meyering.net>
52516
52517         * modules/inttypes (inttypes.h): Revert what seems to have been
52518         an inadvertent part of today's change: use "|", not "/" in the
52519         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52520
52521 2006-10-07  Bruno Haible  <bruno@clisp.org>
52522
52523         * modules/sublist: New file.
52524
52525 2006-10-07  Bruno Haible  <bruno@clisp.org>
52526
52527         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52528         * modules/argz (argz.h): Likewise.
52529         * modules/arpa_inet (arpa/inet.h): Likewise.
52530         * modules/byteswap (byteswap.h): Likewise.
52531         * modules/configmake (configmake.h): Likewise.
52532         * modules/fcntl (fcntl.h): Likewise.
52533         * modules/fnmatch (fnmatch.h): Likewise.
52534         * modules/getopt (getopt.h): Likewise.
52535         * modules/glob (glob.h): Likewise.
52536         * modules/inttypes (inttypes.h): Likewise.
52537         * modules/netinet_in (netinet/in.h): Likewise.
52538         * modules/poll (poll.h): Likewise.
52539         * modules/stdbool (stdbool.h): Likewise.
52540         * modules/stdint (stdint.h): Likewise.
52541         * modules/sys_select (sys/select.h): Likewise.
52542         * modules/sys_socket (sys/socket.h): Likewise.
52543         * modules/sys_stat (sys/stat.h): Likewise.
52544         * modules/sysexits (sysexits.h): Likewise.
52545         * modules/unistd (unistd.h): Likewise.
52546         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52547         Add a "DO NOT EDIT" comment to the generated file.
52548         (func_import): Likewise for gnulib-comp.m4.
52549
52550 2006-10-07  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/gl_sublist.h: New file.
52553         * lib/gl_sublist.c: New file.
52554
52555 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52558         name (relative to the original working directory) and the file
52559         name component (relative to the temporary working directory).  All
52560         callers changed.
52561         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52562         * lib/mkdir-p.c (make_dir_parents): Likewise.
52563         * lib/mkdir-p.h (make_dir_parents): Likewise.
52564
52565 2006-10-06  Eric Blake  <ebb9@byu.net>
52566
52567         Define several macros for use by the clean-temp module.
52568         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52569         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52570         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52571
52572         * lib/clean-temp.h (close_stream_temp): New declaration.
52573         * lib/clean-temp.c (includes): Pull in headers according to what
52574         other modules are in use.
52575         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52576
52577 2006-10-06  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52580         instead of fopen, fwriteerror.
52581
52582 2006-10-06  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52585         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52586         int.
52587         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52588         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52589         Return an error indicator.
52590         Suggested by Eric Blake.
52591
52592 2006-10-06  Bruno Haible  <bruno@clisp.org>
52593
52594         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52595         Reported by Eric Blake.
52596
52597 2006-10-06  Bruno Haible  <bruno@clisp.org>
52598
52599         * modules/closeout (Description): Mention stderr too.
52600
52601 2006-10-06  Bruno Haible  <bruno@clisp.org>
52602         and Paul Eggert  <eggert@cs.ucla.edu>
52603
52604         * lib/closeout.c (close_stdout): Also close stderr.
52605         * lib/closeout.h: Update comment.
52606
52607 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52608
52609         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52610         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52611         * lib/dirchownmod.c: Include lchown.h.
52612         * lib/lchown.c: Don't include files that lchown.h now includes.
52613         Don't declare chown, since lchown.h now does that.
52614         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52615         (lchown): Define to rpl_chown if lchown is declared but
52616         does not exist.  Declare using a prototype if lchown is not
52617         declared.  Add a copyright notice.
52618         * lib/mkstemp.h: Include <unistd.h>.
52619         * lib/openat.c: Include lchown.h.
52620
52621         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52622         we now test for that separately.
52623         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52624         rather than O_NOFOLLOW, when testing whether it's possible to
52625         avoid a race condition reliably.
52626         * lib/savewd.c (savewd_chdir): Likewise.
52627
52628         Remove macros that are no longer needed now that stdint.h is
52629         reliable.
52630         * lib/fsusage.c (UINTMAX_MAX): Remove.
52631         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52632         * lib/utimecmp.c (SIZE_MAX): Remove.
52633
52634         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52635
52636         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52637         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52638         O_NOATIME works.
52639
52640 2006-10-05  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/gl_list.h (gl_sortedlist_search_from_to,
52643         gl_sortedlist_indexof_from_to): New declarations.
52644         (gl_list_implementation): New fields sortedlist_search_from_to,
52645         sortedlist_indexof_from_to.
52646         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52647         inline functions.
52648         * lib/gl_list.c (gl_sortedlist_search_from_to,
52649         gl_sortedlist_indexof_from_to): New functions.
52650         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52651         function.
52652         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52653         (gl_array_sortedlist_search_from_to): New function.
52654         (gl_array_list_implementation): Update.
52655         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52656         function.
52657         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52658         (gl_carray_sortedlist_search_from_to): New function.
52659         (gl_carray_list_implementation): Update.
52660         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52661         gl_linked_sortedlist_indexof_from_to): New functions.
52662         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52663         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52664         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52665         gl_tree_sortedlist_indexof_from_to): New functions.
52666         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52667         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52668         Update.
52669         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52670         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52671         Update.
52672
52673 2006-10-05  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52676         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52677         (struct gl_list_implementation): Add fields search_from_to,
52678         indexof_from_to. Remove fields search, indexof.
52679         (gl_list_search): Use the search_from_to method.
52680         (gl_list_search_from, gl_list_search_from_to): New functions.
52681         (gl_list_indexof): Use the indexof_from_to method.
52682         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52683         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52684         (gl_list_search_from, gl_list_search_from_to): New functions.
52685         (gl_list_indexof): Use the indexof_from_to method.
52686         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52687         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52688         gl_array_indexof. Add start_index, end_index arguments.
52689         (gl_array_search_from_to): Renamed from gl_array_search. Add
52690         start_index, end_index arguments.
52691         (gl_array_remove, gl_array_list_implementation): Update.
52692         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52693         gl_carray_indexof. Add start_index, end_index arguments.
52694         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52695         start_index, end_index arguments.
52696         (gl_carray_remove, gl_carray_list_implementation): Update.
52697         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52698         gl_linked_search. Add start_index, end_index arguments.
52699         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52700         start_index, end_index arguments.
52701         (gl_linked_remove): Update.
52702         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52703         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52704         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52705         field to 'size_t'.
52706         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52707         gl_tree_search. Add start_index, end_index arguments.
52708         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52709         start_index, end_index arguments.
52710         (gl_tree_remove): Update.
52711         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52712         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52713         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52714         function.
52715         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52716         gl_tree_search. Add start_index, end_index arguments.
52717         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52718         start_index, end_index arguments.
52719         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52720         Update.
52721         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52722
52723 2006-10-05  Bruno Haible  <bruno@clisp.org>
52724
52725         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52726
52727         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52728         fwriteerror_temp): New declarations.
52729         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52730         (descriptors): New variable.
52731         (cleanup): First, close the descriptors.
52732         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52733         fclose_temp, fwriteerror_temp): New functions.
52734
52735 2006-10-04  Jim Meyering  <jim@meyering.net>
52736
52737         * lib/fts.c (fts_open): Tiny comment change.
52738
52739 2006-10-04  Bruno Haible  <bruno@clisp.org>
52740
52741         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52742         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52743         gl_LOCK_BODY.
52744         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52745         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52746         gl_LOCK_EARLY_BODY.
52747         (gl_LOCK): Require gl_LOCK_BODY.
52748
52749 2006-10-04  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52752         (gl_oset_search_atleast): New declaration.
52753         (struct gl_oset_implementation): Add field 'search_atleast'.
52754         (gl_oset_search_atleast): New inline function.
52755         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52756         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52757         (gl_array_oset_implementation): Update.
52758         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52759         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52760         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52761
52762 2006-10-04  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52765
52766 2006-10-03  Bruno Haible  <bruno@clisp.org>
52767
52768         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52769         from gl_avltreehash_list_implementation.
52770
52771 2006-10-03  Bruno Haible  <bruno@clisp.org>
52772
52773         * lib/gl_oset.c (gl_oset_add): Fix return type.
52774
52775 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52776
52777         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52778
52779 2006-10-02  Eric Blake  <ebb9@byu.net>
52780
52781         * modules/strnlen (Depends-on): Add extensions.
52782
52783 2006-10-02  Eric Blake  <ebb9@byu.net>
52784
52785         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52786         definition in 2.60+.
52787
52788 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52789
52790         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52791         checks.
52792
52793 2006-10-02  Bruno Haible  <bruno@clisp.org>
52794
52795         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52796         to the AUTOMAKE_OPTIONS.
52797         Reported by Jim Meyering.
52798
52799 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         Work around bug in Solaris 10 /proc file system:
52802         /proc/self/fd/NNN/.. isn't the parent directory of
52803         the directory whose file descriptor is NNN.  This needs to
52804         be worked around at run time, not compile time, since a
52805         program might be built on Solaris 8, where things work, and
52806         run on Solaris 10.
52807         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52808         to use the following interface instead:
52809         (OPENAT_BUFFER_SIZE): New macro.
52810         (openat_proc_name): New function.
52811         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52812         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52813         Likewise.
52814         * lib/openat-proc.c: New file.
52815         * modules/openat (Files): Add lib/openat-proc.c.
52816         (Depends-on): Add same-inode, stdbool.
52817         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52818
52819 2006-09-29  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52822         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52823         argument. Set stdout_closed before testing for ferror, not after.
52824         (fwriteerror, fwriteerror_no_ebadf): New functions.
52825
52826 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52827
52828         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52829
52830 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52831
52832         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52833         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52834
52835 2006-09-28  Jim Meyering  <jim@meyering.net>
52836
52837         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52838         Include <unistd.h>.
52839
52840 2006-09-28  Bruno Haible  <bruno@clisp.org>
52841
52842         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52843         * modules/linkedhash-list (Depends-on): Likewise.
52844         * modules/rbtreehash-list (Depends-on): Likewise.
52845
52846 2006-09-28  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/strndup.h: Simplify the redefinition of strndup.
52849         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52850         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52851
52852 2006-09-28  Bruno Haible  <bruno@clisp.org>
52853
52854         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52855         * lib/gl_linkedhash_list.c: Likewise.
52856         * lib/gl_rbtreehash_list.c: Likewise.
52857
52858 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52861         getaddrinfo.
52862
52863         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52864         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52865         it causes <stdio_ext.h> to cause a compile-time error.
52866         Problem reported by Nelson H. F. Beebe.
52867         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52868         of HAVE_DECL___PENDING.
52869
52870         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52871         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52872         declaration.
52873
52874 2006-09-27  Jim Meyering  <jim@meyering.net>
52875
52876         This file could end up with a definition for a function
52877         named __strndup, rather than rpl_strndup on a system with
52878         incomplete weak_alias support.
52879         * lib/strndup.c (strndup): Rename from __strndup.
52880         Remove #defines that used to map __strndup to strndup.
52881         Don't use K&R prototypes.
52882         Remove LIBC-related code, since this file is not sync'd with glibc.
52883         * lib/strndup.h: Revamp, accordingly.
52884         * m4/strndup.m4: Modernize.
52885
52886 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52887
52888         * modules/savewd (Depends-on): Add 'raise'.
52889         * lib/savewd.c: Include <signal.h>, for 'raise'.
52890
52891 2006-09-26  Jim Meyering  <jim@meyering.net>
52892
52893         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52894         when we detect Darwin 8.7.0's acl_get_file bug.
52895         Rearrange to perform the new (below) run-test while $LIBS
52896         contains any acl-related library.  Set USE_ACL at the end.
52897         (gl_ACL_GET_FILE): New function.
52898
52899 2006-09-26  Eric Blake  <ebb9@byu.net>
52900
52901         * lib/verror.c: Include <config.h> unconditionally.
52902
52903 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52904
52905         * modules/clock-time (Maintainer): Add self.
52906         * modules/getlogin_r (Depends-on): Add extensions.
52907
52908 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52909
52910         * modules/clock-time: New module.
52911         * modules/nanosleep (Depends-on): Add clock-time.
52912         * modules/gethrxtime (Depends-on): Likewise.
52913         * modules/gettime (Depends-on): Likewise.
52914         * modules/settime (Depends-on): Likewise.
52915
52916         * modules/fts-lgpl: Depend on openat.
52917         * modules/mkancesdirs: Depend on savewd.
52918         * modules/mkdir-p: Likewise.
52919
52920 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52921
52922         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52923
52924         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52925         `gl_have_arbitrary_file_name_length_limit' to
52926         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52927         actually works between configure runs.
52928
52929 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52930             Bruno Haible  <bruno@clisp.org>
52931
52932         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52933
52934 2006-09-25  Jim Meyering  <jim@meyering.net>
52935
52936         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52937         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52938
52939 2006-09-25  Eric Blake  <ebb9@byu.net>
52940
52941         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52942         exec's in 2006-09-18 patch when shuffling fds.
52943
52944 2006-09-25  Bruno Haible  <bruno@clisp.org>
52945
52946         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52947         Reported by Jim Meyering.
52948
52949 2006-09-24  Jim Meyering  <jim@meyering.net>
52950
52951         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52952         compare a pointer against a literal "0".  That caused failures with
52953         at least HP-UX's hpcc.
52954
52955 2006-09-22  Simon Josefsson  <jas@extundo.com>
52956
52957         * modules/gc-sha1:
52958         * modules/gc-md4:
52959         * modules/gc-hmac-sha1:
52960         * modules/gc-hmac-md5:
52961         * modules/gc-des:
52962         * modules/gc-arcfour: Distribute more files.
52963
52964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52965
52966         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52967         (gl_linked_iterator_from_to): Initialize struct completely.
52968         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52969         (gl_tree_iterator_from_to): Likewise
52970         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52971         * lib/gl_array_list.c [lint] (gl_array_iterator)
52972         (gl_array_iterator_from_to): Likewise.
52973         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52974         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52975         (gl_carray_iterator_from_to): Likewise.
52976
52977         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52978         * lib/md4.c (md4_process_block): Remove unused variable.
52979         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52980         parentheses for clarity.
52981
52982 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52983
52984         * modules/bison-i18n (Depends-on): Add gettext.
52985
52986 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52987
52988         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52989         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52990         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52991         also add missing comma that caused broken test.
52992         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52993         stdlib.h, for `abort'.
52994         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52995         variables.
52996         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52997         include unistd.h if present, for `rmdir'.
52998         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52999         variables.
53000         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
53001         in the process include standard headers for prototypes.
53002         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
53003         gets declared on GNU/Linux.
53004         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
53005         unistd.h, for `rmdir'.
53006         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
53007
53008         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
53009         always true.
53010         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
53011
53012         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
53013
53014 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53015
53016         * gnulib-tool (func_version): Create output all at once.  This
53017         may help avoid triggering unnecessary SIGPIPEs, and at any
53018         rate it doesn't hurt.
53019
53020 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53021             Bruno Haible  <bruno@clisp.org>
53022
53023         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53024         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53025         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53026
53027         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
53028         (gl_FUNC_VASPRINTF): Invoke it.
53029
53030 2006-09-22  Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
53033         getloadavg.c as first argument.
53034
53035 2006-09-22  Bruno Haible  <bruno@clisp.org>
53036
53037         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
53038         at the beginning of the gl_INIT macro.
53039         * modules/getloadavg (configure.ac): Pass $gl_source_base to
53040         gl_GETLOADAVG.
53041
53042 2006-09-22  Bruno Haible  <bruno@clisp.org>
53043
53044         * gnulib-tool (func_create_megatestdir): Don't include the config-h
53045         module.
53046         Suggested by Ralf Wildenhues.
53047
53048 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         Import this patch from libc:
53051
53052         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
53053
53054         * lib/regex_internal.c (re_string_reconstruct): Handle
53055         offset < pstr->valid_raw_len && pstr->offsets_needed case.
53056         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
53057         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
53058         re_string_context_at.
53059
53060         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
53061         now requires it.
53062         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
53063         gl_REGEX now does it for us.
53064         (gl_REGEX): Add test taken from
53065         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
53066
53067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
53068         Check that large offsets work.  Modernize Autoconf usages.
53069         Prefer "yes" to mean a good thing rather than a bad.
53070         Don't put "#define mkstemp" in config.h, as this might interfere
53071         with standard system headers that "#define mkstemp mkstemp64".
53072
53073         * modules/mkstemp (Depends-on): Add extensions, so that
53074         mkstemp is visible on some platforms.
53075         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53076         (Include): Change to "mkstemp.h" from <stdlib.h>.
53077         (Files): Add mkstemp.h.
53078
53079         * lib/mkstemp.h: New file, since some standard headers
53080         #define mkstemp.
53081         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53082         Include "mkstemp.h".
53083         Make the _LIBC code resemble glibc original more,
53084         e.g., use K&R style.
53085         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53086         (mkstemp): Remove, since mkstemp.h does this for us.
53087         * lib/stdlib--.h: Include mkstemp.h.
53088
53089         Import this patch from libc:
53090
53091         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53092
53093         * lib/tempname.c (__gen_tempname): Change attempts_min
53094         into a macro.  Use preprocessor to decide how to initialize
53095         attempts [Coverity CID 67].
53096
53097 2006-09-20  Bruno Haible  <bruno@clisp.org>
53098
53099         * lib/mkdtemp.c: Import from libc.
53100         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53101                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53102                 attempts_min into a macro.  Use preprocessor to decide how to
53103                 initialize attempts [Coverity CID 67].
53104         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53105                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53106                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53107
53108 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53109
53110         * gnulib-tool (func_exit): New function, to allow to pass the
53111         exit status portably through the trap.  Use everywhere.
53112         (--help, --version): Signal a write error.
53113         (trap): catch SIGPIPE, for write errors.
53114         Exit at the end of the trap, with the correct exit status.
53115
53116 2006-09-19  Karl Berry  <karl@gnu.org>
53117
53118         * doc/gnulib.texi: note about the license texinfo files.
53119
53120 2006-09-19  Eric Blake  <ebb9@byu.net>
53121
53122         * gnulib-tool: Avoid space-tab.
53123
53124 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53125
53126         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53127         that prevented coreutils 6.1 from building.  Problem reported
53128         by Petter Reinholdtsen.
53129
53130 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * gnulib-tool (avoidlist): Fix typo that broke options like
53133         --avoid=lock that are used by coreutils bootstrap.
53134
53135 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
53136
53137         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
53138         more systematically.
53139
53140 2006-09-18  Jim Meyering  <jim@meyering.net>
53141
53142         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
53143
53144 2006-09-18  Bruno Haible  <bruno@clisp.org>
53145
53146         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
53147
53148 2006-09-18  Bruno Haible  <bruno@clisp.org>
53149
53150         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
53151         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
53152         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
53153         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
53154         * m4/gettext.m4: Require autoconf >= 2.52.
53155         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
53156         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
53157         of gl_cv_header_inttypes_h.
53158
53159 2006-09-18  Bruno Haible  <bruno@clisp.org>
53160
53161         * lib/javaversion.c: Include configmake.h.
53162
53163 2006-09-18  Bruno Haible  <bruno@clisp.org>
53164
53165         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
53166         avoid that the while loops be executed in a subshell.
53167
53168 2006-09-18  Bruno Haible  <bruno@clisp.org>
53169
53170         * MODULES.html.sh (func_module): Break long lines.
53171         Suggested by Bruce Korb <bkorb@gnu.org>.
53172
53173 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53174
53175         Speed up by a factor of 1.12.
53176         * gnulib-tool (nl): New variable.
53177         (func_import): Rewrite include directive extraction to only read each
53178         directive once.
53179
53180 2006-09-17  Bruno Haible  <bruno@clisp.org>
53181
53182         * modules/javaversion (Makefile.am): Remove DEFS setting.
53183         (Depends-on): Add configmake, for PKGDATADIR definition.
53184
53185 2006-09-17  Bruno Haible  <bruno@clisp.org>
53186
53187         * gnulib-tool (func_create_testdir): Rewrite all files at once.
53188
53189 2006-09-17  Bruno Haible  <bruno@clisp.org>
53190
53191         * gnulib-tool (func_append): New function, stolen from libtool.m4.
53192         (func_modules_transitive_closure, func_modules_add_dummy,
53193         func_modules_to_filelist, func_import, func_create_testdir,
53194         func_create_megatestdir, ...): Use it wherever possible.
53195         Suggested by Ralf Wildenhues.
53196
53197 2006-09-16  Karl Berry  <karl@gnu.org>
53198
53199         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
53200         to avoid sectioning errors.
53201         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
53202         [ifinfo]: blank line after @center-ed titles.
53203         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
53204         Spell FSF address consistently with others.
53205         (These changes approved by rms.)
53206
53207 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53208
53209         Speed up by a factor of 1.61.
53210         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
53211         already checked module names again.
53212
53213 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53214
53215         Speed up by a factor of 1.13.
53216         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
53217         for new_files, and the input to func_add_or_update.
53218
53219 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53220
53221         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
53222         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
53223
53224 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * modules/mkancesdirs (Depends-on): Add fcntl.
53227         * modules/savewd: New file.
53228         * MODULES.html.sh (File system functions): Add savewd.
53229
53230         * modules/configmake (Makefile.am): Add support for the
53231         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
53232
53233 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * m4/savewd.m4: New file.
53236
53237 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
53240         (dirchownmod): New arg FD.  All callers changed.
53241         Use FD rather than opening the directory ourself, as opening is
53242         now the caller's responsibility.
53243         * lib/dirchownmod.h: Likewise.
53244         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
53245         hosts that require <sys/types.h> before <sys/stat.h>.  Include
53246         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
53247         (test_dir): Remove.
53248         (mkancesdirs): Return length of prefix of FILE that has already
53249         been made, or -2 if there is a child doing the work.  Redo
53250         algorithm so that it is O(N) rather than O(N**2).  Optimize away
53251         ".", and treat ".." specially since it might stray back into
53252         already-created areas.  Use a subprocess if necessary.  New arg
53253         WD; all users changed.  MAKE_DIR function should now return 1
53254         if it creates a directory that is not readable.  Return -2 if
53255         a child process is spun off.
53256         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53257         Adjust signature to match code.
53258         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53259         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53260         all users changed.
53261         * lib/savewd.c, lib/savewd.h: New files.
53262
53263 2006-09-15  Jim Meyering  <jim@meyering.net>
53264
53265         * modules/rename-dest-slash: New module.
53266         * MODULES.html.sh (posix_compat): Add it here.
53267
53268         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53269
53270 2006-09-15  Jim Meyering  <jim@meyering.net>
53271
53272         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53273         file.
53274
53275         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53276
53277 2006-09-15  Jim Meyering  <jim@meyering.net>
53278
53279         * lib/rename-dest-slash.c (has_trailing_slash): Use
53280         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53281         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53282         test before testing whether SRC is a directory.
53283         Suggestions from Bruno Haible.
53284
53285         Avoid a warning about an unused variable.
53286         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53287         into the #ifdef block where it's used.
53288
53289         * lib/rename-dest-slash.c: New file.
53290
53291 2006-09-14  Bruno Haible  <bruno@clisp.org>
53292
53293         * lib/allocsa.c: Include <config.h> unconditionally.
53294         * lib/asnprintf.c: Likewise.
53295         * lib/asprintf.c: Likewise.
53296         * lib/c-strcasecmp.c: Likewise.
53297         * lib/c-strcasestr.c: Likewise.
53298         * lib/c-strncasecmp.c: Likewise.
53299         * lib/c-strstr.c: Likewise.
53300         * lib/classpath.c: Likewise.
53301         * lib/clean-temp.c: Likewise.
53302         * lib/concatpath.c: Likewise.
53303         * lib/copy-file.c: Likewise.
53304         * lib/csharpcomp.c: Likewise.
53305         * lib/csharpexec.c: Likewise.
53306         * lib/execute.c: Likewise.
53307         * lib/fatal-signal.c: Likewise.
53308         * lib/findprog.c: Likewise.
53309         * lib/fwriteerror.c: Likewise.
53310         * lib/gl_array_list.c: Likewise.
53311         * lib/gl_array_oset.c: Likewise.
53312         * lib/gl_avltree_list.c: Likewise.
53313         * lib/gl_avltree_oset.c: Likewise.
53314         * lib/gl_avltreehash_list.c: Likewise.
53315         * lib/gl_carray_list.c: Likewise.
53316         * lib/gl_linked_list.c: Likewise.
53317         * lib/gl_linkedhash_list.c: Likewise.
53318         * lib/gl_list.c: Likewise.
53319         * lib/gl_oset.c: Likewise.
53320         * lib/gl_rbtree_list.c: Likewise.
53321         * lib/gl_rbtree_oset.c: Likewise.
53322         * lib/gl_rbtreehash_list.c: Likewise.
53323         * lib/imaxabs.c: Likewise.
53324         * lib/imaxdiv.c: Likewise.
53325         * lib/javacomp.c: Likewise.
53326         * lib/javaexec.c: Likewise.
53327         * lib/javaversion.c: Likewise.
53328         * lib/linebreak.c: Likewise.
53329         * lib/localcharset.c: Likewise.
53330         * lib/lock.c: Likewise.
53331         * lib/mbchar.c: Likewise.
53332         * lib/mbswidth.c: Likewise.
53333         * lib/mkdtemp.c: Likewise.
53334         * lib/pipe.c: Likewise.
53335         * lib/printf-args.c: Likewise.
53336         * lib/printf-parse.c: Likewise.
53337         * lib/progname.c: Likewise.
53338         * lib/progreloc.c: Likewise.
53339         * lib/readlink.c: Likewise.
53340         * lib/sh-quote.c: Likewise.
53341         * lib/stpcpy.c: Likewise.
53342         * lib/stpncpy.c: Likewise.
53343         * lib/strcasecmp.c: Likewise.
53344         * lib/strcasestr.c: Likewise.
53345         * lib/strcspn.c: Likewise.
53346         * lib/striconv.c: Likewise.
53347         * lib/strncasecmp.c: Likewise.
53348         * lib/strnlen1.c: Likewise.
53349         * lib/strstr.c: Likewise.
53350         * lib/strtok_r.c: Likewise.
53351         * lib/tls.c: Likewise.
53352         * lib/tmpdir.c: Likewise.
53353         * lib/unicodeio.c: Likewise.
53354         * lib/unsetenv.c: Likewise.
53355         * lib/vasnprintf.c: Likewise.
53356         * lib/vasprintf.c: Likewise.
53357         * lib/wait-process.c: Likewise.
53358         * lib/xallocsa.c: Likewise.
53359         * lib/xsetenv.c: Likewise.
53360         * lib/xstriconv.c: Likewise.
53361
53362 2006-09-13  Simon Josefsson  <jas@extundo.com>
53363
53364         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53365         that internally, suggested by Ralf Wildenhues
53366         <Ralf.Wildenhues@gmx.de>.
53367
53368 2006-09-13  Simon Josefsson  <jas@extundo.com>
53369
53370         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53371         @LIBOBJS@.
53372         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53373
53374 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53377         longer worry about uses that don't define HAVE_CONFIG_H.
53378         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53379         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53380         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53381         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53382         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53383         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53384         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53385         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53386         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53387         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53388         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53389         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53390         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53391         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53392         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53393         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53394         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53395         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53396         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53397         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53398         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53399         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53400         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53401         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53402         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53403         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53404         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53405         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53406         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53407         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53408         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53409         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53410         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53411         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53412         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53413         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53414         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53415         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53416         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53417         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53418         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53419         Likewise.
53420
53421 2006-09-13  Eric Blake  <ebb9@byu.net>
53422
53423         * lib/getopt.c: Fix typo in last commit.
53424
53425 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53426
53427         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53428         dgettext.
53429
53430 2006-09-12  Jim Meyering  <jim@meyering.net>
53431
53432         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53433         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53434         Reported by Nelson H. F. Beebe.
53435
53436 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53437
53438         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53439         program_invocation_name and program_invocation_short_name are
53440         initialized.
53441         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53442         and program_invocation_short_name to argp.h, so they are visible
53443         to user programs.
53444         * lib/argp.h: Likewise
53445
53446 2006-09-10  Bruno Haible  <bruno@clisp.org>
53447
53448         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53449         m4/inttypes_h.m4, m4/uintmax_t.m4.
53450
53451 2006-09-10  Bruno Haible  <bruno@clisp.org>
53452
53453         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53454         gl_AC_TYPE_UINTMAX_T.
53455
53456 2006-09-10  Bruno Haible  <bruno@clisp.org>
53457
53458         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53459
53460 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53461
53462         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53463         convention.  Text proposed by Bruno Haible.
53464         (struct argp_option): Document the use of N_() wrappers.
53465
53466         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53467         '\v', and translate the two parts separately, instead of feeding
53468         the whole string to gettext.  This allows to exclude
53469         '\v' from the strings visible to the translator by writing doc
53470         strings as N_("..") "\v" N_("..").
53471
53472 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * config/srclist.txt: Undo latest change; the bug was fixed.
53475
53476 2006-09-09  Bruno Haible  <bruno@clisp.org>
53477
53478         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53479         assignments if building a library without libtool.
53480         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53481         in func_emit_lib_Makefile_am.
53482         (func_import): When building a static library libfoo.a, arrange to
53483         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53484         (func_create_testdir): Likewise.
53485         * modules/gc (configure.ac, Makefile.am): If building statically,
53486         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53487         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53488         * modules/striconv (configure.ac, Makefile.am): Likewise.
53489         Based on a suggestion by Ralf Wildenhues.
53490
53491 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53492
53493         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53494         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53495         Also:
53496
53497         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53498         Add year_2050_test to catch glibc bug 2821
53499         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53500
53501         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53502         Prefer #ifdef to #if.
53503
53504         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53505         Return from 'main' instead of calling 'exit'.
53506
53507 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53510         returned the maximum time_t value rather than (time_t) -1.
53511         Problem originally reported by William Bardwell
53512         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53513
53514         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53515         Moved to here ...
53516         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53517         ... from here.
53518
53519 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53520
53521         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53522         2821 is fixed.
53523
53524 2006-09-08  Jim Meyering  <jim@meyering.net>
53525
53526         Don't make generated files read-only.  That would bother too many
53527         people.  However, do retain the ability to work when targets are
53528         read-only: remove the destination and temporary files before writing
53529         them (when generated via sed or echo), or by using the -f option for
53530         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53531         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53532         * modules/byteswap, modules/configmake, modules/fcntl:
53533         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53534         * modules/localcharset, modules/netinet_in, modules/poll:
53535         * modules/stdbool, modules/stdint, modules/sys_select:
53536         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53537
53538 2006-09-08  Jim Meyering  <jim@meyering.net>
53539
53540         Avoid new build failure on FreeBSD 6.0.
53541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53542         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53543         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53544
53545 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53546
53547         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53548
53549 2006-09-07  Jim Meyering  <jim@meyering.net>
53550
53551         Fix global typo in last change: use chmod u-w, not chmod u-x.
53552         Spotted by Paul Eggert and Bruce Korb.
53553         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53554         * modules/byteswap, modules/configmake, modules/fcntl:
53555         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53556         * modules/localcharset, modules/netinet_in, modules/poll:
53557         * modules/stdbool, modules/stdint, modules/sys_select:
53558         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53559
53560 2006-09-06  Jim Meyering  <jim@meyering.net>
53561
53562         Make generated files be read-only.
53563         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53564         Ensure that each generated file is now read-only.
53565         * modules/argz: Likewise.
53566         * modules/arpa_inet: Likewise.
53567         * modules/byteswap: Likewise.
53568         * modules/configmake: Likewise.
53569         * modules/fcntl: Likewise.
53570         * modules/fnmatch: Likewise.
53571         * modules/getopt: Likewise.
53572         * modules/glob: Likewise.
53573         * modules/inttypes: Likewise.
53574         * modules/netinet_in: Likewise.
53575         * modules/poll: Likewise.
53576         * modules/stdbool: Likewise.
53577         * modules/stdint: Likewise.
53578         * modules/sys_select: Likewise.
53579         * modules/sys_socket: Likewise.
53580         * modules/sys_stat: Likewise.
53581         * modules/sysexits: Likewise.
53582         * modules/localcharset: Same as above, but continue using temporary
53583         file named "t-$@" (why different?) rather than the "$@-t" used
53584         everywhere else.
53585
53586         * modules/sysexits (Makefile.am): Replace literal occurrences
53587         of "sysexit.h" more readable, and more consistent, "$@".
53588
53589 2006-09-06  Bruno Haible  <bruno@clisp.org>
53590
53591         * modules/striconv: New file.
53592         * modules/xstriconv: New file.
53593         * MODULES.html.sh (Internationalization functions): Add striconv,
53594         xstriconv.
53595
53596 2006-09-06  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53599         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53600         not using libtool correctly.
53601
53602 2006-09-06  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/striconv.h: New file.
53605         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53606         iconvstring.c.
53607         * lib/xstriconv.h: New file.
53608         * lib/xstriconv.c: New file.
53609
53610 2006-09-06  Bruno Haible  <bruno@clisp.org>
53611
53612         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53613         lib_..._LDFLAGS.
53614
53615 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53616
53617         * lib/argz_.h: Sync from Libtool.
53618
53619         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53620                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53621
53622         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53623
53624 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53625
53626         * modules/trim: New file.
53627
53628 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53629
53630         * lib/trim.h: New file.
53631         * lib/trim.c: New file.
53632
53633 2006-09-05  Bruno Haible  <bruno@clisp.org>
53634
53635         * MODULES.html.sh (String handling): Add trim.
53636
53637 2006-09-04  Karl Berry  <karl@gnu.org>
53638
53639         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53640         until next release.
53641
53642 2006-09-03  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53645         correctly.
53646
53647 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53648
53649         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53650         not gl_GETLOADAVG.  Omit unneeded semicolons.
53651         Problems reported by Ralf Wildenhues in
53652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53653         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53654         at the end, which is the usual gnulib style.
53655
53656         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53657         of doing all the work ourselves.
53658         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53659         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53660
53661 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53664         Problem reported by Ralf Wildenhues in
53665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53666
53667         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53668         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53669
53670 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53673         yesterday's patch by changing test -n to test -z.
53674
53675 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53678         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53679         the former is now obsolescent.
53680
53681         * modules/chdir-long (Depends-on): Add fcntl.
53682
53683 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53686         obsolescent, and programs should use gnulib instead.
53687         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53688         but with prefixes changed.
53689
53690 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53693         or stdbool.h, because they might not exist while configuring.
53694
53695         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53696         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53697         does that for us.
53698         (O_DIRECTORY): Remove.
53699
53700 2006-08-31  Eric Blake  <ebb9@byu.net>
53701
53702         * gnulib-tool: Don't let emacs change spaces to TAB.
53703
53704 2006-08-31  Bruno Haible  <bruno@clisp.org>
53705
53706         * gnulib-tool: When calling func_import more than once, do it in a
53707         subshell.
53708         Reported by Eric Blake <ebb9@byu.net>.
53709
53710 2006-08-31  Bruno Haible  <bruno@clisp.org>
53711
53712         * gnulib-tool (nl): Remove variable.
53713         (sed_transform_lib_file): Use more robust test for config-h module.
53714         (func_import): Fix typo in 2006-08-25 patch.
53715
53716 2006-08-31  Bruno Haible  <bruno@clisp.org>
53717
53718         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53719         specified, augment Makefile.am variables instead of assigning them.
53720
53721 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         Work around a bug in both the Linux and SunOS 64-bit kernels:
53724         nanosleep mishandles sleeps for longer than 2**31 seconds.
53725         Problem reported by Frank v Waveren in
53726         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53728         Check for nanosleep bug.
53729         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53730
53731 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53732
53733         Work around a bug in both the Linux and SunOS 64-bit kernels:
53734         nanosleep mishandles sleeps for longer than 2**31 seconds.
53735         Problem reported by Frank v Waveren in
53736         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53737         * lib/nanosleep.c (BILLION): New constant.
53738         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53739         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53740         implementation.
53741
53742 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         * modules/nanosleep (Depends-on): Add gettime.
53745
53746 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53747         and Simon Josefsson  <jas@extundo.com>
53748         and Oskar Liljeblad  <oskar@osk.mine.nu>
53749
53750         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53751         * gnulib-tool (func_import): New license type 'unmodifiable license
53752         text'.
53753         * modules/fdl: Use it.  Longer description.
53754         * module/gpl, module/lgpl: New files.
53755
53756 2006-08-30  Jim Meyering  <jim@meyering.net>
53757
53758         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53759         shadowing the parameter.
53760
53761 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53762
53763         Sync from Libtool:
53764
53765         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53766
53767         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53768         sharing with gnulib.  Report by Eric Blake.
53769
53770 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53771
53772         * modules/isapipe: New file.
53773         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53774
53775 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         * modules/configmake (Makefile.am): Add a comment, and omit
53778         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53779         by Bruno Haible.
53780
53781 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53782
53783         * m4/isapipe.m4: New file.
53784
53785 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * lib/isapipe.c, lib/isapipe.h: New files.
53788
53789 2006-08-29  Jim Meyering  <jim@meyering.net>
53790
53791         * modules/configmake (Makefile.am): Make configmake.h depend on
53792         Makefile.  Otherwise, a stale configmake.h could hang around.
53793
53794 2006-08-29  Eric Blake  <ebb9@byu.net>
53795
53796         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53797         resolution of upstream bug 3044.
53798
53799 2006-08-29  Bruno Haible  <bruno@clisp.org>
53800
53801         * modules/localcharset (Depends-on): Add configmake.
53802         (Makefile.am): Remove setting of LIBDIR through DEFS.
53803
53804 2006-08-29  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53807         defined.
53808
53809 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53810
53811         * modules/fcntl: New file.
53812         * modules/chdir-safer (Depends-on): Add fcntl.
53813         * modules/fts: Likewise.
53814         * modules/mkdir-p: Likewise.
53815
53816         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53817         This undoes the most recent change, since we're now addressing the
53818         problem in a different way.
53819
53820         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53821         into output, since the output might be called Makefile.am even
53822         if $makefile_name is something different.
53823         (func_import): Use $makefile_am rather than
53824         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53825         empty.
53826
53827         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53828
53829 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53830
53831         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53832         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53833         recent change to stdint.m4, since we're now addressing the problem in a
53834         different way.
53835
53836 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53837
53838         * m4/fcntl_h.m4: New file.
53839
53840 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53841
53842         * lib/fcntl_.h: New file.
53843         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53844         the fcntl module.
53845         * lib/dirchownmod.c: Likewise.
53846         * lib/fts.c: Likewise.
53847
53848         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53849         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53850         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53851         just before including <inttypes.h>, to avoid circular inclusion.
53852
53853 2006-08-28  Jim Meyering  <jim@meyering.net>
53854
53855         * doc/visibility.texi: Actually read and correct the grammar of the
53856         sentence affected by yesterday's change.
53857
53858 2006-08-28  Eric Blake  <ebb9@byu.net>
53859
53860         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53861         needs wrapper.
53862
53863 2006-08-28  Eric Blake  <ebb9@byu.net>
53864
53865         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53866
53867 2006-08-28  Eric Blake  <ebb9@byu.net>
53868
53869         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53870
53871 2006-08-28  Bruno Haible  <bruno@clisp.org>
53872
53873         * modules/c-strstr: New file, from GNU gettext.
53874         * MODULES.html.sh (String handling): Add c-strstr.
53875
53876 2006-08-28  Bruno Haible  <bruno@clisp.org>
53877
53878         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53879         macros.
53880         Reported by Eric Blake.
53881
53882 2006-08-28  Bruno Haible  <bruno@clisp.org>
53883
53884         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53885         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53886         * lib/vasprintf.c: Include errno.h, limits.h.
53887         (EOVERFLOW): New fallback definition.
53888         (vasprintf): Test here whether the string length is > INT_MAX.
53889         * lib/vsnprintf.c: Include errno.h, limits.h.
53890         (EOVERFLOW): New fallback definition.
53891         (vsnprintf): Fix bug when generated string was too long for the buffer.
53892         Test here whether the string length is > INT_MAX.
53893
53894 2006-08-28  Bruno Haible  <bruno@clisp.org>
53895
53896         * lib/inttypes_.h (SCNX*): Remove definitions.
53897         Reported by Eric Blake.
53898
53899 2006-08-28  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/c-strstr.h: New file, from GNU gettext.
53902         * lib/c-strstr.c: New file, from GNU gettext.
53903
53904 2006-08-28  Bruno Haible  <bruno@clisp.org>
53905
53906         * gnulib-tool: Reorder some statements.
53907
53908 2006-08-28  Bruno Haible  <bruno@clisp.org>
53909
53910         * gnulib-tool: New option --makefile-name.
53911         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53912         $makefile_name.
53913         (func_import): Write $makefile_name to the cache file, and read it from
53914         there unless explicitly specified. Use $makefile_name as file name
53915         instead of Makefile.am. Adjust the recommendations accordingly.
53916
53917 2006-08-28  Bruno Haible  <bruno@clisp.org>
53918
53919         * gnulib-tool (func_verify_module): Check against misapplying patch.
53920
53921 2006-08-28  Bruno Haible  <bruno@clisp.org>
53922
53923         * gnulib-tool (func_relativize, func_relconcat): New functions.
53924         Give an error if --local-dir is given with --update.
53925         Remove trailing slashes from $local_gnulib_dir.
53926         (func_import): Store the relativized $local_gnulib_dir in
53927         gnulib-cache.m4, and read it from there if not specified explicitly.
53928
53929 2006-08-28  Bruno Haible  <bruno@clisp.org>
53930
53931         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53932         is the current directory. Respect also $local_gnulib_dir.
53933
53934 2006-08-28  Bruno Haible  <bruno@clisp.org>
53935             Simon Josefsson  <jas@extundo.com>
53936
53937         BeOS portability.
53938         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53939
53940 2006-08-27  Jim Meyering  <jim@meyering.net>
53941
53942         * doc/visibility.texi: Remove duplicate word: "pointer".
53943
53944 2006-08-26  Bruno Haible  <bruno@clisp.org>
53945
53946         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53947         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53948         (Makefile.am): Create inttypes.h from inttypes_.h.
53949         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53950
53951         * modules/imaxabs: New file.
53952
53953         * modules/imaxdiv: New file.
53954
53955 2006-08-26  Bruno Haible  <bruno@clisp.org>
53956
53957         * m4/inttypes.m4: New file.
53958         * m4/_inttypes_h.m4: Remove file.
53959         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53960         PRI_MACROS_BROKEN.
53961         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53962
53963         * m4/imaxabs.m4: New file.
53964
53965         * m4/imaxdiv.m4: New file.
53966
53967 2006-08-26  Bruno Haible  <bruno@clisp.org>
53968
53969         * lib/inttypes_.h: New file.
53970         * lib/inttypes.h: Remove file.
53971         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53972
53973         * lib/imaxabs.c: New file.
53974
53975         * lib/imaxdiv.c: New file.
53976
53977 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         New config-h module, so that "make" output needn't be cluttered
53980         by -DHAVE_CONFIG_H.
53981         * MODULES.html.sh (Support for building libraries and executables):
53982         Add config-h.
53983         * modules/config-h: New file.
53984         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53985         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53986         the config-h module is used.
53987
53988         New configmake module, so that "make" output needn't be cluttered
53989         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53990         * MODULES.html.sh (Support for building libraries and executables):
53991         Add configmake.
53992         * modules/configmake: New file.
53993
53994 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * m4/config-h.m4: New file.
53997
53998 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         * config/srclist.txt: Add elisp-comp.
54001
54002 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         * MODULES.html.sh (Support for building libraries and executables):
54005         Add elisp-comp.
54006         * build-aux/elisp-comp: New file.
54007         * modules/elisp-comp: New file.
54008
54009 2006-08-24  Bruno Haible  <bruno@clisp.org>
54010
54011         * gnulib-tool (func_create_testdir): Use non-default values of
54012         sourcebase and m4base.
54013
54014 2006-08-24  Bruno Haible  <bruno@clisp.org>
54015
54016         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
54017         HTML structure.
54018
54019 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         * modules/openat (Depends-on): Add lchown.
54022
54023 2006-08-23  Bruno Haible  <bruno@clisp.org>
54024
54025         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54026         of gl_LOCK_EARLY instead of gl_LOCK.
54027
54028 2006-08-23  Bruno Haible  <bruno@clisp.org>
54029
54030         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
54031         on OSF/1 to no.
54032         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
54033
54034 2006-08-23  Bruno Haible  <bruno@clisp.org>
54035
54036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
54037         as unusable.
54038
54039         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
54040         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
54041         (gl_LOCK): New macro.
54042
54043 2006-08-22  Simon Josefsson  <jas@extundo.com>
54044
54045         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
54046         to md5 module.
54047
54048 2006-08-22  Simon Josefsson  <jas@extundo.com>
54049
54050         * MODULES.html.sh: Add "Support for maintaining and release
54051         projects".
54052
54053         * build-aux/gnupload: New file, from coreutils.
54054
54055 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         Avoid the need for AC_LIBSOURCES in m4 macros.
54058         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
54059         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
54060         * modules/check-version (EXTRA_DIST): Add check-version.h.
54061         * modules/crc (EXTRA_DIST): Add crc.h.
54062         * modules/des (EXTRA_DIST): Add des.h.
54063         * modules/gc (EXTRA_DIST): Add gc.h.
54064         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
54065         * modules/getline (EXTRA_DIST): Add getline.h.
54066         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
54067         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
54068         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
54069         * modules/md2 (EXTRA_DIST): Add md2.h.
54070         * modules/md4 (EXTRA_DIST): Add md4.h.
54071         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
54072         * modules/read-file (EXTRA_DIST): Add read-file.h.
54073         * modules/readline (EXTRA_DIST): Add readline.h.
54074         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54075         rijndael-api-fst.h.
54076
54077 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54078
54079         * m4/rijndael.m4 (gl_ARCFOUR):
54080         * m4/arctwo.m4 (gl_ARCTWO):
54081         * m4/check-version.m4 (gl_CHECK_VERSION):
54082         * m4/crc.m4 (gl_CRC):
54083         * m4/des.m4 (gl_DES):
54084         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54085         * m4/gc.m4 (gl_GC):
54086         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54087         * m4/getline.m4 (gl_FUNC_GETLINE):
54088         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54089         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54090         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54091         * m4/md2.m4 (gl_MD2):
54092         * m4/md4.m4 (gl_MD4):
54093         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54094         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54095         * m4/readline.m4 (gl_FUNC_READLINE):
54096         * m4/rijndael.m4 (gl_RIJNDAEL):
54097         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54098         to get the necessary .h files and whatnot.
54099
54100 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54103         gnulib rather than the other way around.
54104         * config/srclistvars.sh (COREUTILS): Remove.
54105
54106 2006-08-22  Jim Meyering  <jim@meyering.net>
54107
54108         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54109
54110         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54111
54112 2006-08-22  Eric Blake  <ebb9@byu.net>
54113
54114         * modules/regexprops-generic: New file.
54115         * MODULES.html.sh (Support for building documentation): List it.
54116
54117 2006-08-22  Eric Blake  <ebb9@byu.net>
54118
54119         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54120         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54121         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54122         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54123
54124 2006-08-22  Bruno Haible  <bruno@clisp.org>
54125
54126         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54127         and lib_LTLIBRARIES like the other lib_* variables.
54128
54129 2006-08-22  Bruno Haible  <bruno@clisp.org>
54130
54131         * build-aux/x-to-1.in: New file, from GNU gettext.
54132
54133 2006-08-22  Bruno Haible  <bruno@clisp.org>
54134
54135         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
54136         <utmpx.h> exists.
54137
54138 2006-08-22  Bruno Haible  <bruno@clisp.org>
54139
54140         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
54141         <utmpx.h> exists.
54142
54143 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54144
54145         BeOS portability.
54146         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
54147         exist.
54148         Problem reported by Bruno Haible.
54149
54150 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54151
54152         Avoid the need for AC_LIBSOURCES in m4 macros.
54153         * modules/acl (EXTRA_DIST): Add acl.h.
54154         * modules/argmatch (Files): Add m4/argmatch.m4.
54155         (configure.ac): Add gl_ARGMATCH.
54156         (EXTRA_DIST): Renamed from lib_SOURCES, for
54157         consistency with the other modules.  Remove argmatch.c.
54158         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
54159         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
54160         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
54161         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
54162         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
54163         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
54164         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
54165         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
54166         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
54167         * modules/closeout (EXTRA_DIST): Add closeout.h.
54168         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
54169         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
54170         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
54171         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
54172         dirname.h; remove basename.c and stripslash.c.
54173         * modules/exclude (EXTRA_DIST): Add exclude.h.
54174         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
54175         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
54176         * modules/file-type (EXTRA_DIST): Add file-type.h.
54177         * modules/filemode (EXTRA_DIST): Add filemode.h.
54178         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
54179         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54180         * modules/fpending (EXTRA_DIST): Add __fpending.h.
54181         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
54182         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
54183         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
54184         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
54185         * modules/getdate (EXTRA_DIST): Add getdate.c.
54186         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
54187         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
54188         * modules/getpass (EXTRA_DIST): Add getpass.h.
54189         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
54190         * modules/group-member (EXTRA_DIST): Add group-member.h.
54191         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
54192         * modules/hash (EXTRA_DIST): Add hash.h.
54193         * modules/human (EXTRA_DIST): Add human.h.
54194         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
54195         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
54196         * modules/lchown (EXTRA_DIST): Add lchown.h.
54197         * modules/long-options (EXTRA_DIST): Add long-options.h.
54198         * modules/lstat (EXTRA_DIST): Add lstat.h.
54199         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
54200         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
54201         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
54202         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
54203         * modules/memxor (EXTRA_DIST): Add memxor.h.
54204         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
54205         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
54206         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
54207         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
54208         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
54209         * modules/physmem (EXTRA_DIST): Add physmem.h.
54210         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
54211         * modules/posixver (EXTRA_DIST): Add posixver.h.
54212         * modules/quote (EXTRA_DIST): Add quote.h.
54213         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
54214         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
54215         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
54216         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
54217         regex_internal.h regexec.c.
54218         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
54219         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
54220         * modules/same (EXTRA_DIST): Add same.h.
54221         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
54222         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
54223         * modules/savedir (EXTRA_DIST): Add savedir.h.
54224         * modules/sha1 (EXTRA_DIST): Add sha1.h.
54225         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
54226         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
54227         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
54228         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
54229         * modules/strdup (EXTRA_DIST): Add strdup.h.
54230         * modules/strftime (EXTRA_DIST): Add strftime.h.
54231         * modules/strndup (EXTRA_DIST): Add strndup.h.
54232         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
54233         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
54234         * modules/time_r (EXTRA_DIST): Add time_r.h.
54235         * modules/timespec (EXTRA_DIST): Add timespec.h.
54236         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
54237         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
54238         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
54239         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
54240         * modules/userspec (EXTRA_DIST): Add userspec.h.
54241         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
54242         * modules/utimens (EXTRA_DIST): Add utimens.h.
54243         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
54244         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
54245         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
54246         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
54247         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
54248         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
54249         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
54250         * modules/yesno (EXTRA_DIST): Add yesno.h.
54251
54252 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54255
54256         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54257         * m4/dev-ino.m4, same-inode.m4: Remove.
54258
54259         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54260         * m4/acl.m4 (AC_FUNC_ACL):
54261         * m4/backupfile.m4 (gl_BACKUPFILE):
54262         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54263         * m4/canon-host.m4 (gl_CANON_HOST):
54264         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54265         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54266         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54267         * m4/cloexec.m4 (gl_CLOEXEC):
54268         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54269         * m4/closeout.m4 (gl_CLOSEOUT):
54270         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54271         * m4/dirname.m4 (gl_DIRNAME):
54272         * m4/exclude.m4 (gl_EXCLUDE):
54273         * m4/exitfail.m4 (gl_EXITFAIL):
54274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54275         * m4/file-type.m4 (gl_FILE_TYPE):
54276         * m4/filemode.m4 (gl_FILEMODE):
54277         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54278         * m4/fpending.m4 (gl_FUNC_FPENDING):
54279         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54280         * m4/fts.m4 (gl_FUNC_FTS):
54281         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54282         * m4/getdate.m4 (gl_GETDATE):
54283         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54284         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54285         * m4/getpass.m4 (gl_FUNC_GETPASS):
54286         * m4/gettime.m4 (gl_GETTIME):
54287         * m4/getugroups.m4 (gl_GETUGROUPS):
54288         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54289         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54290         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54291         * m4/hash.m4 (gl_HASH):
54292         * m4/idcache.m4 (gl_IDCACHE):
54293         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54294         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54295         * m4/long-options.m4 (gl_LONG_OPTIONS):
54296         * m4/lstat.m4 (gl_FUNC_LSTAT):
54297         * m4/md5.m4 (gl_MD5):
54298         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54299         * m4/memcoll.m4 (gl_MEMCOLL):
54300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54301         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54302         * m4/memxor.m4 (gl_MEMXOR):
54303         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54305         * m4/modechange.m4 (gl_MODECHANGE):
54306         * m4/mountlist.m4 (gl_MOUNTLIST):
54307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54308         * m4/openat.m4 (gl_FUNC_OPENAT):
54309         * m4/pathmax.m4 (gl_PATHMAX):
54310         * m4/physmem.m4 (gl_PHYSMEM):
54311         * m4/posixtm.m4 (gl_POSIXTM):
54312         * m4/posixver.m4 (gl_POSIXVER):
54313         * m4/quote.m4 (gl_QUOTE):
54314         * m4/quotearg.m4 (gl_QUOTEARG):
54315         * m4/readtokens.m4 (gl_READTOKENS):
54316         * m4/readutmp.m4 (gl_READUTMP):
54317         * m4/regex.m4 (gl_REGEX):
54318         * m4/safe-read.m4 (gl_SAFE_READ):
54319         * m4/safe-write.m4 (gl_SAFE_WRITE):
54320         * m4/same.m4 (gl_SAME):
54321         * m4/save-cwd.m4 (gl_SAVE_CWD):
54322         * m4/savedir.m4 (gl_SAVEDIR):
54323         * m4/settime.m4 (gl_SETTIME):
54324         * m4/sha1.m4 (gl_SHA1):
54325         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54326         * m4/stat-macros.m4 (gl_STAT_MACROS):
54327         * m4/stat-time.m4 (gl_STAT_TIME):
54328         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54329         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54330         * m4/strdup.m4 (gl_FUNC_STRDUP):
54331         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54332         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54333         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54334         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54335         * m4/time_r.m4 (gl_TIME_R):
54336         * m4/timespec.m4 (gl_TIMESPEC):
54337         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54338         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54339         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54340         * m4/userspec.m4 (gl_USERSPEC):
54341         * m4/utimecmp.m4 (gl_UTIMECMP):
54342         * m4/utimens.m4 (gl_UTIMENS):
54343         * m4/xalloc.m4 (gl_XALLOC):
54344         * m4/xgetcwd.m4 (gl_XGETCWD):
54345         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54346         * m4/xreadlink.m4 (gl_XREADLINK):
54347         * m4/xstrtod.m4 (gl_XSTRTOD):
54348         * m4/yesno.m4 (gl_YESNO):
54349         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54350         to get the necessary .h files and whatnot.
54351
54352 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54353             Bruno Haible  <bruno@clisp.org>
54354
54355         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54356         /bin/sh understanding of '!' conditional negation.
54357
54358 2006-08-21  Jim Meyering  <jim@meyering.net>
54359
54360         * modules/openat (Depends-on): Really alphabetize.
54361
54362         * modules/acl (Depends-on): Add error and quote.
54363
54364         * check-module (find_included_lib_files): Add at-func.c to the
54365         ok-to-include-more-than-once white list.
54366
54367         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54368
54369 2006-08-21  Bruno Haible  <bruno@clisp.org>
54370
54371         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54372         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54373         Reported by Martin Lambers <marlam@marlam.de>.
54374
54375 2006-08-21  Bruno Haible  <bruno@clisp.org>
54376
54377         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54378         specify an installation location, don't emit a noinst_LIBRARIES or
54379         noinst_LTLIBRARIES assignment.
54380
54381 2006-08-21  Bruno Haible  <bruno@clisp.org>
54382
54383         BeOS portability.
54384         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54385         BeOS has mbrtowc() but no <wctype.h>.
54386
54387 2006-08-21  Bruno Haible  <bruno@clisp.org>
54388
54389         BeOS portability.
54390         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54391         exist.
54392
54393 2006-08-21  Bruno Haible  <bruno@clisp.org>
54394
54395         BeOS portability.
54396         * lib/mbchar.h: Include <wctype.h> only if it exists.
54397
54398 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54399
54400         Remove files that are no longer needed by their respective modules.
54401         * m4/obstack.m4: Remove.
54402         * m4/strerror_r.m4: Remove.
54403         * m4/uint32_t.m4: Remove.
54404         * m4/uintptr_t.m4: Remove.
54405         * m4/ullong_max.m4: Remove.
54406         * m4/xstrtoimax.m4: Remove.
54407         * m4/xstrtoumax.m4: Remove.
54408
54409         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54410         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54411         dependencies now capture this.
54412
54413         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54414         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54415         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54416         * m4/human.m4 (gl_HUMAN): Likewise.
54417         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54418         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54419
54420         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54421
54422         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54423         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54424         stdint.
54425         * m4/human.m4 (gl_HUMAN): Likewise.
54426         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54427         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54428         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54429         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54430         * m4/xstrtol (gl_XSTRTOL): Likewise.
54431
54432         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54433         AC_TYPE_LONG_LONG_INT.
54434         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54435         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54436         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54437         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54438
54439         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54440         on stdbool.
54441
54442         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54443         (gl_PREREQ_XSTRTOUL): Remove.
54444
54445         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54446
54447         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54448         mode.
54449
54450 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54451
54452         Add and change modules to make it easier for coreutils to use
54453         gnulib-tool.
54454         * modules/backupfile (Files): Remove m4/d-ino.m4.
54455         (Depends-on): Add d-ino.
54456         * modules/cycle-check (Depends-on): Add stdint.
54457         (lib_SOURCES): Add cycle-check.h.
54458         * modules/d-ino: New module.
54459         * modules/d-type: New module.
54460         * modules/error (Files): Remove m4/strerror_r.m4.
54461         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54462         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54463         m4/inttypes_h.m4, m4/uintmax_t.m4.
54464         (Depends-on): Add stdint.
54465         (lib_SOURCES): Add fsusage.h.
54466         * modules/getcwd (Files): Remove d-ino.m4.
54467         (Depends-on): Add d-ino.
54468         * modules/getndelim2 (Depends-on): Add stdint.
54469         * modules/glob (Files): Remove m4/d-type.m4.
54470         (Depends-on): Add d-type.
54471         * modules/host-os: New module.
54472         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54473         m4/inttypes_h.m4, m4/uintmax_t.m4.
54474         * Depends-on: Add stdint.
54475         (lib_SOURCES): Add human.h.
54476         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54477         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54478         m4/uintmax_t.m4, m4/ulonglong.m4.
54479         (Depends-on): Add stdint.
54480         (EXTRA_DIST): Add inttostr.h.
54481         * modules/lchmod: New module.
54482         * modules/link-follow: New module.
54483         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54484         (Depends-on): Add lchmod.
54485         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54486         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54487         (Depends-on): Add stdint.
54488         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54489         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54490         (Depends-on): Add stdint.
54491         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54492         * modules/perl: New module.
54493         * modules/regex (Depends-on): Add stdint.
54494         * modules/rmdir-errno: New module.
54495         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54496         m4/intmax_t.m4.
54497         (Depends-on): Add stdint.
54498         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54499         m4/uintmax_t.m4.
54500         (Depends-on): Add stdint.
54501         * modules/unlink-busy: New module.
54502         * modules/utimecmp (Depends-on): Add stdint.
54503         * modules/uptime: New module.
54504         * modules/winsz-ioctl: New module.
54505         * modules/winsz-termios: New module.
54506         * modules/xnanosleep (Depends-on): Add nanosleep.
54507         * modules/ullong_max: Remove.
54508         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54509         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54510         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54511         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54512         (Depends-on): Add inttypes.
54513         (lib_SOURCES): Add xstrtol.h.
54514         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54515         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54516         * MODULES.html.sh: Move 'assert' into the assert section.
54517         Move 'dummy' into the linking section.
54518         Remove ullong_max.
54519         Add section for compatibility checks for POSIX:2001 functions,
54520         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54521         winsz-ioctl, and winsz-termios into it.
54522         Add lchmod.
54523         Add top-level Misc section and put host-os, perl, and uptime
54524         into it.
54525
54526 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54529         now assume the stdint module.  Do not include inttypes.h.
54530         * lib/fsusage.h: Likewise.
54531         * lib/getndelim2.c: Likewise.
54532         * lib/human.h: Likewise.
54533         * lib/inttostr.h: Likewise.
54534         * lib/obstack.c: Likewise.
54535         * lib/regex_internal.h: Likewise.
54536         * lib/tempname.c: Likewise.
54537         * lib/utimecmp.c: Likewise.
54538         * lib/xstrtol.h: Likewise.
54539
54540         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54541
54542         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54543         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54544         * lib/xtime.h: Likewise.
54545
54546 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * modules/openat (Files): Add lib/fchmodat.c.
54549         Fixes problem reported by Jay Youngman.
54550
54551 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54552
54553         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54554         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54555
54556 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54557             Bruno Haible  <bruno@clisp.org>
54558
54559         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54560         and is a script that invokes bison. Tighten the code. Add comments.
54561
54562 2006-08-18  Jim Meyering  <jim@meyering.net>
54563
54564         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54565         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54566         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54567         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54568
54569 2006-08-18  Bruno Haible  <bruno@clisp.org>
54570
54571         * modules/bison-i18n: New file.
54572         * MODULES.html.sh (Internationalization functions): Add it.
54573
54574 2006-08-18  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54577         sys/statvfs.h. When getmntinfo was found, check its declaration and
54578         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54579
54580 2006-08-18  Bruno Haible  <bruno@clisp.org>
54581
54582         * m4/bison-i18n.m4: New file, from bison.
54583
54584 2006-08-18  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54587         (ME_DUMMY): Treat "kernfs" as a dummy.
54588         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54589
54590 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54591
54592         Update from coreutils.
54593
54594         2006-08-15  Jim Meyering  <jim@meyering.net>
54595
54596         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54597
54598         2006-01-17  Jim Meyering  <jim@meyering.net>
54599
54600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54601
54602         2006-01-11  Jim Meyering  <jim@meyering.net>
54603
54604         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54605         Check for the lchmod function.
54606
54607 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54608
54609         Update from coreutils.
54610
54611         * lib/__fpending.h: Add copyright notice.
54612         * lib/fprintftime.h: Likewise.
54613         * lib/savedir.c: Use (C) in copyright notice.
54614         * lib/savedir.h: Likewise.
54615
54616         2006-08-15  Jim Meyering  <jim@meyering.net>
54617
54618         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54619         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54620         in support of the EXPECTED_ERRNO macro.
54621         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54622         definitions.  Instead, define the appropriate symbols and include
54623         "at-func.c".
54624         * lib/mkdirat.c (mkdirat): Likewise.
54625         * lib/fchmodat.c (fchmodat): Likewise.
54626         (ENOSYS): Remove definition.
54627         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54628         it.  Don't include "unistd--.h" -- it wasn't ever used.
54629
54630         2006-01-17  Jim Meyering  <jim@meyering.net>
54631
54632         Rewrite fts.c not to change the current working directory,
54633         by using openat, fstatat, fdopendir, etc..
54634
54635         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54636         (HAVE_OPENAT_SUPPORT): Define.
54637         [_LIBC] (fchdir): Don't undef or define; no longer used.
54638         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54639         Now, this `function' always succeeds, and consumes its file descriptor
54640         parameter -- so callers must not close such FDs.  Update callers.
54641         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54642         (diropen): Add parameter, SP.  Adjust all callers.
54643         Implement using diropen_fd, rather than open.
54644         (fts_open): Initialize new member, fts_cwd_fd.
54645         Remove fts_rft-setting code.
54646         (fts_close): Close fts_cwd_fd, if necessary.
54647         (__opendir2): Define in terms of opendir or opendirat,
54648         depending on whether the FST_NOCHDIR flag is set.
54649         (fts_build): Since fts_safe_changedir consumes its FD, and since
54650         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54651         and close the dup'd file descriptor upon failure.
54652         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54653         (fts_safe_changedir): Tweak semantics to reflect that this function
54654         now calls cwd_advance_fd and hence consumes its FD argument.
54655         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54656         [struct FTS] (fts_rft): Remove now-unused member.
54657         [struct FTS] (fts_cycle.state): Improve comment.
54658
54659         * lib/openat.c (openat_needs_fchdir): New function.
54660         * lib/openat.h (openat_needs_fchdir): Declare it.
54661
54662 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54663
54664         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54665         Problem and fix reported by Pádraig Brady in
54666         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54667
54668 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54671
54672 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54673
54674         * lib/memcoll.c (memcoll): Optimize for the common case where the
54675         arguments are bytewise equal.
54676
54677 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54678
54679         * doc/regexprops-generic.texi: Add a copyright notice.
54680
54681 2006-08-15  Bruno Haible  <bruno@clisp.org>
54682
54683         * modules/tmpdir (License): Change to LGPL.
54684
54685 2006-08-15  Bruno Haible  <bruno@clisp.org>
54686
54687         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54688         module.
54689
54690 2006-08-14  Simon Josefsson  <jas@extundo.com>
54691
54692         * config/srclist.txt: Add gnupload.
54693
54694 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54695
54696         Change copyright notice from LGPL 2 to GPL 2, since that's the
54697         standard form used in the gnulib repository.
54698         * tests/test-lock.c: Likewise.
54699         * tests/test-stdint.c: Likewise.
54700         * tests/test-tls.c: Likewise.
54701
54702         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54703         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54704         Add copyright notice.
54705
54706         * check-module: Add copyright notice.  Output a copyright
54707         notice if "--version" is specified.
54708         * modules/COPYING: New file.
54709         * tests/test-getaddrinfo.c: Add copyright notice.
54710         * tests/test-verify.c: Likewise.
54711
54712 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54713
54714         Change copyright notice from LGPL 2 to GPL 2, since that's the
54715         standard form used in the gnulib repository.
54716         * lib/lock.c: LGPL -> GPL.
54717         * lib/lock.h: Likewise.
54718         * lib/strnlen1.c: Likewise.
54719         * lib/strnlen1.h: Likewise.
54720         * lib/tls.c: Likewise.
54721         * lib/tls.h: Likewise.
54722         * lib/tmpdir.c: Likewise.
54723
54724         * lib/TODO: Remove; this belongs only in coreutils.
54725
54726 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54727
54728         Add copyright notices to long-enough files that lack them, since
54729         otherwise the files aren't clearly free.  Use the same notice that
54730         getdate.texi already uses.
54731         * doc/alloca-opt.texi: Add copyright notice.
54732         * doc/alloca.texi: Likewise.
54733         * doc/ctime.texi: Likewise.
54734         * doc/functions.texi: Likewise.
54735         * doc/gcd.texi: Likewise.
54736         * doc/gnulib-tool.texi: Likewise.
54737         * doc/inet_ntoa.texi: Likewise.
54738         * doc/visibility.texi: Likewise.
54739
54740         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54741         * doc/quote.texi: Add copyright notice.
54742
54743         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54744         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54745         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54746         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54747         is now obsolete, and give a pointer to the Sun list.
54748         Add copyright notice.
54749
54750 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * config/srclistvars.sh: Add copyright notice.
54753
54754 2006-08-14  Eric Blake  <ebb9@byu.net>
54755
54756         Import the following change from libc:
54757
54758         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54759
54760         Upstream bug 2997.
54761         * lib/misc/error.c: Add space between program name and message if file
54762         name is missing.
54763
54764 2006-08-12  Karl Berry  <karl@gnu.org>
54765
54766         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54767         remove, these originate in gnulib now.
54768
54769 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54770
54771         * doc/Makefile (standards.info standards.html standards.dvi):
54772         Also depend on make-stds.texi.
54773
54774 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54777         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54778
54779         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54780         in wchar_t.  Problem reported by Eric Blake.
54781
54782         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54783         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54784         Also, help the compiler to keep LEN in a register.
54785
54786 2006-08-11  Eric Blake  <ebb9@byu.net>
54787
54788         * users.txt: Sort.  Add tar.
54789
54790 2006-08-11  Bruno Haible  <bruno@clisp.org>
54791
54792         * users.txt: New file.
54793
54794 2006-08-11  Bruno Haible  <bruno@clisp.org>
54795
54796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54797         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54798
54799 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54800
54801         * modules/snprintf (Depends-on): Remove minmax.
54802         (Maintainer): Add self and Bruno.
54803
54804 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54807         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54808         (EOVERFLOW): Define if the system does not.
54809         Do not include "minmax.h"; it wasn't used.
54810         (snprintf): Don't assume size_t promotes to an unsigned type.
54811         Fix bug when generated string was too long for the buffer: the
54812         buffer's contents are supposed to be the initial prefix of the
54813         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54814         exceeds INT_MAX; do the check ourselves.
54815
54816         Import the following changes from libc:
54817
54818         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54819
54820         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54821         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54822         set wc to the byte which couldn't be converted.
54823         (re_string_reconstruct): Don't clear valid_raw_len before calling
54824         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54825         tip_context using re_string_context_at.
54826
54827         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54828
54829         * lib/posix/regex.h: g++ still cannot handled [restrict].
54830
54831         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54832
54833         * lib/posix/regex.h: Remove special handling for VMS.
54834
54835 2006-08-10  Jim Meyering  <jim@meyering.net>
54836
54837         * modules/same-inode: New module.
54838         * modules/dev-ino: New module.
54839         * modules/cycle-check: Depend on these modules, rather than simply
54840         including their .h files.
54841         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54842         required via m4/cycle-check.m4.
54843         * modules/same: Depend on new same-inode module, rather than
54844         including same-inode.h.
54845         * modules/chdir-safer: New file.
54846
54847         * modules/chown (Depends-on): Add stat-macros.
54848
54849 2006-08-10  Jim Meyering  <jim@meyering.net>
54850
54851         * m4/cycle-check.m4: New file.
54852         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54853         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54854
54855 2006-08-10  Eric Blake  <ebb9@byu.net>
54856
54857         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54858         in from original proposal.
54859
54860 2006-08-10  Eric Blake  <ebb9@byu.net>
54861         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54862
54863         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54864         namespace.
54865
54866 2006-08-10  Bruno Haible  <bruno@clisp.org>
54867
54868         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54869         as well.
54870
54871 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54872
54873         Sync from coreutils.
54874
54875         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54876
54877         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54878         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54879
54880 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54881
54882         * modules/restrict: Remove; no longer needed now that we assume
54883         Autoconf 2.59 or later.
54884         * MODULES.html.sh: Remove 'restrict'.
54885         * modules/argp (Depends-on): Remove 'restrict'.
54886         * modules/base64 (Depends-on): Likewise.
54887         * modules/gc (Depends-on): Likewise.
54888         * modules/getaddrinfo (Depends-on): Likewise.
54889         * modules/glob (Depends-on): Likewise.
54890         * modules/inet_ntop (Depends-on): Likewise.
54891         * modules/inet_pton (Depends-on): Likewise.
54892         * modules/memxor (Depends-on): Likewise.
54893         * modules/regex (Depends-on): Likewise.
54894         * modules/strtok_r (Depends-on): Likewise.
54895         * modules/time_r (Depends-on): Likewise.
54896
54897 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54898
54899         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54900         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54901         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54902         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54903         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54904         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54905         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54906         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54907
54908         Merge from coreutils.
54909         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54910         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54911         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54912         * m4/time_r.m4 (gl_TIME_R): Likewise.
54913
54914 2006-08-09  Karl Berry  <karl@gnu.org>
54915
54916         * config/srclist.txt: no more gettext-tools, per Bruno.
54917
54918 2006-08-08  Eric Blake  <ebb9@byu.net>
54919
54920         * modules/verror: New module.
54921         * MODULES.html.sh: Document it.
54922
54923 2006-08-08  Eric Blake  <ebb9@byu.net>
54924
54925         * lib/verror.h, lib/verror.c: New files.
54926
54927 2006-08-08  Eric Blake  <ebb9@byu.net>
54928
54929         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54930         verror_at_line output complies with GNU Coding Standards even when
54931         file is NULL.
54932
54933 2006-08-07  Bruno Haible  <bruno@clisp.org>
54934
54935         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54936         versions of AIX.
54937         Reported by Ralf Wildenhues.
54938
54939 2006-08-07  Bruno Haible  <bruno@clisp.org>
54940
54941         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54942         in an AC_DEFUN. Needed so that the autoconf snippets can use
54943         AC_REQUIRE.
54944
54945 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54946
54947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54948         Initialize pkgdata_DATA.
54949         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54950         overriding it.
54951
54952 2006-08-06  Eric Blake  <ebb9@byu.net>
54953
54954         * lib/error.h: Fold in some upstream changes from glibc.
54955         * lib/error.c: Likewise.
54956
54957 2006-08-04  Bruno Haible  <bruno@clisp.org>
54958
54959         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54960         Make the mostlyclean-local rule depend on mostlyclean-generic.
54961         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54962
54963 2006-07-31  Bruno Haible  <bruno@clisp.org>
54964
54965         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54966         <stdlib.h>, <string.h>.
54967
54968 2006-07-30  Bruno Haible  <bruno@clisp.org>
54969
54970         * modules/readlink (License): Change to LGPL.
54971
54972 2006-07-30  Bruno Haible  <bruno@clisp.org>
54973
54974         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54975         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54976         set PKGDATADIR to point to it.
54977
54978 2006-07-30  Bruno Haible  <bruno@clisp.org>
54979
54980         * modules/csharpexec (configure.ac): Comment out macro invocation.
54981         * modules/javaexec (configure.ac): Likewise.
54982         * modules/javacomp-script (configure.ac): Likewise.
54983
54984         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54985
54986 2006-07-30  Bruno Haible  <bruno@clisp.org>
54987
54988         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54989         linked-list.
54990
54991 2006-07-30  Bruno Haible  <bruno@clisp.org>
54992
54993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54994
54995 2006-07-30  Bruno Haible  <bruno@clisp.org>
54996
54997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54998         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54999         get removed.
55000
55001 2006-07-29  Bruno Haible  <bruno@clisp.org>
55002
55003         Make it possible for gnulib-tool to work with locally modified or
55004         augmented gnulib repositories.
55005         * gnulib-tool (func_usage): Document --local-dir option.
55006         (local_gnulib_dir): New variable.
55007         Handle --local-dir option.
55008         (func_lookup_file): New function.
55009         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
55010         (func_get_description, func_get_filelist, func_get_description,
55011         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
55012         func_get_automake_snippet, func_get_include_directive,
55013         func_get_license, func_get_maintainer): Use func_lookup_file.
55014         (func_import, func_create_testdir): Use func_lookup_file.
55015
55016 2006-07-29  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/setenv (Depends-on): Add unistd.
55019
55020 2006-07-29  Bruno Haible  <bruno@clisp.org>
55021
55022         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
55023
55024 2006-07-29  Bruno Haible  <bruno@clisp.org>
55025
55026         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
55027
55028 2006-07-29  Bruno Haible  <bruno@clisp.org>
55029
55030         * gnulib-tool (import, update): If there is no Makefile.am, look at
55031         aclocal.m4, instead of bailing out.
55032
55033 2006-07-29  Bruno Haible  <bruno@clisp.org>
55034
55035         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
55036         Categorize the options by when they are useful.
55037
55038 2006-07-29  Bruno Haible  <bruno@clisp.org>
55039
55040         * gnulib-tool (func_usage): Document option --no-libtool.
55041         Handle option --no-libtool.
55042         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
55043         for changed semantics of $libtool variable.
55044         (func_import): Likewise. If libtool is not used, show this through
55045         an option --no-libtool.
55046         (func_create_testdir): Update.
55047
55048 2006-07-29  Bruno Haible  <bruno@clisp.org>
55049
55050         * gnulib-tool (func_import): Extend error message about missing
55051         --doc-base.
55052
55053 2006-07-29  Bruno Haible  <bruno@clisp.org>
55054
55055         * gnulib-tool (func_import): Don't create the $docbase directory if
55056         there is no file to store there.
55057
55058 2006-07-29  Bruno Haible  <bruno@clisp.org>
55059
55060         * gnulib-tool (autoconf_minversion): If a --dir option is given and
55061         relevant, look for configure.ac there, not in the current directory.
55062         Also use a simple search for AC_PREREQ, not "autoconf --trace".
55063
55064 2006-07-29  Bruno Haible  <bruno@clisp.org>
55065
55066         * gnulib-tool (SORT): New variable.
55067         (func_usage): Undocument --assume-autoconf option.
55068         Remove --assume-autoconf option handling.
55069         (autoconf_minversion): Determine from the contents of configure.ac.
55070         (func_import): Remove autoconf_minversion handling.
55071         Suggested by Eric Blake.
55072
55073 2006-07-29  Bruno Haible  <bruno@clisp.org>
55074
55075         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55076
55077 2006-07-29  Bruno Haible  <bruno@clisp.org>
55078
55079         * config/srclist.txt (*setenv.[ch]): Remove rules.
55080
55081 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55082
55083         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55084
55085 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55086
55087         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55088         arpa/inet.h.
55089
55090 2006-07-28  Simon Josefsson  <jas@extundo.com>
55091
55092         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55093         * modules/inet_pton (Depends-on): Likewise.
55094
55095 2006-07-28  Simon Josefsson  <jas@extundo.com>
55096
55097         * m4/netinet_in_h.m4: New file.
55098
55099 2006-07-28  Simon Josefsson  <jas@extundo.com>
55100
55101         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55102         #include's.
55103
55104 2006-07-28  Simon Josefsson  <jas@extundo.com>
55105
55106         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55107         #include's.
55108
55109 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55112         setgid on directories only if they set these bits.
55113         * lib/modechange.h: Remove obsolete comment about masks.
55114
55115 2006-07-28  Eric Blake  <ebb9@byu.net>
55116
55117         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55118         macro expansion.
55119
55120 2006-07-28  Bruno Haible  <bruno@clisp.org>
55121
55122         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55123
55124 2006-07-28  Bruno Haible  <bruno@clisp.org>
55125
55126         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55127
55128 2006-07-28  Bruno Haible  <bruno@clisp.org>
55129
55130         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55131         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55132         Define fallbacks.
55133         Avoids link error on FreeBSD 4.x.
55134         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55135
55136         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
55137         encoding.
55138         * lib/mbswidth.c (iswcntrl): Likewise.
55139
55140 2006-07-27  Bruno Haible  <bruno@clisp.org>
55141
55142         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
55143         test.
55144
55145 2006-07-27  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
55148         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
55149         defined.
55150
55151 2006-07-26  Eric Blake  <ebb9@byu.net>
55152
55153         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
55154
55155 2006-07-26  Eric Blake  <ebb9@byu.net>
55156
55157         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
55158         like mingw that lack mkstemp.
55159         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
55160         avoid compilation warning on mingw.
55161
55162 2006-07-26  Bruno Haible  <bruno@clisp.org>
55163
55164         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
55165         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
55166         INT_FAST*_MIN, INTPTR_MIN.
55167
55168 2006-07-25  Bruno Haible  <bruno@clisp.org>
55169
55170         * modules/version-etc (Depends-on): Add stdarg.
55171
55172 2006-07-25  Bruno Haible  <bruno@clisp.org>
55173
55174         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
55175         complex commands.
55176
55177 2006-07-25  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
55180         defined in <stdarg.h> or config.h.
55181
55182 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
55185         (gl_STDIO_SAFER): Remove.
55186
55187 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         * MODULES.html.sh (File stream based Input/Output):
55190         Add fopen-safer, tmpfile-safer; remove stdio-safer.
55191         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
55192         * modules/fopen-safer, modules/tmpfile-safer: New files.
55193         * modules/stdio-safer: Remove.
55194
55195 2006-07-24  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/tmpdir: New file.
55198         * MODULES.html.sh (File system functions): Add it.
55199
55200 2006-07-24  Bruno Haible  <bruno@clisp.org>
55201
55202         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
55203         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
55204
55205 2006-07-24  Bruno Haible  <bruno@clisp.org>
55206
55207         * modules/clean-temp: New file.
55208
55209 2006-07-24  Bruno Haible  <bruno@clisp.org>
55210
55211         * m4/tmpdir.m4: New file, from GNU gettext.
55212
55213 2006-07-24  Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/tmpdir.h: New file, from GNU gettext.
55216         * lib/tmpdir.c: New file, from GNU gettext.
55217
55218 2006-07-24  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/clean-temp.h: New file, from GNU gettext.
55221         * lib/clean-temp.c: New file, from GNU gettext.
55222
55223 2006-07-23  Eric Blake  <ebb9@byu.net>
55224
55225         * modules/stdio-safer (Files): Add tmpfile-safer.c.
55226         (Depends-on): Add binary-io.
55227
55228 2006-07-23  Eric Blake  <ebb9@byu.net>
55229
55230         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
55231
55232 2006-07-23  Eric Blake  <ebb9@byu.net>
55233
55234         * lib/tmpfile-safer.c: New file.
55235         * lib/stdio-safer.h (fopen_safer): Add prototype.
55236         * lib/stdio--.h (tmpfile): Make safer.
55237
55238 2006-07-23  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
55241         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
55242         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
55243         gl_linked_remove_at): Use it.
55244
55245 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55246         and Simon Josefsson <jas@extundo.com>
55247
55248         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
55249
55250         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
55251
55252 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55253
55254         * modules/close-stream: New file.
55255         * modules/closeout (Description): Make it clear that it exits
55256         with a diagnostic on error.
55257         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55258         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55259
55260 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * m4/close-stream.m4: New file.
55263
55264 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * lib/close-stream.c, lib/close-stream.h: New files.
55267
55268 2006-07-22  Bruno Haible  <bruno@clisp.org>
55269
55270         Merge from GNU gettext 0.15.
55271
55272         2006-05-01  Bruno Haible  <bruno@clisp.org>
55273
55274                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55275
55276         2006-07-22  Bruno Haible  <bruno@clisp.org>
55277
55278                 * modules/javaversion: New file.
55279                 * MODULES.html.sh (Java): Add javaversion.
55280
55281         2006-03-12  Bruno Haible  <bruno@clisp.org>
55282
55283                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55284
55285         2005-12-04  Bruno Haible  <bruno@clisp.org>
55286
55287                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55288                 (untested).
55289
55290         2006-06-21  Bruno Haible  <bruno@clisp.org>
55291
55292                 Avoid warnings from recent versions of mcs.
55293                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55294                 -o, -L, -r any more. Use options documented since mcs-1.0
55295                 instead. Similarly for -g.
55296
55297         2005-12-04  Bruno Haible  <bruno@clisp.org>
55298
55299                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55300                 .resources, not .resource.
55301
55302         2005-07-09  Bruno Haible  <bruno@clisp.org>
55303
55304                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55305                 add a .dll suffix.
55306                 Reported by Mark Junker <mjscod@gmx.de>.
55307
55308         2006-07-22  Bruno Haible  <bruno@clisp.org>
55309
55310                 * modules/gettext: Upgrade to gettext-0.15.
55311                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55312                 m4/visibility.m4.
55313                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55314
55315 2006-07-22  Bruno Haible  <bruno@clisp.org>
55316
55317         Merge from GNU gettext 0.15.
55318
55319         2006-03-25  Bruno Haible  <bruno@clisp.org>
55320
55321                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55322
55323         2006-07-21  Bruno Haible  <bruno@clisp.org>
55324
55325                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55326                 "1.1".
55327
55328         2006-05-09  Bruno Haible  <bruno@clisp.org>
55329
55330                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55331                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55332                 for the conftestver execution.
55333
55334         2006-05-01  Bruno Haible  <bruno@clisp.org>
55335
55336                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55337                 optional target-version argument. Verify that the compiler
55338                 groks source of the specified source-version, or add -source
55339                 option as necessary. Verify that the compiler produces
55340                 bytecode in the specified target-version, or add -target and
55341                 -source options as necessary. Make the result of the test
55342                 available as variable CONF_JAVAC. Also log error output in
55343                 config.log.
55344
55345         2006-03-11  Bruno Haible  <bruno@clisp.org>
55346
55347                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55348
55349         2006-05-09  Bruno Haible  <bruno@clisp.org>
55350
55351                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55352                 CLASSPATH_SEPARATOR to a semicolon.
55353
55354         2006-03-12  Bruno Haible  <bruno@clisp.org>
55355
55356                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55357                 available as variable CONF_JAVA, for subsequent autoconf
55358                 tests. Also log error output in config.log.
55359
55360         2006-07-19  Bruno Haible  <bruno@clisp.org>
55361
55362                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55363                 that getline works on glibc2 systems. Needed to avoid trouble
55364                 in relocatable.c.
55365                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55366
55367         2005-12-04  Bruno Haible  <bruno@clisp.org>
55368
55369                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55370                 launcher (untested).
55371
55372         2005-12-04  Bruno Haible  <bruno@clisp.org>
55373
55374                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55375
55376         2006-07-22  Bruno Haible  <bruno@clisp.org>
55377
55378                 * gettext.m4: Update from GNU gettext-0.15.
55379                 * nls.m4: Likewise.
55380                 * po.m4: Likewise.
55381                 * inttypes-pri.m4: Likewise.
55382                 * inttypes-h.m4: Renamed from inttypes.m4.
55383                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55384
55385 2006-07-22  Bruno Haible  <bruno@clisp.org>
55386
55387         Merge from GNU gettext 0.15.
55388
55389         2005-07-05  Bruno Haible  <bruno@clisp.org>
55390
55391                 * printf-args.c (printf_fetchargs): Work around broken
55392                 definition of wint_t on mingw.
55393
55394         2005-02-12  Bruno Haible  <bruno@clisp.org>
55395
55396                 * xallocsa.h: Add extern "C" for C++.
55397
55398         2006-05-17  Bruno Haible  <bruno@clisp.org>
55399
55400                 Cygwin portability.
55401                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55402
55403         2006-04-30  Bruno Haible  <bruno@clisp.org>
55404
55405                 * progreloc.c: Include <mach-o/dyld.h> if available.
55406                 (find_executable): Use _NSGetExecutablePath when possible.
55407
55408         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55409
55410                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55411                 function.
55412
55413         2005-12-29  Bruno Haible  <bruno@clisp.org>
55414
55415                 * progreloc.c (set_program_name_and_installdir): Fix
55416                 compilation error.
55417
55418         2005-12-04  Bruno Haible  <bruno@clisp.org>
55419
55420                 Cygwin portability.
55421                 * progreloc.c: Include <windows.h> also on Cygwin.
55422                 (find_executable): Add support for Cygwin.
55423                 (set_program_name_and_installdir): Handle also platforms with
55424                 nonempty EXEEXT.
55425
55426         2006-07-11  Bruno Haible  <bruno@clisp.org>
55427
55428                 * javacomp.c: Fix a comment.
55429                 Reported by Jim Meyering.
55430
55431         2006-04-30  Bruno Haible  <bruno@clisp.org>
55432
55433                 * javacomp.h (compile_java_class): Add source_version,
55434                 target_version arguments.
55435                 * javacomp.c: Rewritten to choose only a compiler that
55436                 respects the specified source_version and target_version.
55437
55438         2006-06-27  Bruno Haible  <bruno@clisp.org>
55439
55440                 Assume correct S_ISDIR macro.
55441                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55442
55443         2006-07-22  Bruno Haible  <bruno@clisp.org>
55444
55445                 * javaversion.h: New file, from GNU gettext.
55446                 * javaversion.c: New file, from GNU gettext.
55447                 * javaversion.java: New file, from GNU gettext.
55448                 * javaversion.class: New file, from GNU gettext.
55449
55450         2006-05-17  Bruno Haible  <bruno@clisp.org>
55451
55452                 Cygwin portability.
55453                 * javaexec.c (execute_java_class): Test for jview program
55454                 also on Cygwin.
55455
55456         2006-04-09  Bruno Haible  <bruno@clisp.org>
55457
55458                 * fatal-signal.c: Don't include string.h.
55459                 (at_fatal_signal): Use a copying loop instead of memcpy.
55460
55461         2005-12-04  Bruno Haible  <bruno@clisp.org>
55462
55463                 * csharpexec.c: Add support for 'clix' launcher (untested).
55464                 (execute_csharp_using_sscli): New function.
55465                 (execute_csharp_program): Call it.
55466
55467         2006-06-21  Bruno Haible  <bruno@clisp.org>
55468
55469                 Avoid warnings from recent versions of mcs.
55470                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55471                 -o, -L, -r any more. Use options documented since mcs-1.0
55472                 instead. Similarly for -g.
55473
55474         2005-07-09  Bruno Haible  <bruno@clisp.org>
55475
55476                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55477                 add a .dll suffix.
55478                 Reported by Mark Junker <mjscod@gmx.de>.
55479
55480         2006-06-17  Bruno Haible  <bruno@clisp.org>
55481
55482                 * config.charset: Update for NetBSD 3.0.
55483
55484         2006-05-17  Bruno Haible  <bruno@clisp.org>
55485
55486                 Cygwin portability.
55487                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55488
55489         2006-05-16  Bruno Haible  <bruno@clisp.org>
55490
55491                 * localcharset.c [CYGWIN]: Include <windows.h>.
55492                 (get_charset_aliases): For Cygwin, return the same CPxxx
55493                 aliases list as under WIN32.
55494                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55495                 the environment variables. Fall back to GetACP().
55496
55497         2006-04-05  Bruno Haible  <bruno@clisp.org>
55498
55499                 * config.charset: Update Juan Manuel Guerrero's address.
55500
55501         2005-02-12  Bruno Haible  <bruno@clisp.org>
55502
55503                 * allocsa.h: Add extern "C" for C++.
55504
55505         2005-02-10  Bruno Haible  <bruno@clisp.org>
55506
55507                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55508                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55509
55510         2006-07-22  Bruno Haible  <bruno@clisp.org>
55511
55512                 * gettext.h: Update to GNU gettext-0.15.
55513
55514 2006-07-22  Bruno Haible  <bruno@clisp.org>
55515
55516         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55517         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55518         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55519
55520 2006-07-21  Eric Blake  <ebb9@byu.net>
55521
55522         * modules/stdlib-safer: New file.
55523         * MODULES.html.sh (File stream based Input/Output): Add
55524         stdlib-safer.
55525
55526 2006-07-21  Eric Blake  <ebb9@byu.net>
55527
55528         * lib/stdlib-safer.h: New file from coreutils, required by
55529         stdlib--.h.
55530
55531 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55532
55533         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55534
55535 2006-07-20  Bruno Haible  <bruno@clisp.org>
55536
55537         * gnulib-tool: Recognize new option --assume-autoconf.
55538         (autoconf_minversion): New variable.
55539         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55540
55541 2006-07-20  Bruno Haible  <bruno@clisp.org>
55542
55543         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55544
55545 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55546
55547         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55548         Reindent and repaginate.
55549
55550 2006-07-19  Derek Price  <derek@ximbiot.com>
55551
55552         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55553         Correct grammar.
55554
55555 2006-07-17  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/list: New file.
55558         * modules/array-list: New file.
55559         * modules/carray-list, modules/carray-list-tests: New files.
55560         * modules/linked-list, modules/linked-list-tests: New files.
55561         * modules/avltree-list, modules/avltree-list-tests: New files.
55562         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55563         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55564         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55565         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55566         * modules/oset: New file.
55567         * modules/array-oset: New file.
55568         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55569         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55570         * tests/test-carray_list.c: New file.
55571         * tests/test-linked_list.c: New file.
55572         * tests/test-avltree_list.c: New file.
55573         * tests/test-rbtree_list.c: New file.
55574         * tests/test-linkedhash_list.c: New file.
55575         * tests/test-avltreehash_list.c: New file.
55576         * tests/test-rbtreehash_list.c: New file.
55577         * tests/test-avltree_oset.c: New file.
55578         * tests/test-rbtree_oset.c: New file.
55579         * MODULES.html.sh (Container data structures): New section.
55580
55581 2006-07-17  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/gl_list.m4: New file.
55584
55585 2006-07-17  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/gl_list.h: New file.
55588         * lib/gl_list.c: New file.
55589         * lib/gl_array_list.h: New file.
55590         * lib/gl_array_list.c: New file.
55591         * lib/gl_carray_list.h: New file.
55592         * lib/gl_carray_list.c: New file.
55593         * lib/gl_linked_list.h: New file.
55594         * lib/gl_linked_list.c: New file.
55595         * lib/gl_anylinked_list1.h: New file.
55596         * lib/gl_anylinked_list2.h: New file.
55597         * lib/gl_avltree_list.h: New file.
55598         * lib/gl_avltree_list.c: New file.
55599         * lib/gl_anyavltree_list1.h: New file.
55600         * lib/gl_anyavltree_list2.h: New file.
55601         * lib/gl_rbtree_list.h: New file.
55602         * lib/gl_rbtree_list.c: New file.
55603         * lib/gl_anyrbtree_list1.h: New file.
55604         * lib/gl_anyrbtree_list2.h: New file.
55605         * lib/gl_anytree_list1.h: New file.
55606         * lib/gl_anytree_list2.h: New file.
55607         * lib/gl_linkedhash_list.h: New file.
55608         * lib/gl_linkedhash_list.c: New file.
55609         * lib/gl_anyhash_list1.h: New file.
55610         * lib/gl_anyhash_list2.h: New file.
55611         * lib/gl_avltreehash_list.h: New file.
55612         * lib/gl_avltreehash_list.c: New file.
55613         * lib/gl_rbtreehash_list.h: New file.
55614         * lib/gl_rbtreehash_list.c: New file.
55615         * lib/gl_anytreehash_list1.h: New file.
55616         * lib/gl_anytreehash_list2.h: New file.
55617
55618         * lib/gl_oset.h: New file.
55619         * lib/gl_oset.c: New file.
55620         * lib/gl_array_oset.h: New file.
55621         * lib/gl_array_oset.c: New file.
55622         * lib/gl_avltree_oset.h: New file.
55623         * lib/gl_avltree_oset.c: New file.
55624         * lib/gl_rbtree_oset.h: New file.
55625         * lib/gl_rbtree_oset.c: New file.
55626         * lib/gl_anytree_oset.h: New file.
55627
55628 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55629
55630         * m4/mkancesdirs.m4: New file.
55631         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55632         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55633         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55634         it.
55635
55636 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55639         * lib/mkancesdirs.h: New files.
55640         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55641         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55642         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55643         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55644         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55645         callers changed.  Revamp internals significantly, by not
55646         attempting to create directories that are temporarily more
55647         permissive than the final results.  Do not attempt to use
55648         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55649         This removes some race conditions, fixes some bugs, and simplifies
55650         things.  Use new dirchownmod function to do owner and mode changes.
55651         * lib/mkdir-p.h: Likewise.
55652         * lib/modechange.c (octal_to_mode): New function.
55653         (struct mode_change): New member mentioned.
55654         (make_node_op_equals): New arg mentioned.  All callers changed.
55655         (mode_compile): Keep track of which mode bits the user has explicitly
55656         mentioned.
55657         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55658         New arg PMODE_BITS, to keep track of which mode bits the user
55659         mentioned; it treats S_ISUID and S_ISGID speciall.
55660         All callers changed.
55661         * lib/modechange.h: Likewise.
55662
55663 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * MODULES.html.sh: Add mkancestors.
55666         * modules/mkancesdirs: New module.
55667         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55668         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55669         The chdir-safer and afs files are now orphans; I'll remove them
55670         unless someone speaks up.
55671         Add lib/dirchownmod.c, lib/dirchownmod.h.
55672         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55673         Add lchown, mkancesdirs.
55674         (Maintainer): Add self.
55675
55676 2006-07-15  Karl Berry  <karl@gnu.org>
55677
55678         * gnulib-tool: help message wording/arrangement.
55679
55680 2006-07-14  Simon Josefsson  <jas@extundo.com>
55681
55682         * doc/gnulib.texi (Libtool and Windows): New section.
55683
55684 2006-07-12  Simon Josefsson  <jas@extundo.com>
55685
55686         * modules/gendocs (License): Fix license, approved by Karl.
55687
55688 2006-07-12  Eric Blake  <ebb9@byu.net>
55689
55690         * MODULES.html.sh: Add gendocs.
55691
55692 2006-07-11  Eric Blake  <ebb9@byu.net>
55693
55694         * modules/fdl: New module, to install doc/fdl.texi.
55695         * MODULES.html.sh: Add new section for documentation modules.
55696         * gnulib-tool: Avoid space-tab.
55697         (--doc-base): New option, to manage files from doc.
55698
55699 2006-07-11  Eric Blake  <ebb9@byu.net>
55700
55701         * m4/absolute-header.m4: Fix comments to match recent change.
55702
55703 2006-07-11  Eric Blake  <ebb9@byu.net>
55704
55705         * gnulib-tool: List --doc-base before --tests-base.
55706
55707 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55708
55709         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55710
55711 2006-07-11  Bruno Haible  <bruno@clisp.org>
55712
55713         * README: Mention where to put documentation.
55714
55715 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55716
55717         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55718
55719 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55720
55721         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55722         to stdint.m4.
55723
55724 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55727         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55728         "no/such/file/stdint.h" when there is no such file, so that
55729         the resulting C code can be parsed by dodgy compilers.
55730         Problems reported by Bob Proulx.
55731
55732 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55733
55734         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55735         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55736         macros into the GNU _D_EXACT_NAMLEN.
55737         * lib/savedir.c:  Likewise.
55738         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55739
55740 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55741         and Paul Eggert  <eggert@cs.ucla.edu>
55742
55743         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55744         * m4/savedir.m4:
55745         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55746         macros into the GNU _D_EXACT_NAMLEN.
55747
55748 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55751         around the absolute name, to work around a problem with the HP-UX
55752         11.23 native C compiler, reported by Bob Proulx.
55753
55754 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         * doc/maintain.texi, make-stds.texi: Sync from
55757         <http://savannah.gnu.org/projects/gnustandards>.
55758
55759 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55762
55763 2006-07-09  Jim Meyering  <jim@meyering.net>
55764
55765         * m4/glob.m4: Remove a doubled word in a comment.
55766
55767 2006-07-09  Jim Meyering  <jim@meyering.net>
55768
55769         * lib/argp-pv.c: Remove a doubled word in a comment.
55770         * lib/check-version.c (check_version): Likewise.
55771         * lib/javacomp.c (compile_java_class): Likewise.
55772
55773 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55776         for the benefit of people using Autoconf 2.60.  If you want to
55777         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55778         (or m4/onceonly.m4, if pre-2.57) manually.
55779
55780 2006-07-08  Jim Meyering  <jim@meyering.net>
55781
55782         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55783         comment.
55784         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55785         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55786         comment.
55787
55788 2006-07-08  Jim Meyering  <jim@meyering.net>
55789
55790         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55791
55792 2006-07-07  Simon Josefsson  <jas@extundo.com>
55793
55794         * tests/test-crc.c: Change expected crc value, the test vector
55795         were probably computed using the old broken crc.c?
55796
55797 2006-07-06  Simon Josefsson  <jas@extundo.com>
55798
55799         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55800         now the canonical place for the M4 file).
55801
55802         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55803         from the sys_socket dependency now.
55804
55805         * modules/inet_pton (Files): Ditto.
55806
55807         * modules/inet_ntop (Files): Ditto.
55808
55809 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55810
55811         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55812         not gl_PREREQ_GETUSERSHELL.
55813
55814 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55815
55816         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55817         with only one argument, for Autoconf 2.60.
55818         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55819         expand to nothing, so add a shell command to avoid syntax error.
55820         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55821
55822 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55823
55824         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55825
55826 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55827
55828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55829         no longer needed.  Check for isblank decl.
55830         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55831         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55832         of existence.
55833
55834 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55835
55836         * lib/getloadavg.c: Use __VMS, not VMS.
55837         * lib/getopt.c: Likewise.
55838         * lib/getpagesize.h: Likewise.
55839         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55840         and probably does not work.
55841
55842 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55843
55844         * lib/.cppi-disable: Add wcwidth.
55845         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55846         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55847         (ISGRAPH): Remove.  All uses changed to isgraph.
55848         (FOLD) [!defined _LIBC]: Remove special case.
55849         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55850         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55851         HAVE_ISBLANK.
55852         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55853         case.
55854
55855 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55856
55857         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55858         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55859         brackets.  Other minor changes to suppress some compiler
55860         warnings.
55861
55862 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55863         and Paul Eggert  <eggert@cs.ucla.edu>
55864
55865         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55866         of invoking obsolescent AC_HEADER_DIRENT macro.
55867         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55868         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55869         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55870         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55871         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55872         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55873         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55874         * m4/readdir.m4: Remove; no longer needed.
55875
55876 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55877         and Paul Eggert  <eggert@cs.ucla.edu>
55878
55879         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55880         Don't worry about this obsolete case any more.
55881         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55882         directories.
55883         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55884         worry about this obsolete case any more.
55885         * lib/fts.c: Likewise.
55886         * lib/getcwd.c: Likewise.
55887         * lib/glob.h: Likewise.
55888         * lib/savedir.c: Likewise.
55889
55890 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55893         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55894         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55895         needed.
55896         All uses removed.
55897         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55898         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55899         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55900         needed.
55901         * m4/getdate.m4 (gl_GETDATE): Likewise.
55902         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55903         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55904         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55905         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55906         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55907         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55908         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55909         needed.
55910
55911 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55912
55913         * lib/memcasecmp.c: Include <limits.h>.
55914         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55915         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55916         Don't assume isdigit succeeds only on '0' through '9'.
55917
55918 2006-07-05  Eric Blake  <ebb9@byu.net>
55919
55920         * modules/getaddrinfo (Depends-on): Add snprintf.
55921
55922 2006-07-05  Eric Blake  <ebb9@byu.net>
55923
55924         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55925         to avoid 'header present but could not be compiled' on cygwin.
55926
55927 2006-07-05  Eric Blake  <ebb9@byu.net>
55928
55929         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55930         missing from netdb.h.
55931         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55932
55933 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55934
55935         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55936         no longer needed.
55937         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55938         * m4/getdate.m4 (gl_GETDATE): Likewise.
55939         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55940         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55941         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55942         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55943         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55944
55945 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55946
55947         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55948         All uses of is_space replaced by isspace.
55949         * lib/exit.h: Don't talk about STDC_HEADERS.
55950         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55951         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55952         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55953         replaced by isprint etc.
55954         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55955         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55956         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55957         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55958         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55959         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55960
55961 2006-07-05  Bruno Haible  <bruno@clisp.org>
55962
55963         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55964         the function exists, before testing against AIX.
55965         Reported by Martin Lambers <marlam@marlam.de>.
55966
55967 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55968
55969         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55970         From Mark D. Baushke.
55971
55972 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55973
55974         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55975         to the absolute name, not just one, to bypass Sun C 5.8's
55976         "warning: #include of /usr/include/... may be non-portable".
55977
55978 2006-07-04  Eric Blake  <ebb9@byu.net>
55979
55980         * modules/dirname-tests: New test module.
55981         * tests/test-dirname.c: New file, replacing dirname.c
55982         TEST_DIRNAME section that was recently deleted.
55983
55984 2006-07-04  Bruno Haible  <bruno@clisp.org>
55985
55986         Assume ANSI C header files and <ctype.h> functions.
55987         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55988         (mbsnwidth): Use isprint, iscntrl instead.
55989
55990 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55991
55992         Merge from coreutils.
55993         * MODULES.html.sh: Add xstrtold.
55994         * modules/xstrtold: New file.
55995         * modules/cycle-check (Files): Add lib/same-inode.h.
55996         * modules/dirname (Files): Add m4/double-slash-root.m4.
55997         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55998         * modules/mkdir-p (Files): Add lib/same-inode.h.
55999         * modules/same (Files): Add lib/same-inode.h.
56000
56001 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56002
56003         * m4/absolute-header.m4: Renamed from full-header-path.m4.
56004         This is to keep the terminology clean; POSIX talks about
56005         "absolute pathnames", not "full pathnames", but the GNU
56006         Coding Standards say to use "path" for something else;
56007         so use "absolute" to keep both sides happy.
56008         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
56009         Set gl_absolute_header, not gl_full_header_path.
56010         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
56011         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
56012         All uses changed.
56013
56014         Merge from coreutils.
56015
56016         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
56019         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
56020         want to require the building of c-strtod.o.
56021         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
56022         needs -lm directly.
56023         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56024
56025         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
56028         --as-needed option if available.  Problem reported by Albert Chin in
56029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
56030         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
56031         cc merely issues a bunch of annoying warnings for --as-needed
56032         (this problem was reported by Bob Proulx).  Also, try linking with
56033         -lm to detect a bug in binutils 2.16 (this problem was reported
56034         by Ralf Wildenhues).
56035
56036         2006-06-18  Jim Meyering  <jim@meyering.net>
56037
56038         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
56039         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
56040         macro.
56041         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
56042         also check for glibc-2.4's abort-inducing bug.
56043
56044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
56045         Low-probability clean-up should be to use rmdir to get rid of
56046         the just-created directory, not unlink.
56047
56048         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
56049         configure fail, and request a bug report to inform us about it.
56050         Add a comment that, barring reports to the contrary, in 2007 we'll
56051         assume ftruncate is universally available.
56052
56053         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56054
56055         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
56056
56057         2006-03-12  Jim Meyering  <jim@meyering.net>
56058
56059         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
56060         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
56061         * m4/same.m4 (gl_SAME): Likewise.
56062         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
56063
56064         2006-03-11  Eric Blake  <ebb9@byu.net>
56065
56066         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
56067         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
56068         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
56069         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
56070
56071 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56072
56073         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
56074         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56075         reported by Mark D. Baushke, one in
56076         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56077
56078         Merge from coreutils.
56079
56080         * lib/.cppi-disable: Add stdint_.h.
56081         * lib/.cvsignore: Add stdint.h.
56082
56083         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56084
56085         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56086         both double and long double versions.
56087         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56088         * lib/xstrtold.c: New file.
56089         * lib/xstrtod.h (xstrtold): New decl.
56090
56091         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56092
56093         * lib/filemode.c (setst): Remove.
56094         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56095         (arguably) clearer, and the generated code is a bit smaller on my
56096         Debian GNU/Linux stable x86 host.
56097
56098         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56099
56100         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56101         Assume that filemode.h includes sys/types.h and sys/stat.h.
56102         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56103         (ftypelet): Reorder to put common cases first, for efficiency.
56104         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56105         to do 'M'.
56106         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56107         of 10, for compatibility with FreeBSD.  All callers changed.
56108         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56109         types that can't be deduced solely from st_mode.  First arg is now a
56110         const pointer.
56111         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56112         (strmode): Renamed from mode_string.
56113         (filemodestring): New decl.
56114         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56115         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56116         needed.
56117         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56118
56119         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56120
56121         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56122         fsusage.h now does that.  Include fsusage.h first, to test interface.
56123         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56124         at most one method (the old code could have generated decls that
56125         didn't conform to C89, not that this was ever exercised).
56126         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56127
56128         2006-03-19  Jim Meyering  <jim@meyering.net>
56129
56130         Work even in a chroot where d_ino values for entries in "/"
56131         don't match the stat.st_ino values for the same names.
56132         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
56133         number, iterate through all entries again, using lstat instead.
56134         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
56135         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
56136
56137         * lib/getcwd.c (__getcwd): Clarify a comment.
56138         Use memcpy in place of a call to strcpy.
56139
56140         2006-03-12  Jim Meyering  <jim@meyering.net>
56141
56142         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
56143         matches that of the current directory (which we're about to chdir ".."
56144         out of), then save the dev-ino of the parent, instead.
56145
56146         * lib/same-inode.h (SAME_INODE): New file/macro.
56147         * lib/chdir-safer.c (SAME_INODE): Remove definition.
56148         Include "same-inode.h", instead.
56149         * lib/same.c: Likewise.
56150         * lib/cycle-check.h: Include "same-inode.h".
56151         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
56152         * lib/cycle-check.c (SAME_INODE): Remove definition.
56153         * lib/root-dev-ino.h: Include "same-inode.h".
56154
56155         2006-03-11  Eric Blake  <ebb9@byu.net>
56156
56157         * lib/same.c (same_name): s/base_name/last_component/
56158         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
56159         * lib/filenamecat.c (file_name_concat): Likewise.
56160
56161         2006-03-11  Eric Blake  <ebb9@byu.net>,
56162                     Paul Eggert  <eggert@cs.ucla.edu>
56163
56164         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
56165         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
56166         drive prefix.
56167         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
56168         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
56169         (last_component): New method.
56170         * lib/dirname.c (dir_len): Determine when drive letters need a
56171         subsequent slash.  Preserve // when it is special.
56172         (dir_name): Don't append dot when drive letter is absolute.
56173         [TEST_DIRNAME]: Move into a full-blown gnulib test.
56174         * lib/basename.c (base_name): New semantics - malloc the result.
56175         Preserve // when it is special.  Preserve relative files that look
56176         like drive letters.
56177         (base_len): Preserve // when it is special.
56178         (last_component): New method, similar to old base_name semantics.
56179         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
56180         base_name.  Strip redundant slashes from ///.
56181
56182 2006-07-03  Jim Meyering  <jim@meyering.net>
56183
56184         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
56185         macro is used before the first cycle_check call.
56186
56187 2006-07-03  Eric Blake  <ebb9@byu.net>
56188
56189         * modules/dirname (Depends-on): Add xstrndup.
56190
56191 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56192
56193         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
56194         test cases, so that config.log is a bit easier to follow.
56195
56196 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56197
56198         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
56199         both are 64 bits, since this seems to be the tradition, and this
56200         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
56201         we ever run into a host that prefers long long to long in this
56202         case, we'll need another configure-time test.  Problem reported by
56203         Jim Meyering.
56204
56205 2006-07-02  Eric Blake  <ebb9@byu.net>
56206
56207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
56208
56209 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56210
56211         * modules/inttypes (Depends-on): No longer depends on stdint.
56212         * modules/stdint (Description): Say more about assumptions.
56213         Say that the fast types might differ.  Say macros are used.
56214         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
56215         (Makefile.am): Revise list of substituted symbols to match
56216         new stdint.m4.
56217         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
56218         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
56219         * tests/test-stdint.c (verify_same_types)
56220         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
56221         the code conforms to C99/C89.
56222         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
56223         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
56224
56225 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
56228         but fix a bug, by requiring at least 64 bits.
56229         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56230         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
56231         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
56232         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
56233
56234         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
56235         changes.  Make 2.59 a prerequisite.  Check and substitute for
56236         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
56237         inttypes.h.  Do not use special include files; just use the
56238         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
56239         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
56240         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
56241         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
56242         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
56243         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
56244         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
56245         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
56246         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
56247         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
56248         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
56249         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
56250         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
56251         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
56252         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
56253         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56254         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56255         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56256         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56257         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56258         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56259         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56260         not check for things that C99 does not require, e.g., int8_t.  If
56261         a test isn't needed unless <stdint.h> isn't working, and is
56262         unlikely to be needed for any other reason, then don't do it
56263         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56264         size_t, since we assume C89 freestanding at least.  Do not check
56265         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56266         the right thing even if the types are not defined.  Instead use:
56267         (gl_STDINT_TYPE_PROPERTIES): New macro.
56268         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56269         testing whether <sys/types.h> clashes, as Autoconf does this for
56270         us now.  All uses removed.
56271         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56272         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56273         (gl_CHECK_TYPE_SAME):
56274         Remove; no longer needed.
56275         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56276         exists, since we'll return 0 anyway in that case.
56277         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56278
56279 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56280
56281         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56282         possible collision with system files.
56283         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56284         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56285         WCHAR_MIN and WCHAR_MAX in this case.
56286         (<stddef.h>): Do not include; no longer needed.
56287         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56288         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56289         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56290         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56291         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56292         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56293         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56294         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56295         !defined(__c99))]: Include in this case too, since it's harmless
56296         now.
56297         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56298         dangerous to do so.
56299         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56300         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56301         (_STDINT_MIN, _STDINT_MAX): New macros.
56302         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56303         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56304         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56305         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56306         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56307         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56308         macros, not typedefs; this simplifies things quite a bit.
56309         Use long int for all types narrower than int64_t.
56310         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56311         Define in terms of long long int or int64_t or long int,
56312         not int64_t or int32_t.  This saves some compile-time testing.
56313         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56314         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56315         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56316         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56317         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56318         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56319         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56320         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56321         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56322         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56323         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56324         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56325         undef any previous version and define our own version, for
56326         simplicity and consistency with the new macros for types.
56327         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56328         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56329         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56330         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56331         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56332         @WINT_T_SUFFIX@ to keep things simple here.
56333         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56334         Simplify by assuming typical 8/16/32/64 host, since we're
56335         already doing that elsewhere anyway.
56336         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56337         and assume long long int is 64 bits if available.  This
56338         speeds up 'configure'.
56339
56340 2006-07-01  Eric Blake  <ebb9@byu.net>
56341
56342         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56343         Reported by Andreas Buening.
56344
56345 2006-07-01  Eric Blake  <ebb9@byu.net>
56346
56347         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56348
56349 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56350
56351         * lib/getaddrinfo.c: fixed typo
56352
56353 2006-06-29  Jim Meyering  <jim@meyering.net>
56354
56355         * modules/strftime (Maintainer): Add my name, since with the
56356         FPRINTFTIME changes strftime.c has forked from glibc.
56357
56358 2006-06-29  Eric Blake  <ebb9@byu.net>
56359
56360         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56361
56362 2006-06-29  Eric Blake  <ebb9@byu.net>
56363
56364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56365
56366 2006-06-29  Eric Blake  <ebb9@byu.net>
56367
56368         * lib/stat_.h: New file.
56369
56370 2006-06-29  Eric Blake  <ebb9@byu.net>
56371
56372         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56373         unused static function.
56374
56375 2006-06-29  Eric Blake  <ebb9@byu.net>
56376
56377         * doc/functions.texi (Function Portability): Document missing lstat
56378         on mingw.
56379
56380 2006-06-29  Eric Blake  <ebb9@byu.net>
56381
56382         * MODULES.html.sh: Add sys_stat.
56383         * modules/sys_stat: New module.
56384         * modules/mkstemp (Depends-on): Add sys_stat.
56385
56386 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56387
56388         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56389
56390 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56391
56392         * m4/c-bs-a.m4: Removed.
56393
56394 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56395
56396         * lib/strftime.c: Assume strftime() exists.
56397
56398 2006-06-29  Derek Price  <derek@ximbiot.com>
56399
56400         * modules/c-bs-a: Removed - \a is C89.
56401         * MODULES.html.sh: Remove c-bs-a.
56402
56403 2006-06-29  Bruno Haible  <bruno@clisp.org>
56404
56405         * modules/wcwidth (License): Change to LGPL.
56406
56407 2006-06-28  Simon Josefsson  <jas@extundo.com>
56408
56409         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56410         on _WIN32.
56411
56412         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56413         getnameinfo.
56414
56415 2006-06-28  Simon Josefsson  <jas@extundo.com>
56416
56417         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56418
56419 2006-06-28  Simon Josefsson  <jas@extundo.com>
56420
56421         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56422         functions there.  It will succeed on Windows XP, but on Windows
56423         2000 and (presumably) earlier, it will fail, and use the internal
56424         re-implementation.
56425         (use_win32_p): New function.
56426         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56427         Support AI_NUMERICSERV to disable getservbyname.
56428         (getnameinfo): New function, only supports
56429         NI_NUMERICHOST|NI_NUMERICSERV for now.
56430
56431         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56432         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56433         getnameinfo.
56434
56435 2006-06-28  Eric Blake  <ebb9@byu.net>
56436
56437         * modules/wcwidth: New file.
56438         * modules/mbchar (Depends-on): Add wcwidth.
56439         * modules/mbswidth (Depends-on): Add wcwidth.
56440         * MODULES.html.sh: Add wcwidth.
56441
56442 2006-06-28  Eric Blake  <ebb9@byu.net>
56443
56444         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56446
56447 2006-06-28  Eric Blake  <ebb9@byu.net>
56448
56449         * lib/xvasprintf.h: Fix comments.
56450
56451 2006-06-28  Eric Blake  <ebb9@byu.net>
56452
56453         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56454         * lib/mbswidth.c (wcwidth): Move from here...
56455         * lib/wcwidth.h: ...to this new file.
56456
56457 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56458
56459         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56460
56461         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56462         it's obsolete.
56463         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56464
56465 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56466
56467         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56468         Autoconf 2.60 says this stuff was obsolete.
56469
56470 2006-06-28  Bruno Haible  <bruno@clisp.org>
56471
56472         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56473
56474 2006-06-28  Bruno Haible  <bruno@clisp.org>
56475
56476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56477         gt_TYPE_WCHAR_T.
56478
56479 2006-06-28  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56482         declaration for wcwidth.
56483         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56484
56485 2006-06-28  Bruno Haible  <bruno@clisp.org>
56486
56487         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56488         (mkdir): Define using _mkdir.
56489
56490 2006-06-28  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/getaddrinfo.h: Fix POSIX URL.
56493         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56494         _WIN32.
56495         (use_win32_p): Make static.
56496         (getaddrinfo): Reject service name if it is empty or does not consist
56497         solely of decimal digits, or if its value is > 65535.
56498         (getnameinfo): Remove useless casts.
56499
56500 2006-06-27  Simon Josefsson  <jas@extundo.com>
56501
56502         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56503         Eggert and Martin Lambers.
56504
56505 2006-06-27  Simon Josefsson  <jas@extundo.com>
56506
56507         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56508         Eggert and Martin Lambers.
56509
56510 2006-06-27  Bruno Haible  <bruno@clisp.org>
56511
56512         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56513         result to 0, not to empty.
56514         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56515
56516 2006-06-27  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56519
56520 2006-06-26  Simon Josefsson  <jas@extundo.com>
56521
56522         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56523         present.
56524
56525 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56526
56527         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56528         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56530
56531 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56532
56533         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56534
56535 2006-06-26  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56538
56539 2006-06-26  Bruno Haible  <bruno@clisp.org>
56540
56541         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56542
56543 2006-06-26  Bruno Haible  <bruno@clisp.org>
56544
56545         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56546         SGI C compiler in pre-C99 mode.
56547         Suggested by Mark D. Baushke and Larry Jones.
56548
56549 2006-06-26  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56552         WCHAR_MAX.
56553         Reported by Mark D. Baushke and Larry Jones.
56554
56555 2006-06-26  Bruno Haible  <bruno@clisp.org>
56556
56557         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56558         in pre-C99 mode.
56559         Suggested by Mark D. Baushke and Larry Jones.
56560
56561 2006-06-23  Simon Josefsson  <jas@extundo.com>
56562             Bruno Haible  <bruno@clisp.org>
56563
56564         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56565         Emit mostlyclean-local rule.
56566         (func_emit_tests_Makefile_am): Likewise.
56567         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56568
56569 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56570
56571         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56572
56573 2006-06-23  Bruno Haible  <bruno@clisp.org>
56574
56575         * tests/test-stdint.c: Update to match ISO C 99 Technical
56576         Corrigendum 1.
56577
56578 2006-06-23  Bruno Haible  <bruno@clisp.org>
56579
56580         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56581
56582 2006-06-23  Bruno Haible  <bruno@clisp.org>
56583
56584         * lib/stdint_.h: Treat IRIX like OpenBSD.
56585
56586 2006-06-23  Bruno Haible  <bruno@clisp.org>
56587
56588         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56589         ISO C 99 Technical Corrigendum 1.
56590
56591 2006-06-22  Simon Josefsson  <jas@extundo.com>
56592
56593         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56594         MinGW.
56595
56596 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56597
56598         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56599         needed.  Some compiler complained about some of them.  Problem reported
56600         by Larry Jones in
56601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56602
56603 2006-06-21  Simon Josefsson  <jas@extundo.com>
56604
56605         * tests/test-getaddrinfo.c: New file.
56606
56607         * modules/getaddrinfo-tests: New file.
56608
56609         * MODULES.html.sh: Add inet_pton.
56610
56611         * modules/inet_pton: New file.
56612
56613 2006-06-21  Simon Josefsson  <jas@extundo.com>
56614
56615         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56616         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56617         of using the (limited) gnulib implementation on Windows XP.
56618
56619         * m4/inet_pton.m4: New file.
56620
56621 2006-06-21  Simon Josefsson  <jas@extundo.com>
56622
56623         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56624         variable.
56625
56626         * lib/socket_.h: Don't define WINVER.
56627
56628         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56629         slightly modified to work in gnulib.
56630
56631 2006-06-21  Simon Josefsson  <jas@extundo.com>
56632
56633         * doc/gnulib.texi (Windows sockets): Add.
56634
56635 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         * lib/read-file.c (fread_file): Start with buffer allocation of
56638         0 bytes rather than 1 byte; this simplifies the code.
56639         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56640         code to free buffer and save/restore errno.
56641         (internal_read_file): Remove unused local.
56642
56643 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56646         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56647         Problem reported by Denis Excoffier in
56648         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56649
56650 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56651
56652         * modules/sys_socket, modules/socklen: Include sys/types since
56653         FreeBSD 4.x's sys/socket.h needs it.
56654
56655 2006-06-19  Simon Josefsson  <jas@extundo.com>
56656
56657         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56658
56659 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56662
56663 2006-06-19  Bruno Haible  <bruno@clisp.org>
56664
56665         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56666         and FULL_PATH_INTTYPES_H in angle brackets.
56667         Reported by Mark D. Baushke <mdb@gnu.org>.
56668
56669 2006-06-17  Eric Blake  <ebb9@byu.net>
56670
56671         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56672         errno.
56673
56674 2006-06-17  Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56677         <sys/inttypes.h>.
56678
56679 2006-06-17  Bruno Haible  <bruno@clisp.org>
56680
56681         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56682         whether errno is declared. Assume <errno.h> declares errno.
56683
56684 2006-06-17  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56687
56688 2006-06-17  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56691         problem on Solaris 2.5.1.
56692
56693 2006-06-16  Eric Blake  <ebb9@byu.net>
56694
56695         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56696         * lib/unicodeio.c [!defined errno]: Likewise.
56697         * lib/strtol.c [!defined errno]: Likewise.
56698         * lib/strtod.c [!defined errno]: Likewise.
56699
56700 2006-06-15  Eric Blake  <ebb9@byu.net>
56701
56702         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56703
56704 2006-06-15  Eric Blake  <ebb9@byu.net>
56705
56706         * config/srclist.txt (ssize_t.m4): Lose sync.
56707
56708 2006-06-15  Bruno Haible  <bruno@clisp.org>
56709
56710         * modules/stdint (Files): Include m4/full-header-path.m4,
56711         m4/size_max.m4, m4/wchar_t.m4.
56712         (Makefile.am): Many more substitutions.
56713         * modules/stdint-tests: New file.
56714         * tests/test-stdint.c: New file.
56715
56716 2006-06-15  Bruno Haible  <bruno@clisp.org>
56717
56718         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56719         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56720         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56721         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56722         gl_CHECK_TYPE_SAME): New macros.
56723
56724 2006-06-15  Bruno Haible  <bruno@clisp.org>
56725
56726         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56727
56728 2006-06-15  Bruno Haible  <bruno@clisp.org>
56729
56730         * lib/stdint_.h: Rewritten to be fully auto-configured.
56731         Fixes bug on HP-UX/IA64.
56732
56733 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56734
56735         * lib/getdate.y (__attribute__): Don't define if already defined.
56736         Problem reported by Larry Jones.
56737         * lib/utimens.c (__attribute__): Likewise.
56738
56739 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56740
56741         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56742         reported by Andreas Schwab.
56743
56744 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56745             Bruno Haible  <bruno@clisp.org>
56746
56747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56748         check for the declaration of strnlen and a run test that exposes the
56749         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56750         rpl_strndup.
56751
56752 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56753             Bruno Haible  <bruno@clisp.org>
56754
56755         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56756
56757 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56758
56759         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56760         compile test, for Tru64 4.0D.
56761
56762 2006-05-28  Karl Berry  <karl@gnu.org>
56763
56764         * config/srclist.txt (printf-args.c): lose sync.
56765
56766 2006-05-26  Martin Lambers  <marlam@marlam.de>
56767
56768         * lib/getpass.c: Updates the test for the native W32 API, and adds
56769         missing includes, thus fixing compilation warnings.
56770
56771 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56772
56773         * lib/exclude.c (exclude_fnmatch): New function.
56774         (excluded_file_name): Call exclude_fnmatch.
56775         * lib/exclude.h (excluded_file_name): New prototype
56776
56777 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * lib/tempname.c (small_open, large_open): New macros.
56780         (__open, __open64) [!_LIBC]: Remove.
56781         (__gen_tempname): Use small_open and large_open instead of __open
56782         and __open64.  This fixes a portability bug on HP-UX 11.11i
56783         reported by Simon Wing-Tang in
56784         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56785
56786 2006-05-24  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56789         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56790         Reported by Thorsten Maerz <torte@netztorte.de> via
56791         Aaron Stone <aaron@serendipity.cx>.
56792
56793 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56796         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56797         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56798         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56799         not really conditional on the cache.
56800         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56801
56802 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56803
56804         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56805         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56806         (my_usleep): Don't mishandle maximum value.
56807
56808 2006-05-19  Jim Meyering  <jim@meyering.net>
56809
56810         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56811
56812 2006-05-17  Bruno Haible  <bruno@clisp.org>
56813
56814         Cygwin portability.
56815         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56816
56817 2006-05-17  Bruno Haible  <bruno@clisp.org>
56818
56819         * lib/stdint_.h: Fix recognition of Cygwin.
56820
56821 2006-05-15  Bruno Haible  <bruno@clisp.org>
56822
56823         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56824         on libtool patch by Ralf Wildenhues.
56825
56826 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56827
56828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56829         test for C99 conformance; (bool) 0.5 is an integer constant
56830         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56831         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56832
56833 2006-05-11  Simon Josefsson  <jas@extundo.com>
56834
56835         * m4/xvasprintf.m4: Fix obvious typo.
56836
56837 2006-05-11  Jim Meyering  <jim@meyering.net>
56838
56839         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56840         James Lemley.
56841
56842 2006-05-10  Simon Josefsson  <jas@extundo.com>
56843
56844         * lib/md4.c: Typo fix, update copyright years.
56845         (K1, K2): Don't use L because it turn computations into 64-bit on
56846         64-bit platforms.
56847
56848 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56851         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56852         unwanted sign propagation, e.g., on hosts with 64-bit int.
56853         There still are some problems with reeelly weird theoretical hosts
56854         (e.g., 33-bit int) but it's not worth worrying about now.
56855         * lib/sha1.c (rol): Likewise.
56856         (K1, K2, K3, K4): Remove unnecessary L suffix.
56857
56858 2006-05-10  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/des.c: Cast to avoid warnings.
56861
56862 2006-05-09  Bruno Haible  <bruno@clisp.org>
56863
56864         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56865         (Depends-on): Depend also on xsize, stdarg.
56866         (configure.ac): Add gl_XVASPRINTF.
56867
56868 2006-05-09  Bruno Haible  <bruno@clisp.org>
56869
56870         * m4/xvasprintf.m4: New file.
56871
56872 2006-05-09  Bruno Haible  <bruno@clisp.org>
56873
56874         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56875         (EOVERFLOW): Define fallback value.
56876         (xstrcat): New function.
56877         (xvasprintf): Recognize the special case of a string concatenation.
56878
56879 2006-05-08  Eric Blake  <ebb9@byu.net>
56880
56881         * gnulib-tool (func_version): Base copyright year on CVS date.
56882         (func_emit_copyright_notice): New function.
56883         (func_emit_lib_Makefile_am): Use it.
56884         (func_emit_tests_Makefile_am): Likewise.
56885         (func_import): Likewise.
56886
56887 2006-05-08  Bruno Haible  <bruno@clisp.org>
56888
56889         * modules/stdarg: New file.
56890         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56891
56892 2006-05-08  Bruno Haible  <bruno@clisp.org>
56893
56894         * m4/stdarg.m4: New file, from GNU gettext.
56895
56896 2006-05-08  Bruno Haible  <bruno@clisp.org>
56897
56898         * config/srclist.txt (build-aux/config.rpath): different from latest
56899         release.
56900
56901 2006-05-08  Bruno Haible  <bruno@clisp.org>
56902
56903         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56904
56905 2006-05-05  Jim Meyering  <jim@meyering.net>
56906
56907         * m4/warning.m4: New file, derived from bison's file by the same name.
56908
56909 2006-05-03  Bruno Haible  <bruno@clisp.org>
56910
56911         * lib/stdint_.h: Shorter URL.
56912         * lib/inttypes.h: Likewise.
56913
56914 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56915
56916         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56917
56918 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56919
56920         * lib/verify.h: Document the internals better.  Most of this change
56921         was written by Bruno Haible.
56922
56923 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56924
56925         * doc/verify.texi: New file, partly based on a proposal by
56926         Bruno Haible.
56927
56928 2006-05-02  Bruno Haible  <bruno@clisp.org>
56929
56930         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56931         test from here...
56932         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56933
56934 2006-04-29  Bruno Haible  <bruno@clisp.org>
56935
56936         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56937         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56938
56939 2006-04-29  Bruno Haible  <bruno@clisp.org>
56940
56941         * gnulib-tool: Make --update option actually work.
56942
56943 2006-04-29  Bruno Haible  <bruno@clisp.org>
56944
56945         * doc/gcd.texi: New file.
56946         * doc/gnulib.texi: Include it.
56947
56948 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56949
56950         * lib/getdate.y (get_date): When adding relative date, start with the
56951         initial time, not with the result of the first mktime call.
56952
56953 2006-04-25  Bruno Haible  <bruno@clisp.org>
56954
56955         * gnulib-tool (func_import): Output the include directives in three
56956         blocks, sorted separately.
56957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56958
56959 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56960
56961         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56962         to define main with arguments, for C++.  Reported by Eric Blake.
56963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56964         Prefer 'int main ()' to 'int main (void)', for C++.
56965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56966         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56967         for 'main', for C99 and C++.
56968
56969 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56970
56971         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56972         Don't assume that exit status -1 is valid.
56973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56974         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56975         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56976         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56977         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56978         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56979         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56980         functions can be used without declaring them, or that you can
56981         exit with status -1.
56982         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56983
56984 2006-04-24  Karl Berry  <karl@gnu.org>
56985
56986         * config/srclist.txt (longdouble.m4): sync lost.
56987
56988 2006-04-24  Eric Blake  <ebb9@byu.net>
56989
56990         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56991
56992 2006-04-24  Bruno Haible  <bruno@clisp.org>
56993
56994         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56995         poll() implementation in AIX.
56996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56997
56998 2006-04-24  Bruno Haible  <bruno@clisp.org>
56999
57000         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
57001         assigned exactly once.
57002
57003 2006-04-23  Claudio Fontana  <claudio@gnu.org>
57004             Bruno Haible  <bruno@clisp.org>
57005
57006         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
57007         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
57008         for AM_CPPFLAGS.
57009
57010 2006-04-23  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/copy-file: Depend on unistd.
57013         * modules/execute: Likewise.
57014         * modules/fatal-signal: Likewise.
57015         * modules/findprog: Likewise.
57016         * modules/mkdtemp : Likewise.
57017         * modules/pipe: Likewise.
57018         * modules/wait-process: Likewise.
57019
57020 2006-04-23  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
57023         condition was already detected.
57024         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57025
57026 2006-04-23  Bruno Haible  <bruno@clisp.org>
57027
57028         * lib/copy-file.c: Include <unistd.h> unconditionally.
57029         * lib/execute.c: Likewise.
57030         * lib/fatal-signal.c: Likewise.
57031         * lib/findprog.c: Likewise.
57032         * lib/mkdtemp.c: Likewise.
57033         * lib/pipe.h: Likewise.
57034         * lib/pipe.c: Likewise.
57035         * lib/wait-process.h: Likewise.
57036
57037 2006-04-23  Bruno Haible  <bruno@clisp.org>
57038
57039         * gnulib-tool (func_usage): Fix --import description. Document
57040         --update.
57041         (func_import): Create temporary file in a temporary directory, if
57042         --dry-run is specified. Silence errors from 'grep' when there are no
57043         m4 files in $m4dir.
57044         (func_create_testdir): Silence errors from 'grep' when there are no
57045         m4 files in $m4dir.
57046         Reported by Karl Berry <karl@freefriends.org>.
57047
57048 2006-04-20  Bruno Haible  <bruno@clisp.org>
57049
57050         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
57051         one argument, so that the code will be portable to Autoconf 2.60.
57052         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
57053         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57054         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
57055
57056 2006-04-19  Derek Price  <derek@ximbiot.com>
57057             Eric Blake  <ebb9@byu.net>
57058
57059         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
57060         rather than "/full/path.h".  Update comment to match.  Shorten &
57061         generalize m4_translit call via AS_TR_CPP.
57062
57063 2006-04-19  Derek Price  <derek@ximbiot.com>
57064             Eric Blake  <ebb9@byu.net>
57065
57066         * lib/inttypes.h: Correct grammar in comment.
57067
57068 2006-04-18  Derek Price  <derek@ximbiot.com>
57069             Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         * modules/inttypes: New file.
57072         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
57073
57074 2006-04-18  Derek Price  <derek@ximbiot.com>
57075             Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57078         New files.
57079
57080 2006-04-18  Derek Price  <derek@ximbiot.com>
57081             Paul Eggert  <eggert@cs.ucla.edu>
57082
57083         * lib/inttypes.h: New file.
57084         * lib/strtoimax.c: Assume <inttypes.h>.
57085
57086 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57089         isn't mounted.  Problem reported by Kir Kolyshkin.
57090
57091 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57092
57093         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57094         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57095         Derek R. Price.
57096         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57097         implementation.
57098
57099 2006-04-12  Eric Blake  <ebb9@byu.net>
57100
57101         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57102         is now done automatically by the corresponding Autoconf macro.
57103
57104 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57105
57106         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57107         time_r.h.
57108
57109 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57110
57111         Merge regex changes from libc, removing some of our
57112         POSIX-conformance changes that were rejected and redoing them in a
57113         less-intrusive way.
57114
57115         * lib/regcomp.c (re_compile_internal, init_dfa):
57116         Length arg is now size_t, not Idx.  All uses changed.
57117         (peek_token): Forward decl now says internal_function.
57118         (__re_error_msgid, __re_error_msgid_idx):
57119         Now static rather than extern with attribute_hidden.
57120         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57121         For some reason libc prefers K&R style defns for external functions.
57122         (regerror) [!defined _LIBC]: Likewise.
57123         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57124         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57125         (build_range_exp, build_collating_symbol):
57126         Use K&R-style defn.
57127         (re_compile_fastmap): Use '\0' to memset, not 0.
57128         (utf8_sb_map): Make the calculations more obvious.
57129         (init_dfa, parse_bracket_exp, build_charclass_op):
57130         Call calloc and cast result, as glibc does.
57131         (init_word_char, fetch_token, peek_token, peek_token_bracket):
57132         (build_range_exp, build_collating_symbol):
57133         Now internal functions.
57134
57135         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
57136
57137         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
57138         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
57139         Don't depend on VMS; depend on __VMS instead, for POSIX
57140         namespace cleanness.
57141         (regoff_t): Define to ssize_t, not long int.
57142
57143         Remove the REG_ macros named below.  Instead, make the old names
57144         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
57145         __USE_GNU_REGEX.
57146         (REG_BACKSLASH_ESCAPE_IN_LISTS):
57147         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
57148         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
57149         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
57150         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
57151         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
57152         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
57153         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
57154         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
57155         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
57156         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
57157         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
57158         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
57159         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
57160         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
57161         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
57162         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
57163         (REG_NREGS):
57164         Remove.  All uses replaced by the old RE_* names.
57165         (RE_BACKSLASH_ESCAPE_IN_LISTS):
57166         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
57167         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
57168         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
57169         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
57170         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
57171         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
57172         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
57173         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
57174         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
57175         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
57176         Don't bother having these macros be independent of each others'
57177         values, since they no longer exist in the POSIX name space.
57178
57179         Rename the following member names back to their old names,
57180         unless !__USE_GNU_REGEX.  All uses changed back.
57181         (buffer): Renamed from re_buffer.
57182         (allocated): Renamed from re_allocated.
57183         (used): Renamed from re_used.
57184         (syntax): Renamed from re_syntax.
57185         (fastmap): Renamed from re_fastmap.
57186         (translate): Renamed from re_translate.
57187         (can_be_null): Renamed from re_can_be_null.
57188         (regs_allocated): Renamed from re_regs_allocated.
57189         (fastmap_accurate): Renamed from re_fastmap_accurate.
57190         (no_sub): Renamed from re_no_sub.
57191         (not_bol): Renamed from re_not_bol.
57192         (not_eol): Renamed from re_not_eol.
57193         (newline_anchor): Renamed from re_newline_anchor.
57194         (num_regs): Renamed from rm_num_regs.
57195         (start): Renamed from rm_start.
57196         (end): Renamed from rm_end.
57197
57198         (free_state): Move up a bit.
57199
57200         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
57201         #define to be empty.
57202         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
57203         when that is what is intended.
57204         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
57205         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
57206         (MAX): New macro.
57207         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
57208         All uses changed back to re_malloc, etc.  It's now the caller's
57209         responsibility to check for overflow; all callers changed.
57210         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
57211         (re_x2nrealloc): Remove.
57212         (free_state): Remove decl.
57213
57214         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
57215         (re_set_registers, re_exec):
57216         Use K&R-style defn.
57217
57218         2006-01-31  Roland McGrath  <roland@redhat.com>
57219
57220         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
57221         Reported by Mike Frysinger <vapier@gentoo.org>.
57222
57223         2006-01-15  Andreas Jaeger  <aj@suse.de>
57224
57225         [BZ #1950]
57226         * lib/regex_internal.c (re_string_reconstruct): Adjust for
57227         build_wcs_upper_buffer change.
57228         (build_wcs_upper_buffer): Change return type.
57229
57230         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
57231
57232         * lib/regex_internal.h: Include <stdint.h> if available.
57233
57234         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
57235
57236         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
57237
57238         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57239
57240         * lib/regcomp.c: Adjust for changed secondary hash function.
57241
57242         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
57243
57244         * lib/regex.h: Pretty printing.
57245         Clean up namespace a bit.
57246
57247         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
57248
57249         * lib/regexec.c (update_cur_sifted_state, check_arrival,
57250         check_arrival_add_next_nodes): Avoid using uninitialized variable.
57251
57252         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57253                     Ulrich Drepper  <drepper@redhat.com>
57254
57255         [BZ #1302]
57256         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57257         changed.
57258         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57259
57260         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57261
57262         [BZ #281]
57263         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57264         * lib/regcomp.c: Remove unnecessary uses of
57265         unsigned RE_TRANSLATE_TYPE.
57266         * lib/regex_internal.h: Likewise.
57267         * lib/regex_internal.c: Likewise.
57268         * lib/regexec.c: Likewise.
57269         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57270
57271         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57272
57273         * lib/regexec.c (find_recover_state): Remove unnecessary
57274         initialization.
57275         (transit_state_bkref): Make DFA a const pointer.
57276         (get_subexp): Likewise.
57277         (check_arrival): Likewise.
57278         (update_cur_sifted_state): Likewise.
57279         (re_search_internal): Likewise.
57280         (prune_impossible_nodes): Likewise.
57281         (acquire_init_state_context): Likewise.
57282         (proceed_next_node): Likewise.
57283         (set_regs): Likewise.
57284         (free_fail_stack_return): Likewise.
57285         (check_arrival_expand_ecl): Mark DFA parameter as const.
57286         (check_arrival_expand_ecl_sub): Likewise.
57287         (check_subexp_limits): Likewise.
57288         (sub_epsilon_src_nodes):  Likewise.
57289         (add_epsilon_src_nodes):  Likewise.
57290         (merge_state_array): Likewise.
57291         (update_regs): Likewise.
57292         (build_trtable): Likewise.
57293         (sift_states_backward): Mark MCTX parameter as const.
57294         (build_sifted_states): Likewise.
57295         (update_cur_sifted_state): Likewise.
57296         (sift_states_mkref): Likewise.
57297         (check_arrival_expand_ecl): Mark eclosure as const.
57298         (check_dst_limits_calc_pos_1): Likewise.
57299         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57300         pointer.
57301
57302         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57303
57304         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57305         (transit_state_sb): Likewise.
57306         (transit_state_mb): Likewise.
57307         (sift_states_iter_mb): Likewise.
57308         (check_arrival_add_next_nodes): Likewise.
57309         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57310         [_LIBC] (re_search_2_stub): Use mempcpy.
57311
57312         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57313         mbrtowc for very simple UTF-8 case.
57314
57315         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57316         a pointer-to-const.
57317         (re_acquire_state_context): Likewise.
57318         * lib/regex_internal.h: Adjust prototypes.
57319
57320         * lib/regex.c: Prevent using C++ compilers.
57321
57322         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57323         (re_acquire_state_context): Likewise.
57324
57325 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57326
57327         * modules/regex (Depends-on): Add ssize_t.
57328
57329 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57330
57331         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57332         translation table.
57333
57334 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57337
57338 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57339             Bruno Haible  <bruno@clisp.org>
57340
57341         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57342         <sys/types.h> and <inttypes.h>.
57343
57344 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57345
57346         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57347         `__error_t_defined', so argp.h will not typedef the former.
57348
57349 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57350
57351         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57352         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57353         glibc names.  Even if glibc is changed to conform to POSIX, the
57354         traditional names will be available anyway, since regex depends on
57355         the extensions module.  Also, fix a longstanding typo in the
57356         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57357         reported by Emanuele Giaquinta.  Also, change sense of cached
57358         variable, so that the message makes sense.
57359
57360 2006-03-24  Simon Josefsson  <jas@extundo.com>
57361
57362         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57363         including some doc fixes.
57364         (base64_encode_alloc): Fix +1 bug on allocation failures.
57365
57366 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57367
57368         * lib/base64.c (base64_encode): Do not read past end of array with
57369         unsanitized input on systems with CHAR_BIT > 8.
57370
57371 2006-03-24  Eric Blake  <ebb9@byu.net>
57372
57373         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57374
57375 2006-03-22  Karl Berry  <karl@gnu.org>
57376
57377         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57378         * config/srclistvars.sh (COREUTILS): new var.
57379
57380 2006-03-17  Jim Meyering  <jim@meyering.net>
57381
57382         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57383         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57384
57385 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57388         no longer needs it.  Instead, check that regoff_t is as least
57389         as wide as ptrdiff_t.
57390
57391         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57392         so that our regex.h stays compatible with the installed regex.
57393         This is helpful for installers who configure --without-included-regex.
57394         Problem reported by Emanuele Giaquinta.
57395
57396 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57399         Typedef to long int, not to off_, as POSIX will likely change
57400         in that direction.
57401
57402 2006-03-15  Eric Blake  <ebb9@byu.net>
57403
57404         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57405
57406 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57407
57408         * lib/argp-help.c (validate_uparams): Fix typo
57409         * lib/argp-parse.c (argp_default_options): Consistently begin help
57410         messages with a lowercase letter.
57411
57412 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57415         overrun buffers and shouldn't be used (much as gets shouldn't be
57416         used).
57417         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57418
57419 2006-03-08  Simon Josefsson  <jas@extundo.com>
57420
57421         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57422         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57423
57424 2006-03-08  Simon Josefsson  <jas@extundo.com>
57425
57426         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57427         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57428
57429 2006-03-08  Simon Josefsson  <jas@extundo.com>
57430
57431         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57432         signal that configure disabled the device.
57433
57434 2006-03-08  Simon Josefsson  <jas@extundo.com>
57435
57436         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57437         languages.
57438
57439 2006-03-07  Simon Josefsson  <jas@extundo.com>
57440
57441         * modules/getopt (Depends-on): Add unistd.
57442
57443         * modules/unistd: New file.
57444
57445 2006-03-07  Simon Josefsson  <jas@extundo.com>
57446
57447         * modules/gc-random: New file.
57448
57449 2006-03-07  Simon Josefsson  <jas@extundo.com>
57450
57451         * m4/unistd_h.m4: New file.
57452
57453 2006-03-07  Simon Josefsson  <jas@extundo.com>
57454
57455         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57456         test to be side-effect free by storing the result in the cache
57457         variable gl_cv_lib_readline, and moving the assignment of
57458         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57459         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57460
57461 2006-03-07  Simon Josefsson  <jas@extundo.com>
57462
57463         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57464         error on missing devices (the functions will return an error).
57465
57466         * m4/gc.m4: Move random stuff to gc-random.m4
57467
57468 2006-03-07  Simon Josefsson  <jas@extundo.com>
57469
57470         * lib/unistd_.h: New file.
57471
57472 2006-03-07  Simon Josefsson  <jas@extundo.com>
57473
57474         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57475
57476 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57479         Problem reported by Juan Manuel Guerrero.
57480
57481 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57484         the unistd module.
57485         * lib/getlogin_r.c: Likewise.
57486         * lib/getlogin_r.h: Likewise.
57487         * lib/glob.c: Likewise.
57488         * lib/pagealign_alloc.c: Likewise.
57489         * lib/unistd_.h: Remove; no longer needed.
57490
57491 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57492
57493         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57494         Add unistd.
57495         * modules/c-stack (Depends-on): Add unistd.
57496         * modules/getlogin_r: Likewise.
57497         * modules/glob: Likewise.
57498         * modules/pagealign_alloc: Likewise.
57499         * modules/unistd (Files): Remove lib/unistd_.h.
57500         (EXTRA_DIST): Remove.
57501         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57502         need unistd_.h.
57503         (MOSTLYCLEANFILES): Remove unistd.h-t.
57504
57505 2006-03-03  Simon Josefsson  <jas@extundo.com>
57506
57507         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57508
57509 2006-03-03  Simon Josefsson  <jas@extundo.com>
57510
57511         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57512         libidn and bison.
57513
57514 2006-03-03  Simon Josefsson  <jas@extundo.com>
57515
57516         * build-aux/maint.mk: Add indent target.
57517
57518 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57519
57520         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57521         our replacement poll.h in any case, to avoid a differing
57522         declaration from a system header.  Seen on AIX.
57523
57524 2006-03-01  Simon Josefsson  <jas@extundo.com>
57525
57526         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57527         <kasal@ucw.cz>.
57528
57529 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         * modules/gettime (Depends-on): Add extensions module.
57532         * modules/nanosleep (Depends-on): Likewise.
57533         * modules/settime (Depends-on): Likewise.
57534
57535 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57538         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57539         pedantically.
57540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57541         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57542
57543         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57544         not "==".  Reported by Ralf Wildenhues.
57545
57546 2006-03-01  Karl Berry  <karl@gnu.org>
57547
57548         * doc/Copyright/request-*: new files, synced from gnuorg.
57549
57550 2006-03-01  Karl Berry  <karl@gnu.org>
57551
57552         * config/srclist.txt (Copyright/*): new entries.
57553
57554 2006-02-28  Simon Josefsson  <jas@extundo.com>
57555
57556         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57557
57558 2006-02-27  Simon Josefsson  <jas@extundo.com>
57559
57560         * lib/base64.h: Indent #define's.  From Jim Meyering
57561         <jim@meyering.net>.
57562
57563 2006-02-27  Jim Meyering  <jim@meyering.net>
57564
57565         Revert the change of 2006-02-24, so these files can continue
57566         to be sync'd from gettext.
57567         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57568         of `config.h'.
57569
57570 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * modules/intprops: New file.
57573         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57574         Add intprops.
57575         * modules/getloadavg (Files): Remove lib/intprops.h.
57576         (Depends-on): Add intprops.
57577         * modules/human: Likewise.
57578         * modules/inttostr: Likewise.
57579         * modules/openat: Likewise.
57580         * modules/sig2str: Likewise.
57581         * modules/userspec: Likewise.
57582         * modules/utimecmp: Likewise.
57583         * modules/xnanosleep: Likewise.
57584         * modules/xstrtol: Likewise.
57585
57586 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57587
57588         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57589         * modules/lock-tests (TESTS): Use $(EXEEXT).
57590         * modules/tls-tests: Likewise.
57591         * modules/argp-tests: Likewise.
57592         (check_PROGRAMS): New var, replacing...
57593         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57594
57595 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57596
57597         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57598         `config.h'.
57599
57600 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57601
57602         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57603
57604 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57605
57606         Sync from coreutils.
57607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57608         gl_CHDIR_SAFER.
57609
57610 2006-02-22  Jim Meyering  <jim@meyering.net>
57611
57612         Sync from coreutils.
57613         * m4/chdir-safer.m4: New file.
57614
57615 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57618         AT_FDCWD exceeds INT_MAX.
57619         * lib/openat.h (AT_FDCWD): Likewise.
57620
57621 2006-02-17  Eric Blake  <address@hidden>
57622
57623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57624
57625 2006-02-16  Simon Josefsson  <jas@extundo.com>
57626
57627         * modules/getaddrinfo (Depends-on): Add sys_socket.
57628
57629 2006-02-15  Simon Josefsson  <jas@extundo.com>
57630
57631         * build-aux/maint.mk: Add dsyntax-check rule.
57632
57633 2006-02-15  Eric Blake  <ebb9@byu.net>
57634
57635         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57636         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57637         'present but cannot compile' warnings on cygwin.
57638         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57639         use ws2tcpip.h if sys/socket.h works.
57640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57641         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57642
57643 2006-02-14  Simon Josefsson  <jas@extundo.com>
57644
57645         * modules/maintainer-makefile (Files): Rename.
57646
57647         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57648         and (the local) Makefile.cfg to maint-cfg.mk.
57649
57650         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57651         to the latter.
57652
57653         * modules/maintainer-makefile: New module.
57654
57655         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57656         severaly stripped to make it possible to build it up from scratch
57657         with reliable tests.
57658
57659         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57660         fixes to permit overriding the default actions when configure and
57661         makefile are not available.
57662
57663 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57664
57665         Sync from coreutils.
57666         * modules/lstat (Depends-on): Don't depend on xalloc.
57667         (License): Change from GPL to LGPL, since this is now simply a
57668         replacement for a libc function.
57669
57670 2006-02-14  Jim Meyering  <jim@meyering.net>
57671
57672         Sync from coreutils.
57673
57674         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57675         failure on deficient systems, and simplify gnulib lgpl dependencies.
57676         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57677         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57678
57679         * lib/xalloc-die.c: Remove unused definition of N_.
57680
57681 2006-02-14  Jim Meyering  <jim@meyering.net>
57682
57683         Sync from coreutils.
57684         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57685         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57686         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57687         double-quote uses of that variable, to accommodate the rare case in
57688         which getmntent is available in none of the libraries checked.  This
57689         happens at least on FreeBSD 5.0.
57690
57691 2006-02-13  Simon Josefsson  <jas@extundo.com>
57692
57693         * gnulib-tool (Usage): Fix --import, from
57694         karl@freefriends.org (Karl Berry).
57695
57696 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57697
57698         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57699
57700 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57701
57702         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57703         "autoupdate" on 2005-12-12.
57704
57705 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57706
57707         * modules/closeout (Depends-on): Remove atexit.
57708
57709 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57710
57711         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57712         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57713
57714 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57715
57716         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57717         __EXTENSIONS__ if this causes compilation to fail.  Problem
57718         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57719         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57720
57721 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57722
57723         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57724         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57725         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57726         All uses changed.
57727
57728 2006-01-26  Simon Josefsson  <jas@extundo.com>
57729
57730         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57731         prototype is visible on mingw32.
57732
57733         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57734         for mingw32.
57735
57736         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57737         mingw32).
57738
57739 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57742         attempt to open for write; this always fails, at least on POSIX
57743         hosts.  This reinstates the 2006-01-09 change, which was
57744         inadvertently removed.
57745
57746 2006-01-26  Bruno Haible  <bruno@clisp.org>
57747
57748         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57749         Reported by Paul Eggert.
57750
57751 2006-01-26  Bruno Haible  <bruno@clisp.org>
57752             Paul Eggert  <eggert@cs.ucla.edu>
57753
57754         * lib/stdbool_.h (_Bool)
57755         [(! (defined __cplusplus || defined __BEOS__)
57756           && !defined __GNUC__
57757           && !(defined __HP_cc || defined __xlc__
57758                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57759                || defined __sgi))]:
57760         #define to signed char in these cases too; this simplifies
57761         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57762         etc., separately) and makes it more conservative.
57763
57764 2006-01-25  Simon Josefsson  <jas@extundo.com>
57765
57766         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57767         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57768         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57769
57770 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57771
57772         * lib/argp-namefrob.h: Bugfix. Remove stray #
57773
57774 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57777         so that we test the test.
57778         Check for yet another HP-UX cc bug involving *bool |= bool.
57779
57780 2006-01-25  Karl Berry  <karl@gnu.org>
57781
57782         * config/srclist.txt (vasnprintf.c): sync lost.
57783
57784 2006-01-25  Jim Meyering  <jim@meyering.net>
57785
57786         Sync from the stable (b5) branch of coreutils:
57787
57788         * lib/fts.c (fts_children): Don't let close() clobber errno from
57789         failed fchdir().
57790
57791         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57792         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57793         a dangling symlink.  That can also happen at least for ELOOP.
57794         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57795         FYI, this bug predates the inclusion of fts.c in coreutils.
57796
57797         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57798         in their own block, so pre-c99 compilers don't object.
57799
57800         Avoid the double-free (first in fts_read, second in fts_close) that
57801         would occur when an `active' directory is made inaccessible (e.g.,
57802         via chmod a-x) during a traversal.
57803         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57804         before returning.  Reproduce this failure by
57805         mkdir -p a/b; cd a; chmod a-x . b
57806         Reported by Stavros Passas.
57807
57808 2006-01-25  Jim Meyering  <jim@meyering.net>
57809
57810         * lib/fileblocks.c: Remove more useless parentheses.
57811         * lib/readutmp.h: Likewise.
57812
57813 2006-01-25  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57816         warnings.
57817         Reported by Paul Eggert.
57818
57819 2006-01-25  Bruno Haible  <bruno@clisp.org>
57820
57821         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57822         rid of a trap command. For Solaris sh.
57823         Reported by Mark D. Baushke <mdb@gnu.org>.
57824
57825 2006-01-24  Simon Josefsson  <jas@extundo.com>
57826
57827         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57828         Bruno.
57829
57830 2006-01-24  Karl Berry  <karl@gnu.org>
57831
57832         * config/srclist.txt (argp-namefrob.h): sync lost.
57833
57834 2006-01-24  Jim Meyering  <jim@meyering.net>
57835
57836         * modules/openat (Files): Add lib/intprops.h.
57837         From Mark D. Baushke.
57838
57839 2006-01-24  Jim Meyering  <jim@meyering.net>
57840
57841         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57842         Reported by Mark D. Baushke.
57843
57844 2006-01-24  Jim Meyering  <jim@meyering.net>
57845
57846         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57847
57848 2006-01-24  Bruno Haible  <bruno@clisp.org>
57849
57850         * modules/strnlen (Maintainer): Change from glibc to all.
57851
57852 2006-01-24  Bruno Haible  <bruno@clisp.org>
57853
57854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57855         Patch by Paul Eggert.
57856
57857 2006-01-24  Bruno Haible  <bruno@clisp.org>
57858
57859         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57860         already has it.
57861         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57862         2005-11-26.
57863
57864         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57865         'signed char' to avoid problems with the built-in _Bool type.
57866         Reported by Paul Eggert on 2005-11-26.
57867
57868 2006-01-24  Bruno Haible  <bruno@clisp.org>
57869
57870         * gnulib-tool (func_import): Avoid constructing complicated sed
57871         expressions inside backquote.
57872         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57873
57874 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57875
57876         These changes imported from libc.
57877         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57878         test and two separate function calls.
57879         * lib/strndup.c (__strndup): Add libc_hidden_def.
57880
57881 2006-01-23  Simon Josefsson  <jas@extundo.com>
57882
57883         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57884         Remove the test_*_SOURCES variable: automake infers it by default.
57885         * modules/tls-tests: Likewise.
57886
57887 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         Work around porting bugs reported by Dieter in
57890         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57891         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57892         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57893         Include "getopt.h" first, to check interface.
57894         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57895         !HAVE_DECL_GETENV.
57896         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57897         (__strndup): Revert to K&R-style function dfns, the glibc style.
57898         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57899         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57900         Include strnlen.h first, to get prototype properly.
57901         (strnlen): Renamed from __strnlen.
57902         Remove weak alias.
57903
57904 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57905
57906         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57907
57908 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * config/srclist.txt: Adjust to reflect glibc reorganization.
57911         This affects only comments.
57912
57913 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57914
57915          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57916          Reported by Bruce Korb <bkorb@gnu.org>.
57917
57918 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57921         to pacify gcc -Wswitch-default.
57922
57923 2006-01-22  Bruno Haible  <bruno@clisp.org>
57924
57925         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57926         temporary buffer for sprintf, take into account the precision also
57927         for 'd', 'i', 'u', 'o', 'x', 'X'.
57928
57929 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57930
57931         * modules/argp-tests: New module
57932         * tests/test-argp.c: New file
57933         * tests/test-argp-2.sh: New file
57934
57935 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57936
57937         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57938         (__argp_base_name): Removed
57939         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57940         typo.
57941         (__argp_base_name): Provide macro definition or extern declaration
57942         depending on the configuration
57943
57944 2006-01-20  Simon Josefsson  <jas@extundo.com>
57945
57946         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57947
57948 2006-01-20  Simon Josefsson  <jas@extundo.com>
57949
57950         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57951
57952 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57955         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57956         Suggested by Bruno Haible.
57957
57958 2006-01-20  Karl Berry  <karl@gnu.org>
57959
57960         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57961         until changes propagate, I guess.
57962
57963 2006-01-19  Simon Josefsson  <jas@extundo.com>
57964
57965         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57966
57967 2006-01-19  Simon Josefsson  <jas@extundo.com>
57968
57969         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57970
57971 2006-01-19  Simon Josefsson  <jas@extundo.com>
57972
57973         * gnulib-tool: Set check_PROGRAMS.
57974
57975         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57976         modules/des-tests, modules/gc-arcfour-tests,
57977         modules/gc-arctwo-tests, modules/gc-des-tests,
57978         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57979         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57980         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57981         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57982         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57983         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57984         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57985         test_*_SOURCES.
57986
57987 2006-01-18  Simon Josefsson  <jas@extundo.com>
57988
57989         * modules/socklen (Depends-on): Depend on sys_socket.
57990
57991 2006-01-18  Simon Josefsson  <jas@extundo.com>
57992
57993         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57994         modules/des-tests, modules/gc-arcfour-tests,
57995         modules/gc-arctwo-tests, modules/gc-des-tests,
57996         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57997         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57998         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57999         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58000         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58001         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
58002         $(EXEEXT) to automake TESTS variable, for mingw32.
58003
58004 2006-01-17  Simon Josefsson  <jas@extundo.com>
58005
58006         * modules/socklen (Include): Need sys/socket.h.
58007
58008 2006-01-17  Bruno Haible  <bruno@clisp.org>
58009
58010         * modules/ssize_t (Include): Add <sys/types.h>.
58011
58012 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
58015         it's not portable and it doesn't work with cross-compiles.
58016         Problem reported by Bruno Haible.  Fix missing-$ typo in
58017         'test "gl_cv_ignore_unused_libraries" ...' that prevented
58018         -zignore from being used with Sun's C compiler.
58019
58020 2006-01-12  Simon Josefsson  <jas@extundo.com>
58021
58022         * lib/base64.c: Fix warning, reported by Bruno Haible
58023         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58024
58025 2006-01-12  Bruno Haible  <bruno@clisp.org>
58026
58027         * modules/ldd: New file.
58028         * build-aux/ldd.sh.in: New file.
58029         * MODULES.html.sh (Support for building libraries and executables): Add
58030         ldd.
58031
58032 2006-01-12  Bruno Haible  <bruno@clisp.org>
58033
58034         * m4/ldd.m4: New file.
58035
58036 2006-01-12  Bruno Haible  <bruno@clisp.org>
58037
58038         * gnulib-tool (func_import, func_create_testdir): Don't go into an
58039         endless loop while replacing $auxdir with build-aux.
58040
58041 2006-01-11  Simon Josefsson  <jas@extundo.com>
58042
58043         * lib/stdint_.h (SIZE_MAX): Add missing (.
58044
58045 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         Sync from coreutils.
58048         * lib/md5.c: Fix commentary typos.
58049         (alignof, UNALIGNED_P): No need for a GCC-specific version.
58050         * lib/md5.h (__attribute__): Remove; unused.
58051         * lib/sha1.c: Fix commentary to match md5 better.
58052         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
58053         so that we don't need to worry about alignment.  All uses changed.
58054         This merges the 2005-10-28 md5 change into sha1.
58055
58056 2006-01-11  Jim Meyering  <jim@meyering.net>
58057
58058         Sync from coreutils.
58059         * lib/md5.c (OP): Fix spacing.
58060
58061 2006-01-11  Bruno Haible  <bruno@clisp.org>
58062
58063         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58064         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
58065         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
58066
58067 2006-01-11  Bruno Haible  <bruno@clisp.org>
58068
58069         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58070         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
58071         the "early" section as well.
58072
58073 2006-01-11  Bruno Haible  <bruno@clisp.org>
58074
58075         Avoid "ar: no archive members specified" error on MacOS X.
58076         * gnulib-tool (func_modules_add_dummy): New function.
58077         (func_import, func_create_testdir): Invoke it.
58078
58079 2006-01-11  Bruno Haible  <bruno@clisp.org>
58080
58081         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58082         with $auxdir in AC_CONFIG_FILES statements.
58083
58084 2006-01-11  Bruno Haible  <bruno@clisp.org>
58085
58086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58087         Initialize also noinst_HEADERS to empty.
58088
58089 2006-01-11  Bruno Haible  <bruno@clisp.org>
58090
58091         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58092         variables.
58093         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58094         autoreconf.
58095
58096 2006-01-11  Bruno Haible  <bruno@clisp.org>
58097
58098         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58099         overridable by the user.
58100         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58101
58102 2006-01-10  Simon Josefsson  <jas@extundo.com>
58103
58104         * modules/sys_socket: New file.
58105
58106 2006-01-10  Simon Josefsson  <jas@extundo.com>
58107
58108         * m4/sys_socket_h.m4: New file.
58109
58110 2006-01-10  Simon Josefsson  <jas@extundo.com>
58111
58112         * lib/socket_.h: New file.
58113
58114 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58115
58116         * modules/readutmp (Maintainer): Add myself.
58117
58118 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58121         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58122         People who are still concerned with buggy memcmp implementations
58123         can invoke gl_FUNC_MEMCMP themselves.
58124
58125 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         * lib/regex_internal.h (BITSET_WORD_BITS):
58128         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58129         preprocessor mishandles large unsigned values as if they were signed.
58130         Problem reported by Claudio Fontana in
58131         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
58132
58133 2006-01-10  Jim Meyering  <jim@meyering.net>
58134
58135         Avoid the double-free (first in fts_read, second in fts_close) that
58136         would occur when an `active' directory is made inaccessible (e.g.,
58137         via chmod a-x) during a traversal.
58138         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58139         before returning.  Reproduce this failure by
58140         mkdir -p a/b; cd a; chmod a-x . b
58141         Reported by Stavros Passas.
58142
58143         Sync from coreutils.
58144         * lib/sha1.c: Tweak grammar in a comment.
58145
58146 2006-01-10  Jim Meyering  <jim@meyering.net>
58147
58148         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
58149         Patch by Joerg Sonnenberger.
58150
58151 2006-01-10  Bruno Haible  <bruno@clisp.org>
58152
58153         * modules/readutmp: Depend on module free.
58154         * modules/strtok_r: Depend on module restrict.
58155
58156 2006-01-10  Bruno Haible  <bruno@clisp.org>
58157
58158         * modules/gettext (configure.ac): Add an invocation of
58159         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
58160
58161 2006-01-10  Bruno Haible  <bruno@clisp.org>
58162
58163         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
58164         Reported by Werner Lemberg <wl@gnu.org>.
58165
58166 2006-01-10  Bruno Haible  <bruno@clisp.org>
58167
58168         * lib/localcharset.c: Update from GNU gettext.
58169
58170 2006-01-10  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/argp.h (__const): Remove macro. Use const instead.
58173         * lib/argp-fmtstream.h (__const): Likewise.
58174         * lib/glob_.h (__const): Remove macro.
58175         * lib/glob-libc.h: Use const instead of __const.
58176
58177 2006-01-10  Bruno Haible  <bruno@clisp.org>
58178
58179         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
58180         variable.
58181         Needed to avoid an automake error regarding the 'gettext' module.
58182
58183 2006-01-09  Simon Josefsson  <jas@extundo.com>
58184
58185         * modules/inet_ntop (Depends-on): Add restrict.
58186
58187 2006-01-09  Simon Josefsson  <jas@extundo.com>
58188
58189         * modules/gc-rijndael-tests (License): Put under LGPL.
58190
58191         * modules/gc-des-tests (License): Likewise.
58192
58193         * modules/gc-arcfour-tests (License): Likewise.
58194
58195         * modules/gc-arctwo-tests (License): Likewise.
58196
58197         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
58198
58199         * modules/gc-hmac-sha1-tests (Files): Likewise.
58200
58201         * modules/gc-hmac-md5-tests (License): Likewise.
58202
58203         * modules/gc-sha1-tests (License): Likewise.
58204
58205         * modules/gc-md5-tests (License): Likewise.
58206
58207         * modules/gc-md4-tests (License): Likewise.
58208
58209         * modules/gc-md2-tests (License): Likewise.
58210
58211         * modules/gc-tests (License): Likewise.
58212
58213         * modules/des-tests (License): Likewise.
58214
58215         * modules/md4-tests (License): Likewise.
58216
58217         * modules/md2-tests (License): Likewise.
58218
58219 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         Sync from coreutils:
58222
58223         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
58224         * modules/lib-ignore: New file.
58225         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
58226         chdir-safer.m4, lchmod.m4.
58227         * modules/openat: Add mkdirat.c, openat-priv.h.
58228
58229 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         Sync from coreutils.
58232         * m4/lib-ignore.m4: New file.
58233         * m4/lchmod.m4: New file.
58234
58235 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58236
58237         Sync from coreutils.
58238         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
58239         for write access: POSIX says that must fail.
58240         * lib/fts.c (diropen): Likewise.
58241         * lib/save-cwd.c (save_cwd): Likewise.
58242         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
58243         well, for minor improvements on hosts that lack O_DIRECTORY.
58244         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
58245         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
58246         Fall back on chown if open failed with EACCES.
58247
58248         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
58249         Report an error at compile-time if only a 1-second nominal clock
58250         resolution is found.
58251
58252         * lib/lchmod.h: New file.
58253         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58254         (make_dir_parents): Use lchown rather than chown, and
58255         lchmod rather than chmod.
58256
58257         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58258         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58259         "proc" reported by n0dalus.
58260
58261         * lib/mountlist.c: Include <limits.h>.
58262         (dev_from_mount_options)
58263         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58264         New function.  It no longer assumes "dev=" has the System V meaning
58265         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58266         (read_file_system_list)
58267         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58268         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58269         dev= in that case.
58270
58271         * lib/posixtm.h (PDS_PRE_2000): New macro.
58272         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58273         allow_century.  All usages changed.  Reject dates outside the range
58274         1969-1999 if PDS_PRE_2000 is used.
58275
58276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58277
58278         Sync from coreutils.
58279         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58280         (Time of day items): Mention the possibility of leap seconds.
58281         Problem reported by Dr. David Alan Gilbert.
58282
58283 2006-01-09  Jim Meyering  <jim@meyering.net>
58284
58285         Sync from coreutils.
58286
58287         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58288
58289         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58290
58291         * lib/modechange.c (mode_compile): Reject an invalid mode string
58292         that starts with an octal digit.  From Andreas Gruenbacher.
58293
58294         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58295         and dup to open_safer and dup_safer, respectively.
58296         (openat_permissive): Fix typo in comment.
58297
58298         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58299         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58300         (_): Remove; no longer needed.
58301         (openat): Renamed from rpl_openat; no need for rpl_openat
58302         since openat.h renames openat for us.
58303         Replace most of the body with a call to openat_permissive,
58304         to avoid duplicate code.
58305         Port to (probably hypothetical) environments were mode_t is
58306         wider than int.
58307         (openat_permissive): Require mode arg, so that we can check
58308         types better.  Put it just after flags.  Change cwd failure
58309         indicator from pointer-to-bool to pointer-to-errno-value.
58310         All callers changed.
58311         Invoke openat_save_fail and/or openat_restore_fail if
58312         cwd_errno is null, so that openat can call us.
58313         (openat_permissive, fdopendir, fstatat, unlinkat):
58314         Simplify errno handling to avoid some duplicate code,
58315         as it's OK to set errno on success.
58316         * lib/openat.h: Revamp code so that function macros depend on
58317         __OPENAT_PREFIX only, not also on AT_FDCWD.
58318         (openat_ro): Remove.  Caller changed to use openat_permissive.
58319         (openat_permissive): Now a macro, if not a function.
58320         (openat_restore_fail, openat_save_fail): Now always functions,
58321         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58322
58323         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58324         and openat.c.
58325         * lib/mkdirat.c: Include openat-priv.h.
58326         Remove definitions of macros defined therein.
58327         * lib/openat.c: Likewise.
58328
58329         * lib/mkdirat.c (mkdirat): New file and function.
58330         * lib/openat.h (mkdirat): Declare.
58331
58332         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58333
58334         * lib/openat.h (openat_permissive): Declare.
58335         (openat_ro): Define.
58336
58337         * lib/openat.c (EXPECTED_ERRNO): New macro.
58338         (openat_permissive): New function -- used in remove.c rewrite.
58339         (all functions): Set errno just before returning, only if there
58340         was an actual failure.
58341         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58342
58343         Emulate openat-family functions using Linux's procfs, if possible.
58344         Idea and some code based on Ulrich Drepper's glibc changes.
58345
58346         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58347         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58348         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58349         before falling back on save_cwd and restore_cwd.
58350         (fdopendir, fstatat, unlinkat): Likewise.
58351
58352         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58353         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58354
58355         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58356         as second argument to va_arg.  Otherwise, some versions of gcc
58357         warn that `if this code is reached, the program will abort'.
58358
58359 2006-01-09  Jim Meyering  <jim@meyering.net>
58360
58361         Sync from coreutils.
58362         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58363         Require openat-priv.h.
58364
58365 2006-01-09  Bruno Haible  <bruno@clisp.org>
58366
58367         * modules/strnlen (Include): Use strnlen.h.
58368
58369 2006-01-09  Bruno Haible  <bruno@clisp.org>
58370
58371         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58372
58373 2006-01-09  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/sysexit_.h (EX_OK): New macro.
58376         Suggested by Martin Lambers <marlam@marlam.de>.
58377
58378 2006-01-09  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58381         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58382
58383 2006-01-09  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58386         numbers.
58387
58388 2006-01-09  Bruno Haible  <bruno@clisp.org>
58389
58390         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58391         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58392         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58393         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58394
58395 2006-01-09  Bruno Haible  <bruno@clisp.org>
58396
58397         * build-aux/javacomp.sh.in: New file, moved from lib/.
58398         * modules/javacomp-script (Files): Update.
58399         (configure.ac): Add AC_CONFIG_FILES invocation.
58400         (EXTRA_DIST): Remove variable.
58401
58402         * build-aux/javaexec.sh.in: New file, moved from lib/.
58403         * modules/javaexec (Files): Update.
58404         (configure.ac): Add AC_CONFIG_FILES invocation.
58405         (EXTRA_DIST): Remove javaexec.sh.in.
58406
58407         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58408         * modules/csharpcomp-script (Files): Update.
58409         (configure.ac): Add AC_CONFIG_FILES invocation.
58410         (EXTRA_DIST): Remove variable.
58411
58412         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58413         * modules/csharpexec (Files): Update.
58414         (configure.ac): Add AC_CONFIG_FILES invocation.
58415         (EXTRA_DIST): Remove csharpexec.sh.in.
58416
58417 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58418
58419         Sync from coreutils.
58420
58421         Add POSIX ACL support
58422         * lib/acl.h (copy_acl, set_acl): Add declarations.
58423         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58424         systems other than Linux.
58425         (chmod_or_fchmod): New function: use fchmod when possible,
58426         and chmod otherwise.
58427         (file_has_acl): Add a POSIX ACL implementation, with a
58428         Linux-specific subcase.
58429         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58430         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58431         acls are unsupported.
58432         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58433         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58434         are unsupported.
58435
58436 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58437
58438         Sync from coreutils.
58439         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58440
58441 2006-01-07  Bruno Haible  <bruno@clisp.org>
58442
58443         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58444         gl_EARLY.
58445
58446 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58447
58448         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58449         Problem reported for Mingw by Mark Junker.
58450
58451 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58452
58453         * README: Gnulib normally doesn't generate a tarball.
58454
58455 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58458         long int, not int, for nanosecond counts, so that people who are
58459         used to POSIX struct timespec won't be surprised.  Reported by Jim
58460         Meyering.
58461
58462 2005-12-28  Bruno Haible  <bruno@clisp.org>
58463
58464         * build-aux/config.rpath: Update from GNU gettext.
58465
58466 2005-12-16  Jim Meyering  <jim@meyering.net>
58467
58468         * modules/fprintftime: New module.
58469         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58470
58471 2005-12-16  Jim Meyering  <jim@meyering.net>
58472
58473         * m4/fprintftime.m4: New file.
58474
58475 2005-12-16  Jim Meyering  <jim@meyering.net>
58476
58477         * lib/fprintftime.c, lib/fprintftime.h: New files.
58478
58479 2005-12-15  Simon Josefsson  <jas@extundo.com>
58480
58481         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58482         new m4/socklen.m4.
58483
58484 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58485
58486         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58487         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58488
58489 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58490
58491         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58492         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58493         struct uparams is valid. Fall back to the default values if it is
58494         not.
58495
58496 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58497
58498         * modules/argp (Files): Add argp-pin.c
58499         (Depends-on): dirname
58500         (lib_SOURCES): Add argp-pin.c
58501
58502 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58503
58504         * m4/argp.m4:  Check if program_invocation_name and
58505         program_invocation_short_name are declared and define appropriate
58506         macros if they are not.
58507
58508 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58509
58510         * lib/argp-help.c (__argp_base_name): New function
58511         (__argp_short_program_name): Rewrite using __argp_base_name
58512         * lib/argp-namefrob.h: Define program_invocation_name and
58513         program_invocation_short_name if requested
58514         (__argp_base_name): Add prototype
58515         * lib/argp-parse.c (argp_def): Use gettext wrappers
58516         (argp_default_parser): Use __argp_base_name
58517         * lib/argp-pin.c: New file. Defines program_invocation_name and
58518         program_invocation_short_name on systems that lack them.
58519
58520 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58523         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58524         porting problem reported by Georg Schwarz in
58525         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58526
58527 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58528
58529         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58530         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58531         porting problem reported by Georg Schwarz in
58532         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58533
58534 2005-12-05  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58537         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58538         Reported by Mark Junker <mjscod@gmx.de>.
58539
58540 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58541
58542         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58543         Use implementation from Albert Chin, with some
58544         comments/corrections by Stepan Kasal and myself.
58545
58546 2005-12-02  Bruno Haible  <bruno@clisp.org>
58547
58548         * gnulib-tool (func_import): Accept GPLed build tool modules when
58549         --lgpl is given.
58550         * modules/csharpcomp-script: New file.
58551         * modules/csharpcomp: Depend on it.
58552         * modules/javacomp-script: New file.
58553         * modules/javacomp: Depend on it.
58554         Suggested by Simon Josefsson.
58555
58556 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58557
58558         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58559         statement, to work around an HP-UX 10.20 compiler bug reported by
58560         Peter O'Gorman.
58561
58562 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         * modules/savedir (Depends-on): Add openat.
58565
58566 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58569         (uintmax_t) [defined uintmax_t]: Do not declare.
58570         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58571         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58572         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58573         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58574         sake of portability to weird hosts that C allows (though we don't
58575         know of any practical examples).
58576
58577         * lib/savedir.h (fdsavedir): New decl.
58578         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58579         contains most of the former guts of savedir.
58580         (savedir): Use savedirstream.
58581         Include "openat.h".
58582
58583 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58584
58585         * modules/obstack (Files): Add m4/ulonglong.m4.
58586         Problem reported by Davide Angelocola.
58587
58588 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58591         coreutils no longer futzes with rounding modes.
58592
58593 2005-11-14  Jim Meyering  <jim@meyering.net>
58594
58595         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58596         replacement of mkstemp.
58597
58598 2005-11-10  Simon Josefsson  <jas@extundo.com>
58599
58600         * lib/readline.c: Remove EOL.
58601
58602 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58603
58604         * modules/gethrxtime (Depends-on): Add gettime.
58605
58606 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58609         or gettimeofday; no longer needed.
58610
58611 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58614         time business.
58615         (gethrxtime) [! (HAVE_NANOUPTIME
58616         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58617         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58618         our own approximation.
58619
58620 2005-11-08  Eric Blake  <ebb9@byu.net>
58621
58622         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58623
58624 2005-11-08  Eric Blake  <ebb9@byu.net>
58625
58626         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58627
58628 2005-11-04  Bruno Haible  <bruno@clisp.org>
58629
58630         * gnulib-tool: Implement --update mode.
58631
58632 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58633
58634         Fix porting problem reported by Theodoros V. Kalamatianos.
58635         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58636         Don't assume that futimes failing means we must fail.
58637
58638 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58641         variables to suggest the intended function of the PATH_MAX check.
58642
58643 2005-10-30  Kean Johnston  <jkj@sco.com>
58644
58645         Trivial changes to support SCO systems.
58646         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58647         as PATH_MAX.
58648         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58649         where __ptr is null when no I/O is pending.
58650
58651 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58654         leave errno alone.  Problem reported by Dmitry V. Levin.
58655
58656 2005-10-28  Simon Josefsson  <jas@extundo.com>
58657
58658         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58659         Test more.
58660
58661         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58662
58663         * modules/md2, modules/md2-tests: New files.
58664
58665 2005-10-28  Simon Josefsson  <jas@extundo.com>
58666
58667         * m4/inet_ntop.m4: More tests.
58668
58669         * m4/gc-md2.m4, md2.m4: New file.
58670
58671 2005-10-28  Simon Josefsson  <jas@extundo.com>
58672
58673         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58674         "restrict" keywords, as per POSIX.  Protect the function
58675         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58676         Don't use K&R prototypes.  Check the sprintf return values.
58677         Re-define EAFNOSUPPORT if not present.  Indent.
58678
58679         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58680         suggested by Bruno Haible <bruno@clisp.org>.
58681
58682         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58683
58684         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58685
58686         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58687         libgcrypt).
58688
58689         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58690
58691         * lib/md2.h, lib/md2.c: New files.
58692
58693 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58696         errno alone.  Problem reported by Frederic Jolliton.
58697
58698 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58699
58700         * modules/verify (License): Change from GPL to LGPL.  This is a
58701         tiny module and there are apparently near-equivalents that are
58702         under the BSD license.
58703
58704 2005-10-24  Simon Josefsson  <jas@extundo.com>
58705
58706         * modules/sha1: Relicense to LGPL.
58707
58708 2005-10-24  Simon Josefsson  <jas@extundo.com>
58709
58710         * lib/md4.h: Shrink buffer size, now that we changed the type.
58711
58712 2005-10-23  Simon Josefsson  <jas@extundo.com>
58713
58714         * gnulib-tool (func_import): Fix --tests-base.
58715
58716 2005-10-22  Simon Josefsson  <jas@extundo.com>
58717
58718         * modules/arcfour (Depends-on): Need stdint.
58719
58720 2005-10-22  Simon Josefsson  <jas@extundo.com>
58721
58722         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58723         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58724
58725 2005-10-22  Simon Josefsson  <jas@extundo.com>
58726
58727         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58728         suggested by Bruno Haible <bruno@clisp.org>.
58729
58730 2005-10-22  Simon Josefsson  <jas@extundo.com>
58731
58732         * lib/crc.h: Include stddef.h, for size_t.
58733
58734 2005-10-22  Simon Josefsson  <jas@extundo.com>
58735
58736         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58737         arcfour_context struct (simplify test vector testing in GNU
58738         Shishi).
58739
58740 2005-10-21  Simon Josefsson  <jas@extundo.com>
58741
58742         * modules/des, modules/des-tests: New files.
58743
58744         * modules/gc-des, modules/gc-des-tests: New files.
58745
58746         * tests/test-des.c, tests/test-gc-des.c: New file.
58747
58748 2005-10-21  Simon Josefsson  <jas@extundo.com>
58749
58750         * modules/arctwo, modules/arctwo-tests: New files.
58751
58752         * tests/test-arctwo.c: New file.
58753
58754         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58755
58756         * tests/test-gc-arctwo.c: New file.
58757
58758 2005-10-21  Simon Josefsson  <jas@extundo.com>
58759
58760         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58761         Bruno Haible <bruno@clisp.org>.
58762
58763         * m4/gc-des.m4: New file.
58764
58765 2005-10-21  Simon Josefsson  <jas@extundo.com>
58766
58767         * m4/arctwo.m4: New file.
58768
58769         * m4/gc-arctwo.m4: New file.
58770
58771 2005-10-21  Simon Josefsson  <jas@extundo.com>
58772
58773         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58774         block.
58775
58776 2005-10-21  Simon Josefsson  <jas@extundo.com>
58777
58778         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58779         <bruno@clisp.org>.
58780
58781         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58782
58783         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58784         Bruno Haible <bruno@clisp.org>.
58785
58786         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58787         <bruno@clisp.org>.
58788
58789 2005-10-21  Simon Josefsson  <jas@extundo.com>
58790
58791         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58792
58793 2005-10-21  Simon Josefsson  <jas@extundo.com>
58794
58795         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58796
58797 2005-10-21  Simon Josefsson  <jas@extundo.com>
58798
58799         * lib/des.h, lib/des.c: New files.
58800
58801         * lib/gc-gnulib.c: Support DES.c
58802
58803 2005-10-21  Simon Josefsson  <jas@extundo.com>
58804
58805         * lib/arctwo.h, lib/arctwo.c: New files.
58806
58807         * lib/gc-gnulib.c: Support ARCTWO.
58808
58809 2005-10-21  Simon Josefsson  <jas@extundo.com>
58810
58811         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58812         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58813
58814 2005-10-21  Simon Josefsson  <jas@extundo.com>
58815
58816         * gnulib-tool (func_import, func_create_testdir): Define automake
58817         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58818         Makefile.am snippet),
58819         suggested by Bruno Haible <bruno@clisp.org>.
58820
58821         * modules/gc (Makefile.am): Use it.
58822
58823 2005-10-21  Bruno Haible  <bruno@clisp.org>
58824
58825         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58826         patch.
58827
58828 2005-10-19  Simon Josefsson  <jas@extundo.com>
58829
58830         * tests/test-gc-rijndael.c: New file.
58831
58832         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58833
58834 2005-10-19  Simon Josefsson  <jas@extundo.com>
58835
58836         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58837         interface too.
58838
58839 2005-10-19  Simon Josefsson  <jas@extundo.com>
58840
58841         * tests/test-gc-arcfour.c: New file.
58842
58843         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58844
58845 2005-10-19  Simon Josefsson  <jas@extundo.com>
58846
58847         * modules/gc-md4, modules/gc-md4-tests: New file.
58848
58849         * tests/test-gc-md4.c: New file.
58850
58851 2005-10-19  Simon Josefsson  <jas@extundo.com>
58852
58853         * m4/gc-md4.m4: New file.
58854
58855 2005-10-19  Simon Josefsson  <jas@extundo.com>
58856
58857         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58858         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58859         <kasal@ucw.cz>.
58860
58861 2005-10-19  Simon Josefsson  <jas@extundo.com>
58862
58863         * m4/gc-arcfour.m4: New file.
58864
58865         * m4/gc-rijndael.m4: New file.
58866
58867 2005-10-19  Simon Josefsson  <jas@extundo.com>
58868
58869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58870
58871 2005-10-19  Simon Josefsson  <jas@extundo.com>
58872
58873         * lib/gc-gnulib.c: Support ARCFOUR.
58874
58875 2005-10-19  Simon Josefsson  <jas@extundo.com>
58876
58877         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58878         support.
58879
58880         * lib/gc.h: Add ECB enum type.
58881
58882         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58883
58884 2005-10-18  Simon Josefsson  <jas@extundo.com>
58885
58886         * tests/test-md5.c: New file.
58887
58888         * modules/md5-tests: New file.
58889
58890 2005-10-18  Simon Josefsson  <jas@extundo.com>
58891
58892         * tests/test-md4.c: New file.
58893
58894         * modules/md4, modules/md4-tests: New files.
58895
58896 2005-10-18  Simon Josefsson  <jas@extundo.com>
58897
58898         * m4/md4.m4: New file.
58899
58900 2005-10-18  Simon Josefsson  <jas@extundo.com>
58901
58902         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58903
58904 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58905
58906         * gnulib-tool (func_create_testdir): Omit the second check whether
58907         BUILT_SOURCES in nonempty.
58908
58909 2005-10-17  Simon Josefsson  <jas@extundo.com>
58910
58911         * tests/test-rijndael.c: New file.
58912
58913 2005-10-17  Simon Josefsson  <jas@extundo.com>
58914
58915         * modules/sha1: Depend on stdint instead of md5.
58916
58917         * modules/md5: Depend on stdint, remove uint32_t.
58918
58919 2005-10-17  Simon Josefsson  <jas@extundo.com>
58920
58921         * modules/gc-sha1-tests: New file.
58922
58923         * tests/test-gc-sha1.c: New file.
58924
58925 2005-10-17  Simon Josefsson  <jas@extundo.com>
58926
58927         * m4/md5.m4: Remove call to uint32_t.m4.
58928
58929 2005-10-17  Simon Josefsson  <jas@extundo.com>
58930
58931         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58932
58933         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58934         md5.h.
58935
58936         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58937
58938         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58939
58940 2005-10-17  Simon Josefsson  <jas@extundo.com>
58941
58942         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58943
58944 2005-10-17  Simon Josefsson  <jas@extundo.com>
58945
58946         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58947
58948 2005-10-17  Simon Josefsson  <jas@extundo.com>
58949
58950         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58951
58952         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58953
58954 2005-10-17  Bruno Haible  <bruno@clisp.org>
58955
58956         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58957         that it can also be used in a test.
58958
58959 2005-10-16  Bruno Haible  <bruno@clisp.org>
58960
58961         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58962         TESTS_ENVIRONMENT, so that individual tests can augment it.
58963
58964         * gnulib-tool (func_create_testdir): Use an intermediate target for
58965         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58966         macros, like $(ALLOCA_H), which cannot be passed through the command
58967         line.
58968
58969 2005-10-15  Simon Josefsson  <jas@extundo.com>
58970
58971         * modules/rijndael-tests: New file.
58972
58973         * modules/rijndael: New file.
58974
58975 2005-10-15  Simon Josefsson  <jas@extundo.com>
58976
58977         * m4/rijndael.m4: New file.
58978
58979 2005-10-15  Simon Josefsson  <jas@extundo.com>
58980
58981         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58982
58983         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58984
58985 2005-10-14  Simon Josefsson  <jas@extundo.com>
58986
58987         * tests/test-arcfour.c: New file.
58988
58989         * modules/arcfour, modules/arcfour-tests: New files.
58990
58991 2005-10-14  Simon Josefsson  <jas@extundo.com>
58992
58993         * m4/arcfour.m4: New file.
58994
58995 2005-10-14  Simon Josefsson  <jas@extundo.com>
58996
58997         * lib/arcfour.h, lib/arcfour.c: New files.
58998
58999 2005-10-14  Roland McGrath  <roland@redhat.com>
59000
59001         Import from libc.  [BZ #1331]
59002         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
59003         macro argument.
59004         Reported by Matej Vela <vela@debian.org>.
59005
59006 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
59009         include <wchar.h>; no longer needed.
59010
59011 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
59014
59015 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
59016         and  Ulrich Drepper  <drepper@redhat.com>
59017
59018         Import from libc.
59019         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
59020         instead of inline stream orientation test and two separate
59021         function calls.  Pay no attention to USE_IN_LIBIO.
59022
59023 2005-10-13  Simon Josefsson  <jas@extundo.com>
59024
59025         * modules/gc-hmac-md5-tests: New file.
59026
59027         * tests/test-gc-hmac-sha1.c: New file.
59028
59029         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
59030
59031         * modules/gc-hmac-md5-tests: New file.
59032
59033         * tests/test-gc-md5.c: New file.
59034
59035         * modules/gc-md5-tests: New file.
59036
59037 2005-10-13  Simon Josefsson  <jas@extundo.com>
59038
59039         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
59040         Move memory allocation outside of loop.
59041
59042 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
59045         intermediate directory is in a read-only file system.  Problem
59046         reported by Eric Blake.
59047
59048 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
59049
59050         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
59051
59052 2005-10-12  Simon Josefsson  <jas@extundo.com>
59053
59054         * tests/test-hmac-sha1.c: New file.
59055
59056         * modules/hmac-sha1-tests: New file.
59057
59058         * modules/hmac-sha1: New file.
59059
59060 2005-10-12  Simon Josefsson  <jas@extundo.com>
59061
59062         * modules/gc-sha1: New file.
59063
59064 2005-10-12  Simon Josefsson  <jas@extundo.com>
59065
59066         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
59067
59068         * tests/test-gc-pbkdf2-sha1.c: New file.
59069
59070 2005-10-12  Simon Josefsson  <jas@extundo.com>
59071
59072         * modules/gc-md5, modules/gc-hmac-md5: New files.
59073
59074         * modules/gc (Files): Remove md5, memxor and hmac files.
59075
59076 2005-10-12  Simon Josefsson  <jas@extundo.com>
59077
59078         * m4/gc-pbkdf2-sha1.m4: New file.
59079
59080         * m4/gc-hmac-sha1.m4: New file.
59081
59082         * m4/gc-sha1: New file.
59083
59084         * m4/hmac-sha1.m4: New file.
59085
59086 2005-10-12  Simon Josefsson  <jas@extundo.com>
59087
59088         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59089
59090         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59091
59092 2005-10-12  Simon Josefsson  <jas@extundo.com>
59093
59094         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59095         suggested by Bruno Haible <bruno@clisp.org>.
59096
59097 2005-10-12  Simon Josefsson  <jas@extundo.com>
59098
59099         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59100
59101 2005-10-12  Simon Josefsson  <jas@extundo.com>
59102
59103         * lib/gc-pbkdf2-sha1.c: New file.
59104
59105         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59106
59107 2005-10-12  Simon Josefsson  <jas@extundo.com>
59108
59109         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59110
59111         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59112
59113 2005-10-12  Simon Josefsson  <jas@extundo.com>
59114
59115         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59116         GC_USE_HMAC_MD5, respectively.
59117
59118         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59119         (gc_md5): Fix typo.
59120
59121         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59122
59123         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59124
59125         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59126
59127 2005-10-12  Bruno Haible  <bruno@clisp.org>
59128
59129         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
59130         Reported by Stepan Kasal <kasal@ucw.cz>.
59131
59132 2005-10-11  Simon Josefsson  <jas@extundo.com>
59133
59134         * tests/test-crc.c: New file.
59135
59136         * modules/crc, modules/crc-tests: New files.
59137
59138 2005-10-11  Simon Josefsson  <jas@extundo.com>
59139
59140         * m4/crc.m4: New file.
59141
59142 2005-10-11  Simon Josefsson  <jas@extundo.com>
59143
59144         * lib/gc.h: Add gc_hash and gc_hash_buffer.
59145
59146         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
59147
59148         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
59149
59150 2005-10-11  Simon Josefsson  <jas@extundo.com>
59151
59152         * lib/crc.h, lib/crc.c: New files.
59153
59154         * lib/gc.h (gc_hash_buffer): Add doc.
59155
59156 2005-10-11  Bruno Haible  <bruno@clisp.org>
59157
59158         * modules/c-strcasestr: New file.
59159         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
59160
59161 2005-10-11  Bruno Haible  <bruno@clisp.org>
59162
59163         * modules/c-strcase: New file.
59164         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
59165
59166 2005-10-11  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/strcasecmp.c: Include limits.h.
59169         (strcasecmp): Avoid integer overflow on exotic platforms.
59170         * lib/strncasecmp.c: Include limits.h.
59171         (strncasecmp): Avoid integer overflow on exotic platforms.
59172         Reported by Paul Eggert.
59173
59174 2005-10-11  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/c-strcasestr.h: New file, from GNU gettext.
59177         * lib/c-strcasestr.c: New file, from GNU gettext.
59178
59179 2005-10-11  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/c-strcase.h: New file, from GNU gettext.
59182         * lib/c-strcasecmp.c: New file, from GNU gettext.
59183         * lib/c-strncasecmp.c: New file, from GNU gettext.
59184
59185 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         * modules/mempcpy (License): GPL -> LGPL.
59188         * modules/strchrnul (License): Likewise.
59189         * modules/sysexits (License): Likewise.
59190
59191 2005-10-08  Simon Josefsson  <jas@extundo.com>
59192
59193         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
59194
59195 2005-10-07  Simon Josefsson  <jas@extundo.com>
59196
59197         * m4/memxor.m4: Remove gl_C_RESTRICT call.
59198
59199 2005-10-06  Simon Josefsson  <jas@extundo.com>
59200
59201         * tests/test-hmac-md5.c: New file.
59202
59203         * modules/hmac-md5-tests: New file.
59204
59205         * modules/hmac-md5: New file.
59206
59207 2005-10-06  Simon Josefsson  <jas@extundo.com>
59208
59209         * m4/hmac-md5.m4: New file.
59210
59211         * m4/memxor.m4: Require gl_C_RESTRICT.
59212
59213 2005-10-06  Simon Josefsson  <jas@extundo.com>
59214
59215         * lib/memxor.c (memxor): Avoid casts and warnings.
59216
59217 2005-10-06  Simon Josefsson  <jas@extundo.com>
59218
59219         * lib/hmac-md5.c: New file.
59220
59221         * lib/hmac.h: New file.
59222
59223 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
59226         promotes to int, not unsigned int, to catch the AIX 5.3
59227         compiler bug.
59228
59229 2005-10-05  Simon Josefsson  <jas@extundo.com>
59230
59231         * modules/memxor: New file.
59232
59233         * modules/iconv (Files): Move config.rpath to havelib, it is used
59234         there.
59235
59236         * modules/havelib (Files): Add config.rpath.
59237
59238 2005-10-05  Simon Josefsson  <jas@extundo.com>
59239
59240         * m4/memxor.m4: New file.
59241
59242 2005-10-05  Simon Josefsson  <jas@extundo.com>
59243
59244         * lib/memxor.c (memxor): Fix compiler error.
59245
59246         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
59247         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
59248
59249         * lib/memxor.h, lib/memxor.c: New files.
59250
59251         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
59252         we assume all systems have it, suggested by Jim Meyering
59253         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59254         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59255         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59256         same reasons.
59257
59258 2005-10-05  Simon Josefsson  <jas@extundo.com>
59259
59260         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59261
59262 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59265         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59266         needed, since the source code now assumes these .h files.
59267
59268 2005-10-05  Derek Price  <derek@ximbiot.com>
59269
59270         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59271
59272 2005-10-05  Bruno Haible  <bruno@clisp.org>
59273
59274         * modules/stdint (License): Change to LGPL.
59275
59276 2005-10-04  Simon Josefsson  <jas@extundo.com>
59277
59278         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59279         D. Baushke" <mdb@gnu.org>.
59280
59281 2005-10-04  Bruno Haible  <bruno@clisp.org>
59282
59283         * lib/verify.h (verify_true): Provide alternative definition for C++.
59284
59285 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59286
59287         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59288         (SSIZE_MAX): New macro, if not already defined.
59289         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59290         than 2 GiB.
59291
59292 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59293
59294         Sync from coreutils.
59295         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59296         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59297         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59298         ULLONG_MAX doesn't work with 2.7.2.1.
59299
59300 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59303         From Ben Pfaff.
59304
59305         * modules/exclude (Depends-on): Depend on verify.
59306         * modules/strtoimax (Depends-on): Likewise.
59307         * modules/utimecmp (Depends-on): Likewise.
59308
59309 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59310
59311         * lib/exclude.c: Include verify.h.
59312         (verify): Remove.  All callers changed to use verify.h's version.
59313         * lib/strtoimax.c: Likewise.
59314         * lib/utimecmp.c: Likewis.e
59315
59316         Sync from coreutils.
59317         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59318         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59319         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59320         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59321         bother returning ENOSYS if settimeofday or stime fails; just let
59322         them return whatever errno they want to return.
59323         * lib/utimens.c: Include unistd.h, for dup2.
59324         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59325         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59326
59327 2005-10-02  Jim Meyering  <jim@meyering.net>
59328
59329         Sync from coreutils.
59330         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59331         from glibc-2.2.5 that fails for read-only files.
59332
59333 2005-10-02  Jim Meyering  <jim@meyering.net>
59334
59335         Sync from coreutils.
59336         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59337         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59338         `#if HAVE_CONFIG_H'.
59339         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59340         Remove AT_FDCWD test.
59341         Do not consume the fd unless successful.
59342         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59343         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59344         block, so that we don't even try to compile it if settimeofday is
59345         available.  This works around a compilation failure on OSF1 V5.1,
59346         due to stime requiring a `long int*' while tv_sec is `int'.
59347
59348 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59349
59350         Sync from coreutils.
59351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59352         against `yes', rather than just testing for nonempty.
59353
59354 2005-10-01  Simon Josefsson  <jas@extundo.com>
59355
59356         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59357         and Darwin.
59358
59359         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59360         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59361         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59362         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59363         Check if struct addrinfo is declared.
59364
59365 2005-10-01  Simon Josefsson  <jas@extundo.com>
59366
59367         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59368         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59369         AI_* and EAI_* definitions.  Protect function declarations.
59370
59371 2005-10-01  Jim Meyering  <jim@meyering.net>
59372
59373         Sync from coreutils.
59374
59375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59376         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59377         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59379         in the inet and nsl libraries.  Required on Solaris 5.7.
59380
59381 2005-10-01  Jim Meyering  <jim@meyering.net>
59382
59383         Sync from coreutils.
59384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59385         in the inet and nsl libraries.  Required on Solaris 5.7.
59386
59387 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59388
59389         * lib/getdelim.c (getdelim): Remove unused variables.
59390
59391 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59392
59393         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59394         so that the code works even with ancient cpp.  Portability problem
59395         with GCC 2.7.2.1 reported by Thomas M.Ott.
59396
59397 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * modules/regex (Depends-on): Add strcase.
59400
59401         * modules/gethostname (Licence): Change from GPL to LGPL, since
59402         gethostname.c is a trivial implementation of a standard library
59403         function.
59404         * modules/poll (License): Change from GPL to LGPL, since it's
59405         derived from LGPL code.
59406
59407 2005-09-27  Jim Meyering  <jim@meyering.net>
59408
59409         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59410         HAVE_CONFIG_H.
59411
59412         * lib/intprops.h (signed_type_or_expr__): Define.
59413         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59414         for unsigned types.
59415
59416 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         * lib/verify.h (verify_expr): Remove, replacing with:
59419         (verify_true): New macro that returns true instead of void.
59420         (verify_type__): Remove.
59421         (verify): Use verify_true rather than verify_type__.
59422
59423 2005-09-26  Bruno Haible  <bruno@clisp.org>
59424
59425         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59426         is necessary.
59427         (lib_SOURCES): Remove mbchar.c.
59428         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59429         (Files): Add m4/mbrtowc.m4.
59430         * modules/mbiter: Likewise.
59431         * modules/mbuiter: Likewise.
59432
59433 2005-09-26  Bruno Haible  <bruno@clisp.org>
59434
59435         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59436         compile mbchar.c if they are not both present.
59437         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59438         * m4/mbiter.m4 (gl_MBITER): Likewise.
59439         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59440         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59441         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59442
59443 2005-09-25  Jim Meyering  <jim@meyering.net>
59444
59445         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59446         also uses socklen_t.
59447
59448 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59449
59450         * lib/utimens.c (ENOSYS): Define if not already defined.
59451         (futimens): Support having a null PATH if the file descriptor
59452         is nonnegative.
59453
59454         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59455         Remove.
59456         (__attribute): Define to empty unless GCC 3.1 or later.
59457         This works around a core dump on OpenBSD 3.4, which has GCC
59458         2.95.3, which dumps core when given __attribute__(()).  It also
59459         simplifies other tests, since we really don't want to bother with
59460         worrying about which ancient version of GCC supported what.
59461         Original problem reported by Yoann Vandoorselaere, with part of
59462         the fix suggested by Derek Price.
59463
59464 2005-09-24  Jim Meyering  <jim@meyering.net>
59465
59466         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59467         so we can once again use a positive bitfield width of 1 -- now we
59468         don't have to explain why we were using a bitfield width of 2.
59469
59470 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59471
59472         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59473         and similarly for the other external symbols.  Problem reported
59474         by James Gallager.
59475
59476         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59477         bug reported by Jim Meyering.
59478
59479         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59480         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59481         not needed, since socklen is a prerequisite module.
59482
59483 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59486         Problem reported by Eric Blake.
59487         (getaddrinfo): Initialize se so that it's not garbage.
59488         Redo internal storage allocation so that it doesn't make unportable
59489         assumptions about alignment.
59490         Fix a memory leak.
59491
59492         * lib/utimens.c (futimens): Use futimesat if available.
59493         Prefer it to futimes since it doesn't have the futimes bug.
59494
59495         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59496         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59497         Instead, declare a function that returns a pointer to an array,
59498         and use verify_type__ to declare the size of the array.
59499         Problem and germ of a solution reported by Bruno Haible.
59500         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59501         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59502
59503 2005-09-23  Jim Meyering  <jim@meyering.net>
59504
59505         Sync from coreutils.
59506         Correct build failure (socklen_t not defined) on at least
59507         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59508         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59509
59510 2005-09-23  Jim Meyering  <jim@meyering.net>
59511
59512         * modules/getaddrinfo (Depends-on): Add socklen.
59513
59514 2005-09-23  Bruno Haible  <bruno@clisp.org>
59515
59516         * tests/test-verify.c: New file.
59517
59518 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59519
59520         Sync from coreutils.
59521
59522         * modules/argmatch (Depends-on): Add verify.
59523         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59524         unistd-safer.
59525         * modules/save-cwd (Depends-on): Likewise.
59526
59527         * modules/openat (Files): Add lib/openat-die.c.
59528         (Depends-on): Remove error, exitfail.
59529         Add dirname.
59530
59531         * modules/verify: New file.
59532         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59533         with "verify" module.
59534
59535 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         Sync from coreutils.
59538
59539         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59540         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59541         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59542         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59543         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59544         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59545         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59546         Don't bother checking for string.h, stdlib.h, unistd.h.
59547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59548         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59549         module's job.
59550         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59551         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59552
59553         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59554         (gl_GETDATE): Use it.
59555
59556         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59557
59558 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         Sync from coreutils.
59561
59562         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59563         stat-time.h.
59564         * lib/argmatch.h: Include verify.h
59565         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59566         (ARGMATCH_ASSERT): Remove; unused.
59567         * lib/canonicalize.c: Assume STDC_HEADERS.
59568         * lib/exclude.c: Include "strcase.h".
59569         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59570         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59571         and stdio-safer.h.
59572         (getusershell): Call fopen, not fopen_safer.
59573         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59574         Do not include unistd-safer.h.
59575         (save_cwd): Don't call fd_safer; no longer needed
59576         now that we include fcntl--.h.
59577
59578         * lib/getdate.y (relative_time): New type.
59579         (RELATIVE_TIME_0): New constant.
59580         (parser_control): Use relative_time instead of doing it ourselves.
59581         (%union): Add new relative_time rel member.
59582         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59583         Now typeless.
59584         (relunit, relunit_snumber): Now of type rel.
59585         (zone, rel, relunit, get_date): Adjust to above changes.
59586
59587         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59588         Do not include unistd-safer.h.
59589         (getloadavg): Don't call fd_safer; no longer needed
59590         now that we include fcntl--.h.
59591
59592         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59593         (make_dir_parents): Treat ENOSYS like EEXIST.
59594
59595         Improve quality of diagnostics on restore_cwd failure.
59596         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59597         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59598         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59599         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59600         each time through the loop.  Do not diagnose restore_cwd failure;
59601         that is the caller's job (and perhaps the caller does not care).
59602
59603         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59604         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59605         If the file already exists but is not a directory, don't bother
59606         to try to make its parents.
59607         Close potential file descriptor leak if we can't chdir("/") (!).
59608         Don't always return true if chdir($PWD) fails; return true only
59609         if the requested action was done successfully (except for the
59610         chdir($PWD)).
59611         Don't log final directory unless we actually made it.
59612         Refactor to avoid duplicate code to fix up permissions.
59613         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59614
59615         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59616         to make it a bit faster and (I hope) clearer.
59617         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59618         Fix bug in formats like %2N.
59619
59620         * lib/verify.h: New file.
59621
59622 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59623
59624         Sync from coreutils.
59625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59626
59627 2005-09-22  Jim Meyering  <jim@meyering.net>
59628
59629         Sync from coreutils.
59630
59631         * m4/lstat.m4 (gl_FUNC_LSTAT):
59632         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59633         Remove obsolete comment.
59634         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59635         * m4/xstrtod.m4: Likewise.
59636
59637         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59638
59639 2005-09-22  Jim Meyering  <jim@meyering.net>
59640
59641         Sync from coreutils.
59642
59643         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59644
59645         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59646         the .tm_year member, since otherwise gcc-4.0 would now warn about
59647         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59648
59649         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59650         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59651
59652         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59653         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59654         when run in a time zone for which daylight savings time is in effect
59655         for the starting date.
59656
59657         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59658         stop us from restricting permissions of just-created absolute-named
59659         directories.
59660         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59661         to restore initial working directory.
59662         * lib/mkdir-p.c (make_dir_parents): New parameter:
59663         different_working_dir, to tell caller if/when we change the working
59664         directory and are unable to return to the initial one.
59665         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59666         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59667         `return false'.  This fixes a bug introduced on 2004-07-30.
59668
59669         * lib/openat.c (fdopendir): Be sure to close the supplied
59670         file descriptor before returning.  This makes our replacement
59671         implementation a little closer to Solaris's, where fdopendir
59672         ties the file descriptor to the returned DIR* pointer.
59673         * lib/openat.c (unlinkat): New function.
59674         * lib/openat.h (unlinkat): Add prototype.
59675         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59676         (openat_restore_fail): Rename from openat_restore_die.
59677         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59678
59679         Provide an alternative to exiting immediately upon save_cwd or
59680         restore_cwd failure.  Now, an application can arrange e.g.,
59681         to perform a longjump in that case.
59682         * lib/openat.c: Include dirname.h.
59683         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59684         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59685         and openat_restore_die rather than calling error directly.
59686         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59687
59688         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59689         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59690         define.
59691
59692         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59693         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59694                             int utc, int nanoseconds);
59695         Background:
59696         date should not have to allocate a megabyte of virtual memory to
59697         handle a format argument like +%1048575T.  When implemented with
59698         strftime, it must allocate such a buffer, use strftime to fill it
59699         in, print it, then free it.
59700         With fprintftime, it simply prints everything and exits.
59701         With no need for memory allocation, that's one fewer way to fail.
59702         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59703         optional field width, not before, so we accept %9:z, not %:9z.
59704         (my_strftime): Be sure to use L_('x') for literals.
59705
59706         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59707         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59708         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59709         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59710         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59711         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59712         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59713         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59714         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59715         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59716         * lib/xgethostname.c, lib/xreadlink.c:
59717         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59718
59719         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59720         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59721         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59722         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59723         and don't include <sys/file.h>).
59724
59725 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59726
59727         Sync from coreutils.
59728
59729         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59730         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59731         [!LDAV_DONE]: Avoid unused variable warning.
59732
59733 2005-09-21  Bruno Haible  <bruno@clisp.org>
59734
59735         * lib/unicodeio.h (unicode_to_mb): New declaration.
59736
59737 2005-09-20  Derek Price  <derek@ximbiot.com>
59738
59739         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59740         getaddrinfo.h.
59741
59742 2005-09-20  Bruno Haible  <bruno@clisp.org>
59743
59744         * gnulib-tool: Remove trailing slashes from the values specified for
59745         --source-base, --m4-base, --tests-base, --aux-dir.
59746         Suggested by Simon Josefsson <jas@extundo.com>.
59747
59748 2005-09-20  Bruno Haible  <bruno@clisp.org>
59749
59750         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59751         func_modules_to_filelist, func_import, func_create_testdir): Make all
59752         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59753         change when gnulib-tool is invoked in a different locale.
59754
59755 2005-09-19  Simon Josefsson  <jas@extundo.com>
59756
59757         * m4/socklen.m4: Fix typo.
59758
59759 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59760
59761         Use a consistent style for including <config.h>.
59762         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59763         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59764         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59765         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59766         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59767         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59768         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59769         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59770         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59771         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59772         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59773         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59774         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59775         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59776         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59777         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59778         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59779         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59780         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59781         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59782         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59783         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59784         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59785         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59786         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59787         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59788         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59789         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59790         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59791         lib/xstrtoumax.c, lib/yesno.c:
59792         Standardize inclusion of config.h.
59793         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59794         lib/inttostr.h:  Removed inclusion of config.h from header files.
59795         * lib/inttostr.c:  Adjusted in-tree users.
59796         * lib/timespec.h: Remove superfluous warning to include config.h.
59797         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59798         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59799         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59800         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59801         config.h with HAVE_CONFIG_H.
59802
59803 2005-09-19  Jim Meyering  <jim@meyering.net>
59804
59805         * modules/pathmax (License): Change to LGPL.
59806
59807 2005-09-19  Derek Price  <derek@ximbiot.com>
59808
59809         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59810
59811 2005-09-19  Bruno Haible  <bruno@clisp.org>
59812
59813         * gnulib-tool (import): Provide default for --tests-base.
59814
59815 2005-09-19  Bruno Haible  <bruno@clisp.org>
59816
59817         * doc/quote.texi: New file, extracted from gnulib.texi.
59818         * doc/ctime.texi: New file, extracted from gnulib.texi.
59819         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59820         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59821         * doc/gnulib.texi: Include them.
59822
59823 2005-09-18  Bruno Haible  <bruno@clisp.org>
59824
59825         Portability fix.
59826         * gnulib-tool (func_readlink): New function.
59827         (func_ln_if_changed): Use it.
59828
59829 2005-09-18  Bruno Haible  <bruno@clisp.org>
59830
59831         * gnulib-tool: Support --with-tests also with --import.
59832         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59833         (func_import): Use variables $testsbase and $inctests. Emit a
59834         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59835         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59836         SUBDIRS += $testsdir.
59837         (func_create_testdir): Update.
59838
59839 2005-09-18  Bruno Haible  <bruno@clisp.org>
59840
59841         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59842         instead of $dry_run.
59843         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59844         (func_ln_if_changed): Don't handle dry-run here.
59845         (func_import): In dry-run mode, detect more precisely which actions
59846         would be performed, and don't use "...ing" verbs.
59847
59848 2005-09-18  Bruno Haible  <bruno@clisp.org>
59849
59850         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59851         (func_import): Use join on two temporary files instead of three nested
59852         loops, in order to determine which files are new or old.
59853
59854 2005-09-18  Bruno Haible  <bruno@clisp.org>
59855
59856         * gnulib-tool (func_import): Comment out code that spits out the
59857         new files with --dry-run.
59858
59859 2005-09-18  Bruno Haible  <bruno@clisp.org>
59860
59861         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59862
59863 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59864
59865         * lib/stat-time.h: New file.
59866         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59867         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59868         in a different way.
59869         (timespec_cmp): New function.
59870         * lib/utimecmp.c: Include stat-time.h.
59871         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59872         members exist, not on the obsolescent ST_MTIM_NSEC.
59873         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59874
59875 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59878
59879 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         * MODULES.html.sh (File system functions): Add stat-time.
59882         * modules/stat-time: New file.
59883         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59884         is now done in a different way, by the stat-time module.
59885         * modules/utimecmp (Depends-on): Add stat-time.
59886
59887 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         * m4/st_mtim.m4: Remove.  Superseded by...
59890         * m4/stat-time.m4: New file.
59891         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59892         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59893
59894 2005-09-15  Derek Price  <derek@ximbiot.com>
59895
59896         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59897
59898 2005-09-15  Derek Price  <derek@ximbiot.com>
59899
59900         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59901         * lib/regex_internal.c: Ditto, using this...
59902         (__GNUC_PREREQ): ...new macro.
59903         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59904         using...
59905         (__GNUC_PREREQ): ...this new macro.
59906
59907         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59908
59909 2005-09-15  Derek Price  <derek@ximbiot.com>
59910             Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59913         changes, consolidating in...
59914         * lib/regex_internal.h: ...this file.
59915
59916 2005-09-13  Jim Meyering  <jim@meyering.net>
59917
59918         * lib/canon-host.c: Filter through gnu indent and reword comments
59919         slightly.
59920         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59921
59922 2005-09-13  Derek Price  <derek@ximbiot.com>
59923
59924         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59925         failure.
59926         Reported by Jim Meyering  <jim@meyering.net>.
59927
59928 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59929
59930         * lib/base64.c: Typo.
59931         (base64_encode): Put b64str in initialized data section.
59932
59933 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59934
59935         Merge glibc and coreutils changes into gnulib, plus a few
59936         extra fixes.
59937         * lib/md5.c: Use #error rather than a string.
59938         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59939         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59940         (__attribute__): Define to empty for non recent-GCC.
59941         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59942         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59943         Renamed from their non-__ counterparts, with new macros replacing
59944         them if not _LIBC.  Add __THROW attribute.
59945         (rol): Remove.
59946         (struct md5_ctx): Align buffer if using GCC.
59947         * lib/sha1.h (struct sha1_ctx): Likewise.
59948         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59949         The old name was backwards.
59950         (NOTSWAP): Remove; not used.
59951         (rol): New macro, moved here from md5.h.
59952         (sha1_process_block): Remove a FIXME that doesn't make sense.
59953
59954 2005-09-12  Derek Price  <derek@ximbiot.com>
59955
59956         Return usable errors from canon-host.
59957         * lib/canon-host.h: New file.
59958         * lib/canon-host.c (canon_host): Wrap...
59959         (canon_host_r): ...this new function, which now relies exclusively on
59960         getaddrinfo.
59961         (ch_strerror): New function.
59962         (last_cherror): New global.
59963         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59964         interface.
59965         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59966         void *.
59967         (freeaddrinfo): Free ai->ai_canonname when set.
59968
59969 2005-09-12  Derek Price  <derek@ximbiot.com>
59970
59971         Make canon-host require getaddrinfo.
59972         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59973         AC_LIBSOURCE canon-host.h.  Call...
59974         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59975         gl_GETADDRINFO.
59976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59977
59978 2005-09-12  Derek Price  <derek@ximbiot.com>
59979
59980         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59981         LGPL.
59982         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59983
59984 2005-09-12  Derek Price  <derek@ximbiot.com>
59985
59986         * lib/gai_strerror.c: Include config.h when available.  Include
59987         getaddrinfo.h before other headers to test interface.
59988         Reported by Larry Jones <lawrence.jones@ugs.com>.
59989
59990 2005-09-12  Derek Price  <derek@ximbiot.com>
59991             Paul Eggert  <eggert@cs.ucla.edu>
59992
59993         * modules/glob (Files): Add glob-libc.h.
59994
59995 2005-09-12  Derek Price  <derek@ximbiot.com>
59996             Paul Eggert  <eggert@cs.ucla.edu>
59997
59998         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59999         glob_.h, glob-libc.h.
60000         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
60001
60002 2005-09-12  Derek Price  <derek@ximbiot.com>
60003             Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
60006         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
60007         protecting things that should be done only in gnulib contexts.
60008         * lib/glob_.h: New file, containing only the glob things needed for
60009         gnulib.
60010         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
60011         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
60012         (glob, globfree, glob_pattern_p): Now defined simply in terms of
60013         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
60014         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
60015         and to respect the namespace rules better.
60016
60017 2005-09-08  Simon Josefsson  <jas@extundo.com>
60018
60019         * modules/socklen: New file.
60020
60021 2005-09-08  Simon Josefsson  <jas@extundo.com>
60022
60023         * m4/socklen.m4: New file.
60024
60025 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * modules/utimens (Files): Add m4/utimbuf.m4, since
60028         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
60029         Reported by Sergey Poznyakoff.
60030
60031 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
60034         definitions, since that's the preferred style in glibc.
60035         Fix a minor spacing issue, and update copyright notice to match
60036         glibc's.
60037
60038 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
60041
60042 2005-09-06  Simon Josefsson  <jas@extundo.com>
60043
60044         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
60045         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
60046
60047 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
60050         warning.
60051
60052 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * config/srclist.txt: Add glibc bug 1302.
60055
60056 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         Change bitset word type from unsigned int to unsigned long int,
60059         as this has better performance on typical 64-bit hosts.
60060         Port bitset code to hosts with unusual word sizes.
60061         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
60062         (build_collating_symbol):
60063         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
60064         argument is a bitset.  This is merely a style issue, but it makes
60065         it clearer that an entire array is expected.
60066         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
60067         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
60068         Port to the case where bitset_word is not the same as unsigned int.
60069         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60070         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
60071         Likewise.
60072         * lib/regexec.c (check_dst_limits_calc_pos_1,
60073         check_subexp_matching_top):
60074         (build_trtable, group_nodes_into_DFAstates):
60075         Likewise.
60076         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60077         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60078         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60079         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60080         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60081         * lib/regcomp.c (optimize_subexps, lower_subexp):
60082         Work even if bitset_word has holes in its bitwise representation.
60083         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60084         * lib/regexec.c (check_dst_limits_calc_pos_1,
60085         check_subexp_matching_top):
60086         Likewise.
60087         * lib/regex_internal.c (re_string_reconstruct):
60088         Don't assume UCHAR_MAX == 255.
60089         * lib/regex_internal.h (bitset_set_all): Likewise.
60090         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60091         All uses changed.
60092         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60093         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60094         All uses changed.
60095         (BITSET_WORD_MAX): New macro.
60096         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60097         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60098         (bitset_empty, bitset_copy):
60099         Prefer sizeof (bitset) to multiplying it out ourselves.
60100         (bitset_not_merge): Remove; unused.
60101         (bitset_contain): Return bool, not unsigned int with one bit on.
60102         All callers changed.
60103         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60104         alignment than re_node_set; do this by defining a new internal
60105         type struct dests_alloc and using it to allocate memory.
60106
60107 2005-09-05  Bruno Haible  <bruno@clisp.org>
60108
60109         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60110         links.
60111
60112 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60113
60114         * modules/size_max (Makefile.am): Add size_max.h
60115
60116 2005-09-04  Derek Price  <derek@ximbiot.com>
60117
60118         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60119
60120 2005-09-03  Simon Josefsson  <jas@extundo.com>
60121
60122         * gnulib-tool: Fix typo.
60123
60124 2005-09-03  Simon Josefsson  <jas@extundo.com>
60125
60126         * config/srclist.txt: Add glibc bug 1293.
60127
60128 2005-09-03  Derek Price  <derek@ximbiot.com>
60129
60130         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
60131         From Larry Jones <lawrence.jones@ugs.com>.
60132
60133 2005-09-02  Simon Josefsson  <jas@extundo.com>
60134
60135         * modules/socklen: New file.
60136
60137 2005-09-02  Simon Josefsson  <jas@extundo.com>
60138
60139         * modules/havelib: New module.
60140
60141         * modules/gettext, modules/iconv, modules/lock, modules/readline:
60142         Use havelib.
60143
60144 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60145
60146         Check for arithmetic overflow when calculating sizes, to prevent
60147         some buffer-overflow issues.  These patches are conservative, in the
60148         sense that when I couldn't determine whether an overflow was possible,
60149         I inserted a run-time check.
60150         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
60151         macros.
60152         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
60153         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
60154         (re_xnrealloc, re_x2nrealloc): New inline functions.
60155         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
60156         parse_bracket_exp):
60157         (build_equiv_class, build_charclass): Check for arithmetic overflow
60158         in size expression calculations.
60159         * lib/regex_internal.c (re_string_realloc_buffers):
60160         (build_wcs_upper_buffer, re_node_set_add_intersect):
60161         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
60162         (re_dfa_add_node, register_state): Likewise.
60163         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
60164         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
60165         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
60166         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
60167
60168 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
60169
60170         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60171         m4/ulonglong.m4.  Problem reported by Martin Lambers.
60172
60173 2005-09-02  Bruno Haible  <bruno@clisp.org>
60174
60175         Support for lib vs. lib64 distinction on biarch platforms.
60176         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
60177         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
60178         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
60179
60180 2005-09-02  Bruno Haible  <bruno@clisp.org>
60181
60182         * gnulib-tool (import): In the other first-use case, provide defaults
60183         as well.
60184
60185 2005-09-02  Bruno Haible  <bruno@clisp.org>
60186
60187         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
60188         patches not yet found in the latest gettext release.
60189
60190 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
60193         to avoid a collision with bits/local_lim.h in glibc.
60194         All uses changed.  Problem reported by Dmitry V. Levin in
60195         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
60196
60197         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
60198         bugs in int versus size_t comparisons.
60199         (re_string_context_at): Fix bug where the code assumed that
60200         Idx is signed.
60201
60202         Use bool where appropriate.
60203         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
60204         All callers changed.
60205         (calc_eclosure_iter): Likewise, for ROOT arg.
60206         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
60207         (build_charclass_op): Likewise, for NON_MATCH arg.
60208         * lib/regex_internal.c (re_string_allocate, re_string_construct):
60209         (re_string_construct_common): Likewise, for ICASE arg.
60210         * lib/regexec.c (re_search_2_stub, re_search_stub):
60211         Likewise, for RET_LEN arg.
60212         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
60213         (set_regs): Likewise, for FL_BACKTRACK arg.
60214         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
60215         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
60216         (calc_eclosure_iter, parse_bracket_exp):
60217         Use bool for internal variables that are booleans.
60218         * lib/regexec.c (re_search_internal, check_matching,
60219         proceed_next_node):
60220         (set_regs, build_sifted_states, sift_states_bkref):
60221         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
60222         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60223         (find_collation_sequence_value):
60224         Likewise.
60225         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
60226         (re_node_set_compare):
60227         Return bool, not int. All callers changed.
60228         * lib/regexec.c (check_halt_node_context, check_dst_limits):
60229         (build_trtable, check_node_accept): Likewise.
60230         * lib/regex_internal.h: Include stdbool.h.
60231
60232         Fix bugs uncovered when converting to bool.
60233         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
60234         failure instead of charging ahead blindly.
60235         * lib/regex_internal.c (register_state): Likewise.
60236         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
60237         for freeing internal storage.
60238         (group_nodes_into_DFA_states): Use unsigned int, not int, for
60239         bitset pieces used as boolean, to avoid undefined behavior
60240         on hosts that do int overflow checking.
60241
60242 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * config/srclist.txt: Add glibc bugs 1285-1287.
60245
60246 2005-09-01  Jim Meyering  <jim@meyering.net>
60247
60248         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
60249         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
60250         Require gl_STAT_MACROS, too.
60251
60252 2005-09-01  Bruno Haible  <bruno@clisp.org>
60253
60254         * gnulib-tool (import): In the first-use case, provide defaults.
60255
60256 2005-09-01  Bruno Haible  <bruno@clisp.org>
60257
60258         * gnulib-tool (func_import): Remove the .tmp files.
60259
60260 2005-09-01  Bruno Haible  <bruno@clisp.org>
60261
60262         * gnulib-tool (func_import): Fix handling of symbolic links.
60263
60264 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60265
60266         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60267         old glibc regex code mishandles strings longer than 2**31 bytes.
60268         This patch fixes this when the regex code is used in gnulib
60269         (i.e., outside glibc).
60270
60271         This patch should not affect the use of the regex code inside
60272         glibc.  No doubt this problem also needs to be handled for glibc
60273         as well, but the result will be an incompatible change to the
60274         glibc ABI, and the old ABI will have to be supported too.  That
60275         can be the the subject for another patch.
60276
60277         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60278         governing whether the rest of this patch is active.  By default,
60279         the macro is disabled and the patch has no effect.
60280         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60281         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60282         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60283         (re_match_2, re_set_registers): Use the new types.
60284         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60285         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60286         New macros.
60287         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60288         (re_string_context_at, bin_tree_t, re_dfastate_t):
60289         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60290         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60291         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60292         (re_string_char_size_at, re_string_wchar_at):
60293         (re_string_elem_size_at):
60294         Use the new types and macros to port to 64-bit hosts.
60295         Use unsigned types for internal values, so that the code
60296         mostly works even for arrays larger than SSIZE_MAX.
60297         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60298         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60299         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60300         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60301         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60302         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60303         (calc_inveclosure, parse_dup_op, build_range_exp):
60304         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60305         (fetch_number, create_token_tree, mark_opt_subexp):
60306         Likewise.
60307         * lib/regex_internal.c (re_string_construct_common,
60308         create_ci_newstate):
60309         (create_cd_newstate, re_string_allocate, re_string_construct):
60310         (re_string_realloc_buffers, build_wcs_upper_buffer):
60311         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60312         (re_string_reconstruct, re_string_peek_byte_case):
60313         (re_string_fetch_byte_case, re_string_context_at):
60314         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60315         (re_node_set_init_copy, re_node_set_add_intersect):
60316         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60317         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60318         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60319         (re_acquire_state, re_acquire_state_context, register_state):
60320         Likewise.
60321         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60322         search_cur_bkref_entry):
60323         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60324         (re_search_internal, re_search_2_stub, re_search_stub)
60325         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60326         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60327         (update_cur_sifted_state, check_dst_limits):
60328         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60329         (check_subexp_limits, sift_states_bkref, merge_state_array):
60330         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60331         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60332         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60333         (expand_bkref_cache, check_node_accept_bytes):
60334         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60335         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60336         (acquire_init_state_context, check_halt_node_context):
60337         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60338         (sift_states_backward, clean_state_log_if_needed):
60339         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60340         (find_recover_state, transit_state_sb, transit_state_mb):
60341         (transit_state_bkref, build_trtable, match_ctx_clean):
60342         Likewise.
60343         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60344         to work around an assumption that REG_MISSING is negative.
60345
60346         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60347         (seek_collating_symbol_entry) [defined _LIBC]:
60348         (lookup_collation_sequence_value) [defined _LIBC]:
60349         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60350         Use prototypes rather than old-style function definitions.
60351         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60352         (transit_state_sb) [0]:
60353         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60354
60355         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60356         rm_eo.
60357
60358         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60359         (optimize_subexps, lower_subexp):
60360         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60361         since the signed shift might overflow.  Use 1u<<31 instead.
60362         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60363         Likewise.
60364         * lib/regexec.c (check_dst_limits_calc_pos_1,
60365         check_subexp_matching_top): Likewise.
60366
60367         * lib/regcomp.c (optimize_subexps, lower_subexp):
60368         Use CHAR_BIT rather than 8, for clarity.
60369         * lib/regexec.c (check_dst_limits_calc_pos_1):
60370         (check_subexp_matching_top): Likewise.
60371         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60372         have to worry about portability issues when shifting it left.
60373         Remove no-longer-needed test for table_size > 0.
60374         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60375         in a word, as the resulting behavior is undefined.
60376         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60377         in one case, a <= should have been an <, and in another case the
60378         whole test was missing.
60379         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60380         the standard name CHAR_BIT.
60381         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60382         this is not true on one's complement and signed-magnitude hosts.
60383
60384         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60385         next_last_offset.
60386         (struct re_dfa_t): Remove unused member states_alloc.
60387         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60388
60389 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60390
60391         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60392         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60393         and large-file glibc and in 32-bit large-file Solaris.
60394
60395 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60396
60397         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60398         lengths fit in regoff_t; this isn't true if regoff_t is the same
60399         width as size_t.
60400         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60401         (= START + RANGE) instead of RANGE.  This avoids overflow
60402         problems when regoff_t is the same width as size_t.
60403         All callers changed.
60404         (re_search_2_stub): Check for overflow when adding the
60405         sizes of the two strings.
60406         (re_search_stub): Check for overflow when adding START
60407         to RANGE; if it occurs, substitute the extreme value.
60408
60409 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60412
60413 2005-08-31  Jim Meyering  <jim@meyering.net>
60414
60415         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60416         a pointer-to-const.
60417         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60418         (register_state): Likewise.
60419         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60420         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60421         (group_nodes_into_DFAstates): Likewise.
60422
60423 2005-08-31  Jim Meyering  <jim@meyering.net>
60424
60425         * check-module: Add a FIXME comment.
60426
60427 2005-08-31  Eric Blake  <ebb9@byu.net>
60428
60429         * modules/unistd-safer (Files): Add unistd--.h.
60430         * modules/stdio-safer (Files): Add stdio--.h.
60431
60432 2005-08-31  Derek Price  <derek@ximbiot.com>
60433
60434         * lib/getdelim.c (getdelim): Return EOF on EOF.
60435         Reported by Larry Jones <lawrence.jones@ugs.com>.
60436
60437 2005-08-31  Bruno Haible  <bruno@clisp.org>
60438
60439         Avoid unnecessary diffs in the generated lib/Makefile.am.
60440         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60441         the generated files.
60442         (func_import): Don't set cmd.
60443
60444 2005-08-31  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/strstr.c: Include <stddef.h>, for NULL.
60447         * lib/strcasestr.c: Likewise.
60448         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60449
60450 2005-08-31  Bruno Haible  <bruno@clisp.org>
60451
60452         * gnulib-tool: New option --macro-prefix.
60453         (func_import): Use macro_prefix.
60454         (import): Handle option --macro-prefix.
60455
60456 2005-08-31  Bruno Haible  <bruno@clisp.org>
60457
60458         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60459         Also use new variables cached_lgpl, cached_libtool.
60460
60461 2005-08-31  Bruno Haible  <bruno@clisp.org>
60462
60463         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60464         always instantiating them.
60465
60466 2005-08-31  Bruno Haible  <bruno@clisp.org>
60467
60468         * gnulib-tool (func_import): Read the previous cached settings
60469         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60470         earlier added by gnulib but are now dropped. Warn when a gnulib file
60471         overwrites a non-gnulib file.
60472
60473 2005-08-31  Bruno Haible  <bruno@clisp.org>
60474
60475         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60476         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60477         projects that don't keep autogenerated files in CVS. Put into
60478         actioncmd only the specified modules, not the transitive closure.
60479
60480 2005-08-31  Bruno Haible  <bruno@clisp.org>
60481
60482         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60483         Create directories that shall be filled.
60484         (import): Don't look for gl_* macros in configure.ac. Recurse across
60485         all directories containing a gnulib-cache.m4 files, if meaningful.
60486
60487 2005-08-31  Bruno Haible  <bruno@clisp.org>
60488
60489         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60490         (import): Set seen_libtool when we see gl_LIBTOOL.
60491
60492 2005-08-31  Bruno Haible  <bruno@clisp.org>
60493
60494         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60495         declaration macro definitions from generated gnulib.m4.
60496
60497 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60498
60499         * lib/iconvme.h: Add prototype for iconv_alloc.
60500
60501 2005-08-29  Simon Josefsson  <jas@extundo.com>
60502
60503         * lib/iconvme.c: Fix errno.
60504
60505 2005-08-29  Bruno Haible  <bruno@clisp.org>
60506
60507         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60508         that it works when the directory contains spaces.
60509
60510 2005-08-29  Bruno Haible  <bruno@clisp.org>
60511
60512         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60513
60514 2005-08-29  Bruno Haible  <bruno@clisp.org>
60515
60516         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60517         Emit more advice.
60518
60519 2005-08-29  Bruno Haible  <bruno@clisp.org>
60520         and Stepan Kasal  <kasal@ucw.cz>
60521
60522         * check-module: If more parameters are given, check each of them
60523         separately; add more exceptions, as noted by Jim Meyering.
60524         (check_module): New procedure.
60525         (%exempt_header): Now contains all exceptions.
60526
60527 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60528
60529         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60530
60531 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60532
60533         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60534
60535 2005-08-28  Bruno Haible  <bruno@clisp.org>
60536
60537         * m4/gnulib-tool.m4: New file.
60538
60539 2005-08-27  Jim Meyering  <jim@meyering.net>
60540
60541         * modules/unistd-safer (Files): Add pipe-safer.c.
60542         * modules/fcntl-safer (Files): Add creat-safer.c.
60543
60544 2005-08-27  Jim Meyering  <jim@meyering.net>
60545
60546         * m4/stdlib-safer.m4: New file.  From coreutils.
60547         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60548         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60549         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60550         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60551         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60552
60553 2005-08-27  Jim Meyering  <jim@meyering.net>
60554
60555         * lib/fopen-safer.c: Merge minor changes from coreutils.
60556         * lib/dup-safer.c: Likewise.
60557         * lib/fd-safer.c: Likewise.
60558
60559         Merge from coreutils.
60560         * lib/stdio--.h: New file.
60561         * lib/stdlib--.h: New file.
60562         * lib/mkstemp-safer.c: New file.
60563
60564         GNU tar needs these.
60565         * lib/pipe-safer.c: New file.
60566         * lib/creat-safer.c: New file.
60567         * lib/fcntl--.h (creat): Define to creat_safer.
60568         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60569         * lib/unistd--.h (pipe): Define to pipe_safer.
60570         * lib/unistd-safer.h: Declare pipe_safer.
60571
60572 2005-08-26  Simon Josefsson  <jas@extundo.com>
60573
60574         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60575         Haible <bruno@clisp.org>.
60576
60577 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         * lib/regex_internal.h: Remove all references to
60580         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60581         or better.
60582         (bitset_not, bitset_merge, bitset_not_merge):
60583         (bitset_mask, re_string_allocate, re_string_construct):
60584         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60585         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60586         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60587         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60588         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60589         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60590         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60591         (re_acquire_state_context):
60592         Remove unnecessary forward decls.
60593         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60594         Put __attribute at function definition,
60595         now that the function decl has been removed.
60596         * lib/regex_internal.c (re_string_peek_byte_case):
60597         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60598         Likewise.
60599
60600 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60601
60602         * m4/regex.m4: Add AC_PREREQ(2.50).
60603         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60604
60605 2005-08-25  Simon Josefsson  <jas@extundo.com>
60606
60607         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60608         __fsetlocking.
60609
60610 2005-08-25  Simon Josefsson  <jas@extundo.com>
60611
60612         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60613         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60614         GLIBC specific code.
60615
60616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60617
60618         Make regex safe for g++.  This fixes one real bug (an "err"
60619         that should have been "*err").  g++ problem reported by
60620         Sam Steingold.
60621         * lib/regex_internal.h (re_calloc): New macro, consistent with
60622         re_malloc etc.  All callers of calloc changed to use re_calloc.
60623         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60624         not int.  All callers changed.
60625         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60626         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60627         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60628         (find_recover_state): Change "err" to "*err"; this fixes what
60629         appears to be a real bug.
60630         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60631         versus int.
60632
60633 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60634
60635         * modules/regex (Depends-on): Add malloc, since the code
60636         assumes that !malloc(0) means failure.
60637
60638 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60641
60642         alloca modernization/simplification for regex.
60643         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60644         needs to be at the start of the file, and can be moved into
60645         regex_internal.h and simplified.
60646         * lib/regex_internal.h: Include <alloca.h>.
60647         (__libc_use_alloca) [!defined _LIBC]: New macro.
60648         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60649         now works outside glibc.
60650
60651 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * config/srclist.txt: Add glibc bugs 1241, 1245.
60654
60655 2005-08-25  Jim Meyering  <jim@meyering.net>
60656
60657         * lib/open-safer.c: Include <config.h>.
60658         Otherwise, we'd lose LARGEFILE support in any file using
60659         e.g. "fcntl--.h"
60660
60661 2005-08-25  Bruno Haible  <bruno@clisp.org>
60662
60663         * m4/minmax.m4: Require autoconf 2.52.
60664         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60665         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60666         alternatives of translit over the alphabet.
60667         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60668
60669 2005-08-24  Simon Josefsson  <jas@extundo.com>
60670
60671         * tests/test-getpass.c: New file.
60672
60673 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60676         for GNU regex features.
60677
60678 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60681         * lib/regex.h (regerror): Likewise.
60682
60683         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60684         requires this.  (The code never needed it.)
60685
60686         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60687         All uses of recently-renamed identifiers changed to use the new,
60688         POSIX-compliant names.  The code will build and run just fine
60689         without these changes, but it's better to eat our own dog food
60690         and use the standard-conforming names.
60691
60692         * lib/regex.h: Fix a multitude of POSIX name space violations.
60693         These changes have an effect only for programs that define
60694         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60695         do not change anything for programs compiled in the normal way.
60696         Also, there is no effect on the ABI.
60697
60698         (_REGEX_SOURCE): New macro.
60699         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60700         defined and _GNU_SOURCE is not; this fixes a name space violation.
60701
60702         Rename the following macros to obey POSIX requirements.
60703         The old names are still visible as macros if _REGEX_SOURCE is defined.
60704         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60705         RE_BACKSLASH_ESCAPE_IN_LISTS.
60706         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60707         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60708         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60709         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60710         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60711         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60712         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60713         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60714         (REG_INTERVALS): renamed from RE_INTERVALS.
60715         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60716         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60717         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60718         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60719         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60720         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60721         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60722         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60723         RE_UNMATCHED_RIGHT_PAREN_ORD.
60724         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60725         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60726         (REG_DEBUG): renamed from RE_DEBUG.
60727         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60728         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60729         unusual, since we can't clash with the POSIX REG_ICASE.
60730         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60731         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60732         (REG_NO_SUB): renamed from RE_NO_SUB.
60733         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60734         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60735         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60736         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60737         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60738         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60739         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60740         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60741         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60742         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60743         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60744         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60745         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60746         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60747         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60748         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60749         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60750         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60751         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60752         (REG_FIXED): Renamed from REGS_FIXED.
60753         (REG_NREGS): Renamed from RE_NREGS.
60754
60755         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60756         of other REG_* macros, since POSIX says the user is allowed to
60757         #undef these macros selectively.
60758
60759         (reg_errcode_t): Update comment stating what other tables need
60760         to be consistent.
60761
60762         Rename the following enum values to obey POSIX requirements.
60763         The old names are still visible as macros.
60764         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60765         is not defined, since GNU is supposed to be a superset of POSIX as
60766         much as possible, and since we want reg_errcode_t to be a signed
60767         type for implementation consistency.
60768         (_REG_NOERROR): Renamed from REG_NOERROR.
60769         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60770         (_REG_BADPAT): Renamed from REG_BADPAT.
60771         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60772         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60773         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60774         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60775         (_REG_EBRACK): Renamed from REG_EBRACK.
60776         (_REG_EPAREN): Renamed from REG_EPAREN.
60777         (_REG_EBRACE): Renamed from REG_EBRACE.
60778         (_REG_BADBR): Renamed from REG_BADBR.
60779         (_REG_ERANGE): Renamed from REG_ERANGE.
60780         (_REG_ESPACE): Renamed from REG_ESPACE.
60781         (_REG_BADRPT): Renamed from REG_BADRPT.
60782         (_REG_EEND): Renamed from REG_EEND.
60783         (_REG_ESIZE): Renamed from REG_ESIZE.
60784         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60785         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60786         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60787         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60788         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60789
60790         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60791         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60792         changed.  But support the old name if the new one is not defined
60793         and if _REGEX_SOURCE.
60794
60795         Change the following member names in struct re_pattern_buffer.
60796         The old names are still supported if !_REGEX_SOURCE.
60797         The new names are always supported, regardless of _REGEX_SOURCE.
60798         (re_buffer): Renamed from buffer.
60799         (re_allocated): Renamed from allocated.
60800         (re_used): Renamed from used.
60801         (re_syntax): Renamed from syntax.
60802         (re_fastmap): Renamed from fastmap.
60803         (re_translate): Renamed from translate.
60804         (re_can_be_null): Renamed from can_be_null.
60805         (re_regs_allocated): Renamed from regs_allocated.
60806         (re_fastmap_accurate): Renamed from fastmap_accurate.
60807         (re_no_sub): Renamed from no_sub.
60808         (re_not_bol): Renamed from not_bol.
60809         (re_not_eol): Renamed from not_eol.
60810         (re_newline_anchor): Renamed from newline_anchor.
60811
60812         Change the following member names in struct re_registers.
60813         The old names are still supported if !_REGEX_SOURCE.
60814         The new names are always supported, regardless of _REGEX_SOURCE.
60815         (rm_num_regs): Renamed from num_regs.
60816         (rm_start): Renamed from start.
60817         (rm_end): Renamed from end.
60818
60819         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60820         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60821         Prepend __ to parameter names.
60822
60823         Undo yesterday's changes.
60824
60825 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60826
60827         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60828         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60829         lib/regex.c.
60830
60831 2005-08-24  Jim Meyering  <jim@meyering.net>
60832
60833         Sync from coreutils.
60834         * m4/fcntl-safer.m4: New file.
60835
60836         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60837         and object files for this module.
60838
60839 2005-08-24  Jim Meyering  <jim@meyering.net>
60840
60841         Sync from coreutils.
60842         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60843
60844 2005-08-24  Jim Meyering  <jim@meyering.net>
60845
60846         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60847         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60848
60849 2005-08-24  Jim Meyering  <jim@meyering.net>
60850
60851         * modules/fcntl-safer: New module.
60852         * modules/fts (Depends-on): Add fcntl-safer.
60853         * MODULES.html.sh (File descriptor based Input/Output):
60854         Add fcntl-safer.
60855
60856 2005-08-24  Bruno Haible  <bruno@clisp.org>
60857
60858         Support for unit test modules.
60859         * modules/README: Mention tests modules.
60860         * modules/TEMPLATE-TESTS: New file.
60861         * gnulib-tool: New options --extract-tests-module, --with-tests and
60862         --tests-base (unused for the moment).
60863         (testsbase, inctests): New variables.
60864         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60865         (func_verify_module): Exclude TEMPLATE-TESTS.
60866         (func_verify_nontests_module, func_verify_tests_module): New functions.
60867         (func_get_dependencies): Add implicit dependency for tests modules.
60868         (func_get_tests_module): New function.
60869         (func_modules_transitive_closure): When --with-tests was specified,
60870         include the unit tests as well, unless explicitly avoided.
60871         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60872         (func_emit_tests_Makefile_am): New function.
60873         (func_create_testdir): When --with-tests was specified, emit a
60874         tests/ directory.
60875         * MODULES.html.sh (Future developments): Update.
60876
60877 2005-08-24  Bruno Haible  <bruno@clisp.org>
60878
60879         * modules/tls-tests: New file.
60880         * tests/test-tls.c: New file, from GNU gettext.
60881
60882 2005-08-24  Bruno Haible  <bruno@clisp.org>
60883
60884         * modules/lock-tests: New file.
60885         * tests/test-lock.c: New file, from GNU gettext.
60886
60887 2005-08-24  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/lock.h: Add multiple inclusion guard.
60890         * lib/tls.h: Add multiple inclusion guard.
60891
60892 2005-08-24  Bruno Haible  <bruno@clisp.org>
60893
60894         * gnulib-tool: Add support for the --aux-dir option to
60895         --create-testdir, --create-megatestdir, --test, --megatest.
60896         (func_create_testdir, func_create_megatestdir): Optionally emit a
60897         AC_CONFIG_AUX_DIR directive.
60898         (create-testdir, create-megatestdir, test, megatest): Provide a
60899         default value for $auxdir.
60900
60901 2005-08-24  Bruno Haible  <bruno@clisp.org>
60902
60903         * gnulib-tool (import): Use compound statement instead of subshell
60904         where possible.
60905
60906 2005-08-24  Bruno Haible  <bruno@clisp.org>
60907
60908         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60909
60910 2005-08-24  Bruno Haible  <bruno@clisp.org>
60911
60912         * gnulib-tool (func_version): Update.
60913
60914 2005-08-24  Bruno Haible  <bruno@clisp.org>
60915
60916         * gnulib-tool (func_import, func_create_testdir,
60917         func_create_megatestdir): Quote all autoconf macro arguments.
60918
60919 2005-08-24  Bruno Haible  <bruno@clisp.org>
60920
60921         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60922         option --force, because --force causes the aclocal.m4 of each
60923         subdirectory to be newer than the corresponding config.h.in.
60924
60925 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60928         All contents moved to gl_REGEX.
60929         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60930         assume that it does.
60931
60932 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         * lib/regex.h (REG_NOSYS)
60935         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60936         Define, since POSIX requires it as of 2001.
60937         (_REG_ENOSYS)
60938         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60939         New private symbol, used to keep the enum signed in all cases.
60940         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60941         Youngman in
60942         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60943
60944         * lib/regex_internal.c (re_string_skip_chars, register_state):
60945         (calc_state_hash):
60946         Remove forward decls; no longer needed now that we use prototypes.
60947         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60948         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60949         (clean_state_log_if_needed): Likewise.
60950
60951 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         * config/srclist.txt: Add glibc bugs 1231-1233.
60954
60955 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         Fix problems reported by Sam Steingold in
60958         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60959         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60960         assumed that reg_errcode_t is a signed type, which is not
60961         necessarily true if _XOPEN_SOURCE is not defined.
60962         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60963         since some compilers warn about it otherwise.
60964
60965 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60968         (init_word_char, create_initial_state, duplicate_node_closure):
60969         (fetch_token, peek_token_bracket, build_range_exp):
60970         (build_collating_symbol): Remove forward decls; no longer needed
60971         now that we use prototypes.
60972
60973         * lib/regcomp.c:
60974         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60975         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60976         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60977         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60978         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60979         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60980         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60981         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60982         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60983         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60984         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60985         (build_charclass, build_charclass_op, fetch_number, create_tree):
60986         (create_token_tree, mark_opt_subexp, duplicate_tree):
60987         Use prototypes rather than old-style definitions.
60988
60989         * lib/regex_internal.c:
60990         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60991         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60992         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60993         (re_string_reconstruct, re_string_peek_byte_case):
60994         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60995         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60996         (re_node_set_init_copy, re_node_set_add_intersect):
60997         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60998         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60999         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61000         (re_acquire_state, re_acquire_state_context, register_state):
61001         (create_ci_newstate, create_cd_newstate, free_state):
61002         Likewise.
61003         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
61004         re_search_2):
61005         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
61006         (re_search_internal, prune_impossible_nodes):
61007         (acquire_init_state_context, check_matching, static):
61008         (check_halt_node_context, check_halt_state_context, proceed_next_node):
61009         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
61010         (update_regs, sift_states_backward, build_sifted_states):
61011         (clean_state_log_if_needed, merge_state_array):
61012         (update_cur_sifted_state, add_epsilon_src_nodes):
61013         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
61014         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
61015         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
61016         (find_recover_state, check_subexp_matching_top, transit_state_mb):
61017         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
61018         (check_arrival, check_arrival_add_next_nodes):
61019         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61020         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61021         (check_node_accept_bytes, check_node_accept, extend_buffers):
61022         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
61023         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61024         (sift_ctx_init):
61025         Likewise.
61026
61027         * lib/regex_internal.h:
61028         (re_string_allocate, re_string_construct, re_string_reconstruct):
61029         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
61030         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
61031         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
61032         (re_string_context_at, re_string_peek_byte_case):
61033         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
61034         is defined, since we now use prototypes always.
61035
61036         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
61037         C89 or better.  All uses removed.
61038
61039 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61040
61041         * config/srclist.txt: Add glibc bugs 1220-1227.
61042
61043 2005-08-20  Jim Meyering  <jim@meyering.net>
61044
61045         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
61046         of unused local, dfa.
61047
61048 2005-08-20  Bruno Haible  <bruno@clisp.org>
61049
61050         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
61051
61052 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
61055         (re_node_set_insert_last, re_dfa_add_node):
61056         Rename local variables to avoid GCC shadowing warnings.
61057
61058 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61059
61060         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
61061         [defined lint]: Suppress bogus uninitialized-variable warnings.
61062
61063         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
61064         and let the caller return REG_ESPACE if out of space.  This
61065         removes an uninitialied-variable warning with GCC 4.0.1, and also
61066         avoids taking the address of a local variable.  All callers
61067         changed.
61068
61069 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
61072         $LIBCSRC/posix/regexec.c.
61073         Add glibc bug 1217 for regcomp.c.
61074
61075 2005-08-19  Jim Meyering  <jim@meyering.net>
61076
61077         * lib/regexec.c (proceed_next_node): Redo local variables to
61078         avoid GCC shadowing warnings.
61079
61080 2005-08-18  Bruno Haible  <bruno@clisp.org>
61081
61082         * lib/strstr.c (strstr): Fix return value in multibyte case.
61083         * lib/strcasestr.c (strcasestr): Likewise.
61084
61085 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61088
61089 2005-08-17  Jim Meyering  <jim@meyering.net>
61090
61091         Make the %s format (seconds since the epoch) work for a negative
61092         number and when used with a zero-padded field width, e.g. %015s.
61093
61094         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61095         label so that it precedes the code to set `digits'.  Otherwise,
61096         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61097         print `00-22'.  Now, it prints `-0022', as it should.
61098
61099 2005-08-17  Bruno Haible  <bruno@clisp.org>
61100
61101         * modules/strstr (Files): Add m4/mbrtowc.m4.
61102         (Depends-on): Add mbuiter.
61103
61104 2005-08-17  Bruno Haible  <bruno@clisp.org>
61105
61106         * modules/strcasestr: New file.
61107         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61108         strcasestr.
61109
61110 2005-08-17  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61113
61114 2005-08-17  Bruno Haible  <bruno@clisp.org>
61115
61116         * modules/mbuiter: New file.
61117         * MODULES.html.sh (Extended multibyte and wide character utilities):
61118         Add mbuiter.
61119
61120 2005-08-17  Bruno Haible  <bruno@clisp.org>
61121
61122         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61123         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61124
61125 2005-08-17  Bruno Haible  <bruno@clisp.org>
61126
61127         * m4/strcasestr.m4: New file.
61128
61129 2005-08-17  Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
61132         * lib/strstr.c: Completely rewritten, with multibyte locale support.
61133
61134 2005-08-17  Bruno Haible  <bruno@clisp.org>
61135
61136         * lib/strcasestr.h: New file.
61137         * lib/strcasestr.c: New file.
61138
61139 2005-08-17  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/strcasecmp.c: Use mbuiter.h.
61142
61143 2005-08-17  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/mbuiter.h: New file.
61146
61147 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61148
61149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
61150         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
61151         and gl_GETOPT are both invoked via different paths (as happens
61152         with GNU tar CVS because it uses both argp and getopt), the former
61153         wins.
61154
61155 2005-08-16  Bruno Haible  <bruno@clisp.org>
61156
61157         * modules/tls: New file.
61158         * MODULES.html.sh (Multithreading): Add tls.
61159
61160 2005-08-16  Bruno Haible  <bruno@clisp.org>
61161
61162         * modules/strnlen1: New file.
61163         * MODULES.html.sh (String handling): Add strnlen1.
61164
61165 2005-08-16  Bruno Haible  <bruno@clisp.org>
61166
61167         * modules/strcase (Files): Add m4/mbrtowc.m4.
61168         (Depends-on): Add strnlen1, mbchar.
61169
61170 2005-08-16  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/mbiter: New file.
61173         * MODULES.html.sh (Extended multibyte and wide character utilities):
61174         Add mbiter.
61175
61176 2005-08-16  Bruno Haible  <bruno@clisp.org>
61177
61178         * modules/mbfile: New file.
61179         * MODULES.html.sh (Extended multibyte and wide character utilities):
61180         Add mbfile.
61181
61182 2005-08-16  Bruno Haible  <bruno@clisp.org>
61183
61184         * modules/mbchar: New file.
61185         * MODULES.html.sh (Extended multibyte and wide character utilities):
61186         New section.
61187
61188 2005-08-16  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/tls.m4: New file, from GNU gettext.
61191
61192 2005-08-16  Bruno Haible  <bruno@clisp.org>
61193
61194         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
61195         always.
61196         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
61197
61198 2005-08-16  Bruno Haible  <bruno@clisp.org>
61199
61200         * m4/mbiter.m4: New file.
61201
61202 2005-08-16  Bruno Haible  <bruno@clisp.org>
61203
61204         * m4/mbfile.m4: New file.
61205
61206 2005-08-16  Bruno Haible  <bruno@clisp.org>
61207
61208         * m4/mbchar.m4: New file.
61209
61210 2005-08-16  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/tls.h: New file, from GNU gettext.
61213         * lib/tls.c: New file, from GNU gettext.
61214
61215 2005-08-16  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/strnlen1.h: New file.
61218         * lib/strnlen1.c: New file.
61219
61220 2005-08-16  Bruno Haible  <bruno@clisp.org>
61221
61222         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
61223         (mbi_init): Update.
61224         (mbi_avail, mbi_advance): Let the iteration end before the terminating
61225         NUL byte, not after it.
61226
61227 2005-08-16  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/strcase.h (strcasecmp): Add note in comments.
61230         * lib/strncasecmp.c: Use code from strcasecmp.c.
61231         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
61232         (strcasecmp): Work correctly in multibyte locales.
61233
61234 2005-08-16  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/mbiter.h: New file.
61237
61238 2005-08-16  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/mbfile.h: New file.
61241
61242 2005-08-16  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/mbchar.h: New file.
61245         * lib/mbchar.c: New file.
61246
61247 2005-08-16  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
61250         the valid ones. Makes the comparison operations transitive:
61251         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
61252         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
61253
61254 2005-08-15  Simon Josefsson  <jas@extundo.com>
61255
61256         * modules/ssize_t (License): Change to 'unlimited'.
61257
61258         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61259
61260 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61263         Add comments for each pending glibc patch.
61264
61265 2005-08-15  Bruno Haible  <bruno@clisp.org>
61266
61267         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61268         __cplusplus is defined.
61269
61270 2005-08-14  Jim Meyering  <jim@meyering.net>
61271
61272         Sync from coreutils.
61273
61274         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61275         Use the hash-table-based cycle-detection code not just when
61276         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61277         Reported by James Youngman in
61278         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61279         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61280         FTS_TIGHT_CYCLE_CHECK.
61281         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61282         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61283         once again.
61284         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61285         * lib/fts.c (fd_safer): Remove decl.
61286         Include fcntl--.h rather than unistd-safer.h
61287         (fts_safe_changedir): Don't call fd_safer; no longer needed
61288         now that we include fcntl--.h.
61289
61290 2005-08-12  Simon Josefsson  <jas@extundo.com>
61291
61292         * modules/getndelim2: Use ssize_t module.
61293         * modules/getnline: Likewise.
61294         * modules/safe-read: Likewise.
61295         * modules/xreadlink: Likewise.
61296
61297         * modules/ssize_t: New file.
61298
61299 2005-08-12  Simon Josefsson  <jas@extundo.com>
61300
61301         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61302
61303 2005-08-12  Simon Josefsson  <jas@extundo.com>
61304
61305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61306         ssize_t.
61307
61308 2005-08-12  Simon Josefsson  <jas@extundo.com>
61309
61310         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61311         readline, getdelim and check_version.
61312         (Support for systems lacking ISO C 99: Sizes of integer types):
61313         Add size_max.
61314
61315 2005-08-12  Bruno Haible  <bruno@clisp.org>
61316
61317         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61318
61319 2005-08-11  Simon Josefsson  <jas@extundo.com>
61320
61321         * modules/readline: New file.
61322
61323         * modules/strnlen (Files): Add strnlen.h.
61324
61325 2005-08-11  Simon Josefsson  <jas@extundo.com>
61326
61327         * m4/readline.m4: New file.
61328
61329 2005-08-11  Simon Josefsson  <jas@extundo.com>
61330
61331         * lib/readline.h, readline.c: New file.
61332
61333 2005-08-11  Simon Josefsson  <jas@extundo.com>
61334
61335         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61336         gl_AVOID.
61337
61338 2005-08-11  Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61341
61342 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61343
61344         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61345
61346 2005-08-10  Simon Josefsson  <jas@extundo.com>
61347
61348         * tests/test-iconvme.c: New file.
61349
61350 2005-08-10  Simon Josefsson  <jas@extundo.com>
61351
61352         * m4/strnlen.m4: New file.
61353
61354         * m4/strndup.m4: Don't check for strnlen declaration, done in
61355         strnlen.m4.
61356
61357 2005-08-10  Simon Josefsson  <jas@extundo.com>
61358
61359         * lib/strndup.c: Use strnlen.h.
61360
61361         * lib/strnlen.h: New file.
61362
61363 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61364
61365         * README: Typos.
61366
61367 2005-08-02  Simon Josefsson  <jas@extundo.com>
61368
61369         * modules/readline: New file.
61370
61371 2005-08-02  Simon Josefsson  <jas@extundo.com>
61372
61373         * modules/getdelim: New file.
61374
61375         * modules/getline: Rewrite, don't use getndelim2.
61376
61377 2005-08-02  Simon Josefsson  <jas@extundo.com>
61378
61379         * m4/getline.m4: Separate out getdelim stuff into separate module.
61380
61381         * m4/getdelim.m4: New file.
61382
61383 2005-08-02  Simon Josefsson  <jas@extundo.com>
61384
61385         * lib/getline.h, getline.c: Rewrite.
61386
61387         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61388
61389 2005-07-31  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/lock.h (gl_lock_initializer): New macro.
61392         (gl_lock_define_initialized): Use it.
61393         (gl_rwlock_initializer): New macro.
61394         (gl_rwlock_define_initialized): Use it.
61395         (gl_recursive_lock_initializer): New macro.
61396         (gl_recursive_lock_define_initialized): Use it.
61397
61398 2005-07-30  Karl Berry  <karl@gnu.org>
61399
61400         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61401         Report from Ben Pfaff, regarding getopt.
61402
61403 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61406         normal way.
61407         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61408         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61409         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61410         (gl_GETOPT): Use the new macros.  Most of the implementation
61411         is moved to the new macros.  This is for programs like Emacs
61412         that don't want all the functionality of gl_GETOPT.
61413
61414 2005-07-26  Bruno Haible  <bruno@clisp.org>
61415
61416         * m4/lock.m4: Update from GNU gettext.
61417
61418 2005-07-26  Bruno Haible  <bruno@clisp.org>
61419
61420         * lib/lock.h: Update from GNU gettext.
61421         * lib/lock.c: Update from GNU gettext.
61422
61423 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61424
61425         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61426         obsolescent AC_TRY_RUN.  Include the default includes files, for
61427         'exit'.
61428
61429 2005-07-24  Bruno Haible  <bruno@clisp.org>
61430
61431         * modules/visibility: New file.
61432         * MODULES.html.sh (Misc): Add visibility.
61433
61434 2005-07-24  Bruno Haible  <bruno@clisp.org>
61435
61436         * m4/visibility.m4: New file.
61437
61438 2005-07-24  Bruno Haible  <bruno@clisp.org>
61439
61440         * doc/visibility.texi: New file.
61441
61442 2005-07-22  Bruno Haible  <bruno@clisp.org>
61443
61444         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61445         $(ALLOCA_H), redundant through BUILT_SOURCES.
61446         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61447         redundant through BUILT_SOURCES.
61448         * modules/byteswap (Makefile.am): Remove explicit dependency on
61449         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61450         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61451         $(FNMATCH_H), redundant through BUILT_SOURCES.
61452         * modules/getopt (Makefile.am): Remove explicit dependency on
61453         $(GETOPT_H), redundant through BUILT_SOURCES.
61454         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61455         redundant through BUILT_SOURCES.
61456         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61457         redundant through BUILT_SOURCES.
61458         * modules/stdbool (Makefile.am): Remove explicit dependency on
61459         $(STDBOOL_H), redundant through BUILT_SOURCES.
61460         * modules/stdint (Makefile.am): Remove explicit dependency on
61461         $(STDINT_H), redundant through BUILT_SOURCES.
61462         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61463         Remove explicit dependency on $(SYSEXITS_H).
61464         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61465
61466 2005-07-18  Simon Josefsson  <jas@extundo.com>
61467
61468         * lib/check-version.c (check_version): Accept identical versions too.
61469
61470 2005-07-18  Bruno Haible  <bruno@clisp.org>
61471
61472         * modules/lock: New file.
61473         * MODULES.html.sh (Multithreading): New section.
61474
61475 2005-07-18  Bruno Haible  <bruno@clisp.org>
61476
61477         * m4/lock.m4: New file, from GNU gettext.
61478
61479 2005-07-18  Bruno Haible  <bruno@clisp.org>
61480
61481         * lib/lock.h: New file, from GNU gettext.
61482         * lib/lock.c: New file, from GNU gettext.
61483
61484 2005-07-18  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/lock.h (gl_once_t): New type.
61487         (gl_once_define, gl_once): New macros.
61488         * lib/lock.c (fresh_once): New variable.
61489         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61490         functions.
61491
61492 2005-07-16  Simon Josefsson  <jas@extundo.com>
61493
61494         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61495         workaround, suggested by Bruno.
61496
61497 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61498
61499         * modules/xalloc (Depends-on): Add xalloc-die.
61500         * modules/xvasprintf (Depends-on): Add xalloc-die.
61501
61502 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61503
61504         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61505         with a minor change.
61506
61507 2005-07-15  Bruno Haible  <bruno@clisp.org>
61508
61509         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61510         When using lib/poll.c, define poll as rpl_poll.
61511
61512 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61513
61514         * modules/argp (Depends-on): Remove unlocked-io.
61515
61516 2005-07-14  Derek Price  <derek@ximbiot.com>
61517
61518         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61519         for glob symlink bug.
61520
61521 2005-07-14  Bruno Haible  <bruno@clisp.org>
61522
61523         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61524         Instead, test for *_unlocked function declarations directly.
61525
61526 2005-07-11  Simon Josefsson  <jas@extundo.com>
61527
61528         * modules/size_max: New file.
61529
61530         * modules/xsize: Depend on size_max module for size_max.m4.
61531
61532 2005-07-11  Simon Josefsson  <jas@extundo.com>
61533
61534         * lib/size_max.h: New file.
61535
61536 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61537
61538         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61539         copyright symbol and the year.
61540         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61541         (version_etc_va): Use parameterized copyright notice.
61542         Reword to conform to the current GNU coding standards.
61543
61544 2005-07-11  Karl Berry  <karl@gnu.org>
61545
61546         * doc/gnulib.texi (Quoting): new node.
61547         (Initial import): more info, from Patrice.
61548
61549 2005-07-11  Bruno Haible  <bruno@clisp.org>
61550
61551         * gnulib-tool (func_usage): Document option --avoid.
61552         (Command line options): Handle --avoid.
61553         (func_acceptable): New function.
61554         (func_modules_transitive_closure): Use it.
61555
61556 2005-07-11  Bruno Haible  <bruno@clisp.org>
61557
61558         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61559         Reported by Jim Meyering.
61560
61561 2005-07-10  Bruno Haible  <bruno@clisp.org>
61562
61563         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61564         Needed when size_t is smaller than 'unsigned int'.
61565         Reported by Paul Eggert.
61566
61567 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61568
61569         * modules/argp (Depends-on): Add unlocked-io
61570
61571 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61572
61573         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61574         block of defines.
61575
61576 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61579         fix now.
61580
61581 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61582         and Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61585         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61586
61587 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         * modules/regex (Files): Add lib/regex_internal.c,
61590         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61591         (Depends-on): Add extensions.
61592         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61593
61594 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61595
61596         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61597         pathconf.
61598         * m4/same.m4 (gl_SAME): Likewise.
61599         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61600
61601         * m4/regex.m4: Adjust to new libc regex implementation.
61602         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61603         all the .c and .h parts of (the new) regex.
61604         Quote the m4 stuff better.
61605         Check for RE_ICASE bug of old gnulib.
61606         Check for REG_STARTEND of recent libc.
61607         Rename local variables from jm_* to gl_*.
61608         Quote operand of "test -f".
61609         Say "recent enough" version of libc, not "version 2".
61610         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61611         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61612         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61613         Remove check for btowc, isascii.
61614         Require AM_LANGINFO_CODESET.
61615
61616 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61617
61618         * lib/regex.c, regex.h: Sync from libc.
61619         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61620         * lib/regexec.c:
61621         New files, synced from libc, except that regex_internal.h
61622         currently has a small porting fix.
61623
61624 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61627         regex_internal.c, regexec.c.
61628         Add regex_internal.h too, but as a comment, since the libc version
61629         is currently broken in gnulib mode.
61630
61631 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61632
61633         Support programs like Emacs that use gnulib but not gettext.
61634         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61635         * modules/gettext-h: New file.
61636         * modules/gettext (Files): Remove lib/gettext.h.
61637         (Depends-on): Add gettext-h.
61638         (Makefile.am): Remove lib_SOURCES.
61639         * modules/argmatch, modules/c-stack, modules/closeout:
61640         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61641         * modules/execute, modules/file-type, modules/getaddrinfo:
61642         * modules/getopt, modules/human, modules/javacomp:
61643         * modules/javaexec, modules/mkdir-p, modules/obstack:
61644         * modules/openat, modules/pagealign_alloc, modules/pipe:
61645         * modules/quotearg, modules/regex, modules/rpmatch:
61646         * modules/unicodeio, modules/userspec, modules/version-etc:
61647         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61648         * modules/xsetenv:
61649         Depend on gettext-h, not gettext.
61650
61651 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         * gnulib-tool (func_import): Add support for 'public domain' license.
61654         * modules/alloca, modules/atexit, modules/memmove:
61655         Now public domain, not GPL.
61656         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61657         * modules/realloc, modules/strerror, modules/strtod:
61658         Now LGPL, not GPL.
61659
61660 2005-07-05  Bruno Haible  <bruno@clisp.org>
61661
61662         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61663         autoconf CVS. Needed for mingw.
61664
61665 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         Remove the dependency of the strftime module on the tzset module.
61668         * modules/strftime (Depends-on): Remove dependency on tzset.
61669
61670 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61671
61672         Remove the dependency of the strftime module on the tzset module.
61673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61674         gl_FUNC_TZSET_CLOBBER.
61675
61676 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         Remove the dependency of the strftime module on the tzset module.
61679         * lib/strftime.c (my_strftime)
61680         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61681         Copy the input structure, to work around some of the bug with
61682         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61683         Solaris releases, you should also use the tzset module, but we won't
61684         require it as a dependency any more since we don't want LGPLed code
61685         to depend on GPLed code.
61686
61687 2005-07-02  Jim Meyering  <jim@meyering.net>
61688
61689         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61690         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61691         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61692         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61693
61694 2005-07-02  Jim Meyering  <jim@meyering.net>
61695
61696         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61697
61698 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61699
61700         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61701         declares only 'struct timespec;' (!).
61702
61703 2005-07-01  Jim Meyering  <jim@meyering.net>
61704
61705         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61706         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61707         * lib/save-cwd.c, tempname.c:
61708         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61709         and don't include <sys/file.h>).
61710
61711 2005-06-29  Jim Meyering  <jim@meyering.net>
61712
61713         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61714         type name.  Use the variable name instead.
61715         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61716         Likewise.
61717
61718 2005-06-28  Simon Josefsson  <jas@extundo.com>
61719
61720         * modules/check-version (Files): Add check-version.m4.
61721
61722 2005-06-28  Simon Josefsson  <jas@extundo.com>
61723
61724         * m4/check-version.m4: New file, suggested by Jim Meyering
61725         <jim@meyering.net>.
61726
61727 2005-06-28  Simon Josefsson  <jas@extundo.com>
61728
61729         * lib/check-version.h, lib/check-version.c: New files.
61730
61731 2005-06-28  Simon Josefsson  <jas@extundo.com>
61732
61733         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61734         collision with global variable.  Better indentation.  Don't
61735         increment buffer pointer beyond buffer end.  Based on comments
61736         from Paul Eggert <eggert@cs.ucla.edu>.
61737
61738         * lib/base64.h: Indent.
61739
61740 2005-06-28  Simon Josefsson  <jas@extundo.com>
61741
61742         * doc/gnulib.texi (Library version handling): New section.
61743
61744 2005-06-28  Jim Meyering  <jim@meyering.net>
61745
61746         * check-module (find_included_lib_files): Hard-code another
61747         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61748         but modules/fts-lgpl (correctly) does not list those files.
61749
61750         * modules/canonicalize (Files): Add lib/pathmax.h.
61751
61752 2005-06-25  Simon Josefsson  <jas@extundo.com>
61753
61754         * modules/check-version: New file.
61755
61756 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61759         initializer of struct addrinfo, as an indication that we don't
61760         care how many members the structure has.
61761
61762 2005-06-24  Derek Price  <derek@ximbiot.com>
61763         and Bruno Haible  <bruno@clisp.org>
61764
61765         Remove stat module & update lstat.
61766         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61767         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61768         * m4/stat.m4: Remove this file.
61769
61770 2005-06-24  Derek Price  <derek@ximbiot.com>
61771         and Bruno Haible  <bruno@clisp.org>
61772
61773         Remove stat module & update lstat.
61774         * lib/stat.c: Remove this file...
61775         (slash_aware_lstat): ...moving this content and its support...
61776         * lib/lstat.c (rpl_lstat): ...into here.
61777         * lib/lstat.h: New file.
61778
61779 2005-06-24  Derek Price  <derek@ximbiot.com>
61780         and Bruno Haible  <bruno@clisp.org>
61781
61782         Remove stat module & update lstat.
61783         * config/srclist.txt (libc sources): Remove stat.
61784
61785 2005-06-24  Derek Price  <derek@ximbiot.com>
61786         and Bruno Haible  <bruno@clisp.org>
61787
61788         Remove stat module & update lstat.
61789         * MODULES.html.sh (stat): Remove.
61790         * MODULES.html: Regenerated.
61791         * modules/lstat (Description): Correct function name.
61792         (Files): Add "lstat.h".
61793         (Depends-on): Remove stat, add xalloc, stat-macros.
61794         * modules/stat: Remove this file.
61795         (Include): Add "lstat.h", remove <sys/stat.h>.
61796
61797 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61798
61799         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61800         (ranged_convert): Don't save conversion in a temporary struct.
61801         This causes a warning with GCC 4.0.0, and anyway in the typical
61802         case it's not worth the extra 100 bytes or so of code.
61803         (ranged_convert, __mktime_internal): When calling a function via a
61804         pointer P, use P () rather than (*P) (), as we now assume C89 or
61805         better.
61806
61807 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61810         "who -r" failed to give output.  Problem reported by Tim Waugh.
61811
61812         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61813         (xcalloc): Use it to avoid needless tests.
61814         Problem reported by Jim Meyering.
61815
61816 2005-06-20  Derek Price  <derek@ximbiot.com>
61817
61818         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61819         unnecessary for Autoconfs > 2.59c.
61820
61821 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61822
61823         * lib/argp.h (__option_is_short): Check upper limit of
61824         __key. Isprint() requires its argument to have the value
61825         of an unsigned char or EOF.
61826
61827 2005-06-16  Jim Meyering  <jim@meyering.net>
61828
61829         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61830         when either N or S is zero.
61831
61832 2005-06-16  Derek Price  <derek@ximbiot.com>
61833
61834         * m4/bison.m4: Declare YACC & YFLAGS precious.
61835
61836 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61837
61838         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61839         multibyte string or pattern, fall back on unibyte matching.
61840         Problem reported by James Youngman.
61841
61842 2005-06-08  Bruno Haible  <bruno@clisp.org>
61843
61844         * modules/csharpcomp: New file.
61845         * MODULES.html.sh (C#): Add csharpcomp.
61846
61847 2005-06-08  Bruno Haible  <bruno@clisp.org>
61848
61849         * m4/csharpcomp.m4: New file, from GNU gettext.
61850
61851 2005-06-08  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/csharpcomp.h: New file, from GNU gettext.
61854         * lib/csharpcomp.c: New file, from GNU gettext.
61855         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61856
61857 2005-06-08  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61860         warning on mingw.
61861
61862 2005-06-07  Derek Price  <derek@ximbiot.com>
61863
61864         Sync from CVS.
61865         * lib/glob_.h: Indent nested #ifdef.
61866
61867 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61868
61869         Sync from coreutils.
61870         Use "file name" when talking about file names, instead of "filename"
61871         or "path", as per the GNU coding standards.
61872         * lib/mkdir-p.c: Renamed from makepath.c.
61873         (make_dir_parents): Renamed from make_path.  All callers changed.
61874         * lib/mkdir-p.h: Likewise.  All includers changed.
61875         * lib/filenamecat.c: Renamed from path-concat.c.
61876         (file_name_concat): Renamed from path_concat.  All callers changed.
61877         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61878         * lib/filenamecat.h: Likewise.  All includers changed.
61879         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61880         in comments or local variable names.
61881         * lib/basename.c: Likewise.
61882         * lib/canonicalize.c, canonicalize.h: Likewise.
61883         * lib/dirname.c, dirname.h: Likewise.
61884         * lib/euidaccess.c: Likewise.
61885         * lib/exclude.c: Likewise
61886         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61887         * lib/fsusage.c, fsuage.h: Likewise.
61888         * lib/fts.c, fts_.h: Likewise.
61889         * lib/getcwd.c: Likewise.
61890         * lib/getloadavg.c: Likewise.
61891         * lib/mkstemp.c: Likewise.
61892         * lib/mountlist.c, mountlist.h: Likewise.
61893         * lib/openat.c, openat.h: Likewise.
61894         * lib/readlink-stub.c: Likewise.
61895         * lib/readutmp.c, readutmp.h: Likewise.
61896         * lib/rename.c: Likewise.
61897         * lib/rmdir.c: Likewise.
61898         * lib/same.c: Likewise.
61899         * lib/savedir.c: Likewise.
61900         * lib/stripslash.c: Likewise.
61901         * lib/tempname.c: Likewise.
61902         * lib/xreadlink.c: Likewise.
61903         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61904         All uses changed.
61905         * lib/exclude.h: Likewise.
61906
61907         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61908         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61909         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61910         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61911         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61912         files have been getting away with it for years (MORE/BSD 4.3
61913         is extinct now).
61914         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61915         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61916
61917         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61918         Define to 256, not 255, as per modern POSIX.
61919
61920 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61921
61922         Sync from coreutils.
61923         Use "file name" when talking about file names, instead of "filename"
61924         or "path", as per the GNU coding standards.
61925         * MODULES.html.sh: mkdir-p renamed from makepath.
61926         filenamecat renamed from path-concat.
61927         * modules/filenamecat: Renamed from modules/path-concat.
61928         (Files): filenamecat.h and filenamecat.c renamed from
61929         path-concat.h and path-concat.c.
61930         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61931         (Include): filenamecat.h, not path-concat.h.
61932         * modules/mkdir-p: Renamed from modules/makepath.
61933         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61934         makepath.c.
61935         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61936         (Include): mkdir-p.h, not makepath.h.
61937
61938 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         Sync from coreutils.
61941         * m4/mkdir-p.m4: Renamed from makepath.m4.
61942         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61943         Rename files from makepath.c to mkdir-p.c, and from
61944         makepath.h to mkdir-p.h.
61945         * m4/filenamecat.m4: Renamed from path-concat.m4.
61946         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61947         Rename files from path-concat.c to filenamecat.c,
61948         and from path-concat.h to filenamecat.h.
61949         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61950         "file name" in local variables or comments.
61951         * m4/rename.m4: Likewise.
61952
61953 2005-06-01  Bruno Haible  <bruno@clisp.org>
61954
61955         * modules/csharpexec: New file.
61956         * MODULES.html.sh (C#): New section.
61957
61958 2005-06-01  Bruno Haible  <bruno@clisp.org>
61959
61960         * m4/csharp.m4: New file, from GNU gettext.
61961         * m4/csharpexec.m4: New file, from GNU gettext.
61962
61963 2005-06-01  Bruno Haible  <bruno@clisp.org>
61964
61965         * lib/csharpexec.h: New file, from GNU gettext.
61966         * lib/csharpexec.c: New file, from GNU gettext.
61967         * lib/csharpexec.sh.in: New file, from GNU gettext.
61968
61969 2005-05-31  Derek Price  <derek@ximbiot.com>
61970             Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         Sync from cvs.
61973         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61974
61975 2005-05-31  Derek Price  <derek@ximbiot.com>
61976             Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         Sync from cvs.
61979         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61980
61981 2005-05-29  Derek Price  <derek@ximbiot.com>
61982
61983         * config/srclist.txt (glob_.h, glob.c): Add these files.
61984
61985 2005-05-29  Derek Price  <derek@ximbiot.com>
61986
61987         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61988         * modules/glob: New file.
61989         * modules/getlogin_r: Add link to POSIX spec in description.
61990
61991 2005-05-29  Derek Price  <derek@ximbiot.com>
61992             Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         * m4/glob.m4: New file.
61995
61996 2005-05-29  Derek Price  <derek@ximbiot.com>
61997             Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         * lib/glob_.h, lib/glob.c: New files.
62000
62001 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         * modules/fts (Files): Remove m4/inttypes-pri.m4.
62004         * modules/fts-lgpl (Depends-on): Remove gettext.
62005
62006 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62007
62008         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
62009         and don't require gt_INTTYPES_PRI.
62010
62011 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
62014
62015         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
62016         the configuration hassle isn't worth it.
62017         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
62018         (LONGEST_MODIFIER, PRIuMAX): Remove.
62019
62020 2005-05-27  Bruno Haible  <bruno@clisp.org>
62021
62022         * lib/getlogin_r.h: Remove second include of <stddef.h>.
62023
62024 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62025
62026         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
62027         _POSIX_PTHREAD_SEMANTICS for Solaris.
62028
62029 2005-05-25  Derek Price  <derek@ximbiot.com>
62030
62031         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
62032
62033 2005-05-25  Derek Price  <derek@ximbiot.com>
62034             Paul Eggert  <eggert@cs.ucla.edu>
62035
62036         * modules/getlogin_r, m4/getlogin_r.m4: New files.
62037         * lib/getlogin_r.c, getlogin_r.h: New files.
62038
62039 2005-05-25  Bruno Haible  <bruno@clisp.org>
62040             Derek Price  <derek@ximbiot.com>
62041
62042         * lib/getlogin_r.h: Simplify API documentation.
62043
62044 2005-05-23  Derek Price  <derek@ximbiot.com>
62045
62046         * modules/minmax (Files): Add m4/minmax.m4.
62047         (configure.ac): Add gl_MINMAX.
62048
62049 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62050
62051         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
62052         so that unistd-safer.h (GPL'ed code) need not be included.
62053
62054 2005-05-22  Bruno Haible  <bruno@clisp.org>
62055
62056         * m4/minmax.m4: New file.
62057         Based on a patch by Derek Price <derek@ximbiot.com>.
62058
62059 2005-05-22  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
62062         (INT64_MIN): Fix definition.
62063         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
62064
62065         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
62066         NEED_SIGNED_INT_TYPES.
62067
62068         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
62069         HAVE_SYSTEM_INTTYPES.
62070
62071 2005-05-22  Bruno Haible  <bruno@clisp.org>
62072
62073         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
62074         Also include <sys/param.h> if it defines MIN, MAX.
62075         Based on a patch by Derek Price <derek@ximbiot.com>.
62076
62077 2005-05-21  Jim Meyering  <jim@meyering.net>
62078
62079         * modules/fts (Files): Add m4/inttypes-pri.m4.
62080         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62081
62082 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62083
62084         New fts module.
62085         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62086         (setup_dir, free_dir): New functions.
62087         (enter_dir, leave_dir): Define trivial
62088         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62089         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62090         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62091         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62092         Move to fts-cycle.c.
62093         (fts_open): Use setup_dir.
62094         (fts_close): Use free_dir.
62095         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62096         This adds a label and some gotos, but the alternatives were messier.
62097         Check for memory allocation failure when entering a dir.
62098         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62099         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62100         (FTS): New member fts_cycle, that is a union that contains the
62101         old active_dir_ht and cycle_state.  All uses changed to mention
62102         fts_cycle.ht and fts_cycle.state.
62103         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62104         fts.c, with the following changes:
62105         (setup_dir, free_dir): New functions.
62106         (enter_dir): Now returns bool.  Return true if successful, false
62107         if memory exhausted.  All callers changed.
62108         Do not bother partly cleaning up on
62109         memory allocation failure; that is free_dir's job.
62110         However, free ad if hash_insert fails, to avoid memory leak.
62111         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62112         fts->fts_options to see which union member to use.
62113
62114 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62115
62116         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62117         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62118
62119 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62120
62121         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62122
62123 2005-05-20  Jim Meyering  <jim@meyering.net>
62124
62125         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62126         Now a macro, to pacify GCC.
62127
62128 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62129
62130         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
62131         of -1.
62132
62133 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62134
62135         * lib/chown.c (rpl_chown): Return -1 on failure.
62136
62137 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62138
62139         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
62140         Don't check for stddef.h.
62141         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
62142         don't use its results.
62143         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
62144         since we include them unconditionally.  Don't require
62145         AM_STDBOOL_H, since stdbool is a prerequisite.
62146         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
62147         since we assume C89 or better.
62148         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
62149         as we don't use their results.
62150         Don't check for fchdir, memmove, memset, strrchr, as we use
62151         them unconditionally.
62152         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
62153         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
62154
62155 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
62158         Include <stddef.h> unconditionally, since we assume C89 now.
62159         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
62160         * lib/fts.c: Include fts_.h first, to check interface.
62161         Do not include intprops.h; no longer needed.
62162         Include cycle-check.h and hash.h, since fts_.h no longer does.
62163         Remove unnecessary casts of closedir to void.
62164         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
62165         decide whether to decrement nlinks.
62166         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
62167         (FTS): Use struct hash_table * instead of Hash_table, so that
62168         we no longer need to include hash.h here.
62169
62170 2005-05-18  Jim Meyering  <jim@meyering.net>
62171
62172         * modules/dirfd (License): Change to LGPL.  Most of the code
62173         is already in the public domain.
62174
62175 2005-05-18  Jim Meyering  <jim@meyering.net>
62176
62177         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
62178         Reported by Yoann Vandoorselaere.
62179
62180 2005-05-17  Jim Meyering  <jim@meyering.net>
62181
62182         * m4/fts.m4: New file, from coreutils.
62183
62184 2005-05-17  Jim Meyering  <jim@meyering.net>
62185
62186         * lib/fts.c, lib/fts_.h: New files, from coreutils.
62187
62188 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62189
62190         Sync from coreutils.
62191         * m4/unlinkdir.m4: New file.
62192
62193 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         Sync from coreutils.
62196         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
62197         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
62198         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
62199         White space changes only.
62200         * lib/makepath.c (make_path): Port to hosts where leading "//" is
62201         special.
62202         * lib/yesno.c: Include getline.h, not ctype.h.
62203         (yesno): Don't remove leading white space; POSIX doesn't allow it.
62204         Use getline to remove arbitrary restriction on response length.
62205
62206 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62207
62208         * config/srclist-update: Spell out "Street" in FSF postal
62209         mail address; this is the style the FSF seems to prefer.
62210
62211         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
62212         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
62213         this updates FSF postal mail address.
62214
62215         Sync from coreutils.
62216         * modules/unlinkdir: New file.
62217         * modules/yesno (Depends-on): Add getline.
62218         * MODULES.html.sh (File system functions): Add unlinkdir.
62219
62220 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62221
62222         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
62223         lib/strsep.h:
62224         Change the initial comment to refer to GPL, not LGPL.
62225         gnulib-tool will change it to LGPL as needed.
62226
62227         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
62228         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
62229         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
62230         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
62231         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
62232         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
62233         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
62234         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
62235         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
62236         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
62237         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
62238         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
62239         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
62240         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
62241         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
62242         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
62243         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
62244         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
62245         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
62246         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
62247         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
62248         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
62249         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
62250         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
62251         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
62252         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
62253         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62254         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62255         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62256         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62257         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62258         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62259         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62260         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62261         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62262         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62263         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62264         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62265         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62266         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62267         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62268         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62269         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62270         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62271         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62272         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62273         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62274         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62275         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62276         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62277         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62278         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62279         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62280         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62281         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62282         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62283         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62284         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62285         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62286         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62287         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62288         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62289         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62290         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62291         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62292         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62293         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62294         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62295         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62296         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62297         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62298         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62299         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62300         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62301         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62302         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62303         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62304         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62305         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62306         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62307         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62308         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62309         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62310         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62311         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62312         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62313         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62314         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62315         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62316         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62317         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62318         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62319         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62320         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62321         lib/yesno.c, lib/yesno.h:
62322         Update FSF postal mail address.
62323
62324 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62327         tests/test-memmem.c, tests/test-stpncpy.c:
62328         Update FSF postal mail address.
62329
62330 2005-05-13  Bruno Haible  <bruno@clisp.org>
62331
62332         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62333         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62334         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62335         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62336         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62337         Add support for 64-bit integers in the MSVC compiler.
62338
62339 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62340
62341         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62342
62343 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62344
62345         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62346
62347 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * doc/getdate.texi (General date syntax): Don't say that date
62350         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62351         Problem reported by Nic Ferrier.
62352
62353 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62354
62355         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62356         specified in ai_socktype. Fix invalid ai_protocol
62357         check. ai_protocol is usually set to 0 or depending on
62358         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62359         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62360         ai_socktype / ai_protocol in the returned addrinfo structure.
62361
62362 2005-05-10  Simon Josefsson  <jas@extundo.com>
62363
62364         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62365         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62366
62367 2005-05-10  Karl Berry  <karl@gnu.org>
62368
62369         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62370         (from http://www.gnu.org/licenses).
62371         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62372         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62373         fdl.texi suffices.
62374
62375 2005-05-10  Karl Berry  <karl@gnu.org>
62376
62377         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62378         (COPYING.DOC): remove.
62379
62380         * config/srclist-update: new FSF address.
62381
62382 2005-05-10  Derek Price  <derek@ximbiot.com>
62383
62384         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62385         possible.
62386
62387 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62388             Bruno Haible  <bruno@clisp.org>
62389
62390         * modules/inet_ntop: New file.
62391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62392         inet_ntop.
62393
62394 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62395             Bruno Haible  <bruno@clisp.org>
62396
62397         * m4/inet_ntop.m4: New file.
62398
62399 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62400             Bruno Haible  <bruno@clisp.org>
62401
62402         * lib/inet_ntop.h: New file.
62403         * lib/inet_ntop.c: New file, from glibc with modifications.
62404
62405 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62406
62407         * modules/time_r (License): Change to LGPL.
62408         * modules/extensions (License): Change to LGPL.  Actually,
62409         the license is more permissive than that, but currently gnulib-tool
62410         doesn't know how to handle more-permissive licenses.
62411
62412         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62413         Problem reported by Dave Love.
62414
62415 2005-05-08  Jim Meyering  <jim@meyering.net>
62416
62417         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62418         blank.
62419
62420 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62421
62422         * modules/argmatch (Depends-on): Add stdbool.
62423         * modules/backupfile (Depends-on): Likewise.
62424         * modules/chdir-long (Depends-on): Likewise.
62425         * modules/closeout (Depends-on): Likewise.
62426         * modules/cycle-check (Depends-on): Likewise.
62427         * modules/dirname (Depends-on): Likewise.
62428         * modules/fnmatch (Depends-on): Likewise.
62429         * modules/fsusage (Depends-on): Likewise.
62430         * modules/fwriteerror (Depends-on): Likewise.
62431         * modules/getcwd (Depends-on): Likewise.
62432         * modules/getloadavg (Depends-on): Likewise.
62433         * modules/hard-locale (Depends-on): Likewise.
62434         * modules/makepath (Depends-on): Likewise.
62435         * modules/mountlist (Depends-on): Likewise.
62436         * modules/nanosleep (Depends-on): Likewise.
62437         * modules/posixtm (Depends-on): Likewise.
62438         * modules/quotearg (Depends-on): Likewise.
62439         * modules/readtokens (Depends-on): Likewise.
62440         * modules/readtokens0 (Depends-on): Likewise.
62441         * modules/readutmp (Depends-on): Likewise.
62442         * modules/save-cwd (Depends-on): Likewise.
62443         * modules/strftime (Depends-on): Likewise.
62444         * modules/userspec (Depends-on): Likewise.
62445         * modules/utimecmp (Depends-on): Likewise.
62446         * modules/xgetcwd (Depends-on): Likewise.
62447         * modules/xnanosleep (Depends-on): Likewise.
62448         * modules/xstrtod (Depends-on): Likewise.
62449         * modules/yesno (Depends-on): Likewise.
62450
62451 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62452
62453         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62454         needless checks.
62455
62456 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62457
62458         Merge from coreutils.  Among other things,
62459         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62460         * lib/fd-safer.c: New file.
62461         * lib/fcntl-safer.h, open-safer.c: Remove.
62462         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62463         * lib/dup-safer.c: Include unistd-safer.h first.
62464         Don't include errno.h.
62465         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62466         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62467         * lib/file-type.c: Rely on file-type.h change.
62468         * lib/getloadavg.c: Include unistd-safer.h.
62469         (getloadavg): Use safer open.
62470         * lib/getusershell.c: Include "stdio-safer.h".
62471         (getusershell): Use safer fopen.
62472         * lib/long-options.c (long_options): Use NULL rather than 0.
62473         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62474         'free'.
62475         * lib/modechange.c: Likewise.
62476         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62477         (MODE_DONE): New constant.
62478         (struct mode_change): Remove 'next' member.
62479         (make_node_op_equals): New function; like the old one of the
62480         same name, except it allocates an array.
62481         (mode_compile, mode_create_from_ref): Use it.
62482         (mode_compile): Allocate result as an array, not a linked list.
62483         Parse octal string ourself, so that we catch mistakes like "+0".
62484         (mode_adjust): Arg is an array, not a linked list.
62485         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62486         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62487         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62488         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62489         Remove.  This is now stat-macros.h's job.
62490         (talloc): Remove.  All callers replaced by xalloc, so that
62491         our invokers don't have to worry about reporting memory failures.
62492         (make_node_op_equals): Remove.
62493         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62494         New constants.
62495         (struct mode_change): Moved here from modechange.h.
62496         (mode_append_entry): Remove.
62497         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62498         apps to have incorrect behavior.  Use simpler algorithm for head
62499         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62500         Detect more invalid usages rather than having somewhat-random behavior.
62501         Don't insert an "a=" action, as that leads to incorrect behavior.
62502         (mode_compile, mode_create_from_ref): Return NULL on error instead
62503         of an enum, since now there's only one way to have an error.  All
62504         callers changed.
62505         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62506         at the correct time.  Simplify calculation of "+u" and its ilk.
62507         Don't mishandle "+X".
62508         (mode_free): Remove "register" and localize decls.
62509         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62510         (struct mode_change): Move to modechange.c; callers don't
62511         need to see this stuff.
62512         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62513         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62514         (mode_change, mode_adjust): Reflect the new signatures noted above.
62515         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62516         that might redefine system include files.
62517         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62518         (my_usleep): Use NULL rather than (void *) 0.
62519         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62520         Use siginterrupt to specify that system calls should be interrupted.
62521         (rpl_nanosleep): Move initialization of suspended closer to call of
62522         my_usleep.
62523         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62524         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62525         (desirable_utmp_entry): New function.
62526         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62527         using x2nrealloc, to simplify logic.
62528         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62529         size calculation.  Do not assume utmp file is a regular file.
62530         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62531         (READ_UTMP_CHECK_PIDS): New constant.
62532         * lib/save-cwd.c: Include unistd-safer.h.
62533         (save_cwd): Use fd_safer.
62534         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62535         [!_LIBC] Include "stat-macros.h" instead.
62536         * lib/unistd-safer.h (fd_safer): New decl.
62537
62538 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62539
62540         * modules/getloadavg (Depends-on): Add unistd-safer.
62541         * modules/getusershell (Depends-on): Add stdio-safer.
62542         * modules/lstat (Depends-on): Remove xalloc.
62543         * modules/mkstemp (Depends-on): Add stat-macros.
62544         * modules/modechange (Depends-on): Remove xstrtol.
62545         Add stat-macros, xalloc.
62546         * modules/save-cwd (Depends-on): Add unistd-safer.
62547         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62548         * modules/unistd-safer (Files): Add lib/fd-safer.c
62549         (Makefile.am): Remove lib_SOURCES.
62550
62551         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62552         Remove fcntl-safer; unistd-safer supersedes it.
62553
62554 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62557         AC_HEADER_STAT.
62558         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62559         (gl_PREREQ_CHOWN): Remove.
62560         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62561         it.  Don't require AC_HEADER_STAT.
62562         (gl_PREREQ_LSTAT): Remove.
62563         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62564         Don't require AC_HEADER_STAT.
62565         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62566         (gl_PREREQ_RMDIR): Remove.
62567         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62568         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62569         the stat-macros module a prerequisite.
62570         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62571         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62572         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62573         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62574         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62575         variable names.
62576         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62577         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62578         variable prefixes.
62579         * m4/fcntl-safer.m4: Remove.
62580         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62581         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62582         Invoke gl_PREREQ_FD_SAFER.
62583         (gl_PREREQ_FD_SAFER): New macro.
62584         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62585         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62586         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62587         Remove duplicate call to AC_LIBOBJ(readutmp).
62588         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62589
62590         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62591         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62592
62593 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * MODULES.html.sh (Misc): Add byteswap.
62596
62597 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62598
62599         * modules/getcwd (Depends-on): Add extensions.
62600         * modules/openat (Depends-on): Likewise.
62601
62602 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62603
62604         * modules/byteswap: New file.
62605
62606 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62607
62608         * m4/byteswap.m4: New file.
62609
62610 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62611
62612         * lib/byteswap_.h: New file.
62613
62614 2005-04-25  Karl Berry  <karl@gnu.org>
62615
62616         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62617
62618 2005-04-25  Albert Chin  <china@thewrittenword.com>
62619
62620         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62621         Toolkit C bug.
62622
62623 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62624
62625         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62626         (func_ln_if_changed) Remove forcibly for no error message
62627         in case file does not exist.
62628
62629 2005-04-19  Simon Josefsson  <jas@extundo.com>
62630
62631         * gnulib-tool (Options): Make --symlink mean --symbolic.
62632
62633 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62634
62635         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62636
62637 2005-04-16  Simon Josefsson  <jas@extundo.com>
62638
62639         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62640
62641 2005-04-15  Simon Josefsson  <jas@extundo.com>
62642
62643         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62644
62645 2005-04-15  Simon Josefsson  <jas@extundo.com>
62646
62647         * gnulib-tool: Rename --symlink to --symbolic.
62648
62649 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62650
62651         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62652         symbolic links to files instead of copying/moving.  Add --aux-dir,
62653         specifying directory relative --dir where auxiliary build tools
62654         are placed.
62655
62656 2005-04-14  Bruno Haible  <bruno@clisp.org>
62657
62658         * modules/allocsa (License): Change to LGPL.
62659         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62660
62661 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62662
62663         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62664         that "UTC +1 second" continues to work.  Problem reported
62665         by Dmitry V. Levin.
62666         (relunit_snumber): New rule.
62667         (relunit): Use it.
62668
62669 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * lib/getdate.y (universal_time_zone_table): New constant.
62672         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62673         universal_time_zone_table.
62674         (lookup_zone): Prefer universal_time_zone_table to
62675         local_time_zone_table, so that "GMT" time stamps are allowed in
62676         London during the summer.  Problem reported by Ian Abbott.
62677
62678 2005-04-12  Jim Meyering  <jim@meyering.net>
62679
62680         * lib/human.c (humblock): Set *options even when returning due to
62681         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62682         warning from gcc-4.
62683
62684 2005-04-09  Jim Meyering  <jim@meyering.net>
62685
62686         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62687         -Wuninitialized: initialize tm0.tm_year.
62688
62689 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62690
62691         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62692         count, since there's no maximum.  All uses changed.
62693         Add member dsts_seen.
62694         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62695         not being INT_MAX.
62696         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62697         Use pc_rels_seen to decide whther a date is absolute.
62698
62699         * lib/getdate.y (number): Don't overwrite year.
62700         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62701         check.
62702
62703 2005-04-02  Simon Josefsson  <jas@extundo.com>
62704
62705         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62706         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62707
62708 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62709
62710         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62711         where no absolute path name can be longer than PATH_MAX.
62712
62713 2005-03-27  Jim Meyering  <jim@meyering.net>
62714
62715         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62716
62717 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62718
62719         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62720         "one's complement" -> "ones' complement" in comment, as per Knuth.
62721         "value of type" -> "type or expression" in comment.
62722         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62723
62724 2005-03-26  Jim Meyering  <jim@meyering.net>
62725
62726         Comment nits.
62727         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62728         Correct typos: s/or/of/.
62729
62730 2005-03-26  Jim Meyering  <jim@meyering.net>
62731
62732         * modules/check-include-files: Move to ../ and rename to...
62733         * check-module: ...this.
62734
62735 2005-03-25  Jim Meyering  <jim@meyering.net>
62736
62737         * modules/xvasprintf (Files): Add xalloc.h.
62738
62739 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * modules/gettext (Files): config/config.rpath ->
62742         build-aux/config.rpath
62743         * modules/iconv (Files): Likewise.
62744         Problem reported by Oskar Liljeblad.
62745
62746 2005-03-23  Jim Meyering  <jim@meyering.net>
62747
62748         * modules/check-include-files: New script to check for
62749         missing dependencies, multiple includes, etc.
62750
62751         * modules/c-strtold (Depends-on): Add xalloc.
62752         * modules/c-strtod (Depends-on): Add xalloc.
62753         * modules/hash (Depends-on): Add xalloc.
62754         (Files): Remove lib/xalloc.h.
62755
62756         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62757         * modules/userspec (Files): Add lib/inttostr.h.
62758
62759 2005-03-23  Jim Meyering  <jim@meyering.net>
62760
62761         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62762
62763 2005-03-22  Jim Meyering  <jim@meyering.net>
62764
62765         * modules/stat-macros: New module.
62766         * modules/canonicalize, modules/euidaccess, modules/file-type,
62767         * modules/filemode, modules/lchown, modules/makepath,
62768         * modules/rmdir, modules/stat: Depend on new stat-macros module
62769         rather than listing lib/stat-macros.h manually.
62770         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62771
62772 2005-03-22  Jim Meyering  <jim@meyering.net>
62773
62774         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62775
62776 2005-03-22  Bruno Haible  <bruno@clisp.org>
62777
62778         * config/srclist.txt: Replace target directory 'config' with
62779         'build-aux'.
62780         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62781         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62782         ../build-aux/.
62783
62784 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         * modules/chdir-long (Depends-on): Add mempcpy.
62787
62788         * modules/acl, modules/backupfile, modules/c-strtod,
62789         modules/c-strtold, modules/canon-host, modules/canonicalize,
62790         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62791         modules/exclude, modules/exitfail, modules/file-type,
62792         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62793         modules/getdate, modules/getline, modules/getpagesize,
62794         modules/getpass, modules/getugroups, modules/group-member,
62795         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62796         modules/inttostr, modules/long-options, modules/makepath,
62797         modules/md5, modules/memcasecmp, modules/memcoll,
62798         modules/modechange, modules/mountlist, modules/path-concat,
62799         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62800         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62801         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62802         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62803         modules/strftime, modules/strndup, modules/strverscmp,
62804         modules/timespec, modules/unlocked-io, modules/userspec,
62805         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62806         modules/yesno:
62807         Remove lib_SOURCES line from Makefile.am section, as this is now
62808         done automatically by the corresponding Autoconf macro.
62809
62810 2005-03-21  Jim Meyering  <jim@meyering.net>
62811
62812         Changes imported from coreutils.
62813
62814         * lib/cycle-check.c: Don't include xalloc.h.
62815
62816         * lib/path-concat.c: Don't include assert.h.
62817         (path_concat): Remove assertion that would have triggered
62818         for ABASE starting with more than one slash.
62819         Reported by Andreas Schwab.
62820
62821         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62822         properly when ABASE is an absolute file name.
62823         Correct the description of this function.
62824         Include <assert.h>.
62825         Add an assertion and a test driver.
62826         This fixes a bug introduced on 2004-07-02.
62827         Andreas Schwab reported the resulting failure of cp --parents:
62828         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62829
62830 2005-03-21  Jim Meyering  <jim@meyering.net>
62831
62832         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62833         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62834
62835 2005-03-21  Jim Meyering  <jim@meyering.net>
62836         and  Paul Eggert  <eggert@cs.ucla.edu>
62837
62838         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62839         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62840         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62841         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62842         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62843         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62844         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62845         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62846         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62847         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62848         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62849         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62850         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62851         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62852         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62853         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62854         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62855         for these modules.
62856
62857 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62858
62859         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62860         (which shouldn't happen), generate nothing instead of returning 0
62861         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62862
62863 2005-03-16  Bruno Haible  <bruno@clisp.org>
62864
62865         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62866         HAVE_LONGLONG_64BIT.
62867
62868 2005-03-16  Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62871         HAVE_LONGLONG_64BIT.
62872
62873 2005-03-16  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62876         HAVE_LONGLONG_64BIT.
62877
62878 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62881         reliably distinguish strftime failure from empty output on POSIX
62882         hosts.
62883
62884 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62887         (iconv_string): Don't guess a size-zero buffer, as that might cause
62888         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62889         result would be 'too large', where 'too large' is (heuristically)
62890         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62891         overflow concerns.  This will prevent some unwanted malloc failures
62892         when the inputs are very large.
62893
62894 2005-03-15  Karl Berry  <karl@gnu.org>
62895
62896         * config/srclist.txt (config.rpath): from gettext.
62897         * config/config.rpath: update.
62898
62899 2005-03-15  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62902         to 'negate'.
62903
62904         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62905         variable.
62906
62907         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62908         results.
62909
62910 2005-03-14  Simon Josefsson  <jas@extundo.com>
62911
62912         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62913         <fx@gnu.org>.
62914
62915 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62918         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62919         intprops.h.
62920         * lib/strtol.c: Likewise.
62921
62922 2005-03-14  Jim Meyering  <jim@meyering.net>
62923
62924         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62925         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62926         to be nonzero so that we (and caller) can detect the difference
62927         between a valid zero-length expansion and an error return, even
62928         when the underlying strftime fails before writing anything into
62929         that location.
62930
62931 2005-03-14  Bruno Haible  <bruno@clisp.org>
62932
62933         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62934         Update from GNU gettext 0.14.3.
62935
62936 2005-03-10  Jim Meyering  <jim@meyering.net>
62937
62938         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62939
62940 2005-03-10  Jim Meyering  <jim@meyering.net>
62941
62942         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62943         so that this module works on systems without fchdir.
62944
62945 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         Factor int-properties macros into a single file, except for
62948         glibc-related files.
62949         * lib/intprops.h: New file.
62950         * lib/getloadavg.c: Include it instead of limits.h.
62951         (INT_STRLEN_BOUND): Remove.
62952         * lib/human.c: Include intprops.h.
62953         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62954         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62955         302/1000.
62956         * lib/inttostr.h: Include intprops.h instead of limits.h.
62957         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62958         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62959         for consistency with intprops.h.
62960         (time_t_is_integer, twos_complement_arithmetic): Use them.
62961         * lib/sig2str.h: Include <signal.h>, intprops.h.
62962         (INT_STRLEN_BOUND): Remove.
62963         * lib/strftime.c (TYPE_SIGNED): Remove.
62964         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62965         * lib/strtol.c: Adjust comments to match intprops.h.
62966         * lib/userspec.c: Include intprops.h.
62967         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62968         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62969         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62970         instead of rolling our own expressions.
62971         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62972
62973         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62974         instead of int.
62975         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62976         the right thing even if adding 1900 would overflow.  Similarly
62977         for tm_mon + 1 and tm_yday + 1.
62978         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62979         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62980         (DO_SIGNED_NUMBER): New macro.
62981         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62982
62983 2005-03-07  Bruno Haible  <bruno@clisp.org>
62984
62985         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62986
62987 2005-03-07  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62990
62991 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62992
62993         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62994         (func_import): Only replace files via --import when they have actually
62995         changed.
62996
62997 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62998
62999         * m4/mmap-anon.m4: New file.
63000         * m4/pagealign_alloc.m4: New file.
63001
63002 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63003             Bruno Haible  <bruno@clisp.org>
63004
63005         * modules/pagealign_alloc: New file.
63006         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
63007
63008 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63009             Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/pagealign_alloc.h: New file.
63012         * lib/pagealign_alloc.c: New file.
63013
63014 2005-03-03  Bruno Haible  <bruno@clisp.org>
63015
63016         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
63017         Use an all-permissive copyright notice, recommended by RMS.
63018
63019 2005-03-02  Bruno Haible  <bruno@clisp.org>
63020
63021         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
63022         of AIX, the replacement has to be done only after <string.h> is
63023         included, therefore not in config.h. stpncpy.h does the replacement,
63024         and stpncpy.c uses it.
63025
63026 2005-03-02  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
63029         stpncpy.c uses it.
63030
63031 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63032
63033         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
63034         The workaround isn't strictly needed for POSIX conformance, and
63035         it's too much of a pain to configure and maintain.  We'll ask
63036         people to fix their kernels instead.
63037         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
63038         (NANOSLEEP_BUG_WORKAROUND): Remove.
63039         (xnanosleep): Remove the workaround.
63040
63041 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
63044         Reported by Derek Price.
63045         (Include): Add "timespec.h".
63046
63047         * modules/xnanosleep (Depends-on): Remove gethrxtime.
63048
63049 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
63052         to detect nanosleep bug.
63053
63054 2005-03-01  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
63057
63058 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * modules/gethrxtime: New file.
63061         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
63062         (Depends-on): Add gethrxtime.
63063         (configure.ac): Add gl_XNANOSLEEP.
63064         (Makefile.am): Remove lib_SOURCES line.
63065
63066 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
63069         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
63070
63071 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63072
63073         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
63074         * lib/timespec.h (gettime): Return void, since it always
63075         succeeds now.  All uses changed.
63076         * lib/gettime.c (gettime) Likewise.
63077         [HAVE_NANOTIME]: Prefer nanotime.
63078         Assume gettimeofday succeeds, as POSIX requires.
63079         Assime time () succeeds, since other code already does.
63080         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63081         (timespec_subtract): Remove.
63082         (NANOSLEEP_BUG_WORKAROUND): New constant.
63083         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63084         things considerably.  Use it only on GNU/Linux hosts, since the
63085         workaround shouldn't be needed elsewhere.
63086
63087 2005-02-24  Bruno Haible  <bruno@clisp.org>
63088
63089         * modules/gettext (Files): Add m4/glibc2.m4.
63090
63091 2005-02-24  Bruno Haible  <bruno@clisp.org>
63092
63093         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63094         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63095         * m4/progtest.m4:
63096         Update from GNU gettext 0.14.2.
63097         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63098
63099 2005-02-24  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63102         * lib/config.charset: Update from GNU gettext 0.14.2.
63103
63104 2005-02-24  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/gettext.h: Update from GNU gettext 0.14.2.
63107
63108 2005-02-23  Simon Josefsson  <jas@extundo.com>
63109
63110         * m4/iconvme.m4: New file.
63111
63112 2005-02-23  Jim Meyering  <jim@meyering.net>
63113
63114         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63115         change.
63116         Thanks to Bruno Haible for catching it.
63117
63118 2005-02-22  Simon Josefsson  <jas@extundo.com>
63119
63120         * modules/iconvme: New file.
63121
63122         * MODULES.html.sh: Add iconvme.
63123
63124 2005-02-22  Simon Josefsson  <jas@extundo.com>
63125
63126         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63127
63128 2005-02-22  Simon Josefsson  <jas@extundo.com>
63129
63130         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
63131
63132 2005-02-22  Jim Meyering  <jim@meyering.net>
63133
63134         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
63135         s/ifndef/ifdef/.
63136
63137 2005-02-20  Neil Conway  <neilc@samurai.com>
63138
63139         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
63140         returned by OSX/Darwin if the specified buffer is not large
63141         enough for the hostname.
63142
63143 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63144
63145         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
63146         pass it to _help, otherwise the latter coredumps trying to
63147         dereference state.root_argp.
63148
63149 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63150
63151         * modules/chdir-long (Depends-on): Add memrchr.
63152         * modules/memrchr (Files): Add lib/memrchr.h.
63153         (Include): "memrchr.h".
63154
63155 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
63158
63159 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63160
63161         * lib/memrchr.h: New file.
63162         * lib/chdir-long.c: Include it.
63163         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
63164         Don't bother including stddef.h.
63165
63166 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
63169         inclusion.
63170         Include <sys/types.h>, for dev_t.
63171         (ME_DUMMY, ME_REMOTE): Move from here....
63172         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
63173         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
63174         Dmitry V. Levin.
63175         Include mountlist.h first, to test the interface.
63176
63177 2005-01-29  Bruno Haible  <bruno@clisp.org>
63178
63179         * lib/progname.c (program_name): Initialize.
63180         Needed when linking statically on MacOS X.
63181
63182 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63183
63184         Sync from coreutils.
63185         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
63186         (Depends-on): Add c-strtod.
63187         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
63188
63189 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63190
63191         Sync from coreutils.
63192         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
63193
63194         Remove files that are specific to coreutils.
63195         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
63196
63197 2005-01-28  Bruno Haible  <bruno@clisp.org>
63198
63199         * modules/javacomp: New file.
63200         * MODULES.html.sh (Java): Add javacomp.
63201
63202 2005-01-28  Bruno Haible  <bruno@clisp.org>
63203
63204         * m4/javacomp.m4: New file, from GNU gettext.
63205
63206 2005-01-28  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/javacomp.sh.in: New file, from GNU gettext.
63209         * lib/javacomp.h: New file, from GNU gettext.
63210         * lib/javacomp.c: New file, from GNU gettext.
63211
63212 2005-01-26  Simon Josefsson  <jas@extundo.com>
63213
63214         * lib/gai_strerror.c: Use GPL in header.
63215
63216 2005-01-26  Bruno Haible  <bruno@clisp.org>
63217
63218         * modules/javaexec: New file.
63219         * MODULES.html.sh (Java): Add javaexec.
63220
63221 2005-01-26  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/javaexec.m4: New file, from GNU gettext.
63224
63225 2005-01-26  Bruno Haible  <bruno@clisp.org>
63226
63227         * lib/javaexec.sh.in: New file, from GNU gettext.
63228         * lib/javaexec.h: New file, from GNU gettext.
63229         * lib/javaexec.c: New file, from GNU gettext.
63230
63231 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63232
63233         * modules/lchown (Depends-on): Remove lchown.h
63234
63235 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63236
63237         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
63238         must be defined if the header file was not found, in order
63239         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
63240
63241 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63242
63243         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
63244         initializers for struct pentry_state.
63245         (__argp_error): Check return value of __asprintf
63246         (__argp_failure): Translate error message
63247
63248         * lib/argp-parse.c: Removed braces around the expansion of N_()
63249
63250 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
63253         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63254         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63255         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63256         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63257         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63258         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63259         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63260         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63261         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63262         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63263         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63264         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63265         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63266         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63267         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63268         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63269         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63270         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63271         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63272         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63273         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63274         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63275         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63276         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63277         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63278         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63279         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63280         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63281         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63282         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63283         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63284         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63285         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63286         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63287         Use an all-permissive copyright notice, recommended by RMS.
63288
63289 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63290
63291         * modules/chdir-long (Depends-on): Remove mempcpy.
63292
63293 2005-01-21  Jim Meyering  <jim@meyering.net>
63294
63295         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63296         same value as for Solaris 9.
63297
63298         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63299         component length.  This included changing the parameter to be
63300         of type `char *' rather than `char const *'.
63301         * lib/chdir-long.h (chdir_long): Update prototype.
63302
63303         * lib/openat.c (fdopendir, fstatat): New functions.
63304         * lib/openat.h: Include headers required for use of DIR and struct
63305         stat.
63306         [AT_SYMLINK_NOFOLLOW]: Define.
63307         (fdopendir, fstatat): Add prototypes.
63308
63309 2005-01-21  Bruno Haible  <bruno@clisp.org>
63310
63311         * modules/classpath: New file.
63312         * MODULES.html.sh (Java): Add classpath.
63313
63314 2005-01-21  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/classpath.h: New file, from GNU gettext.
63317         * lib/classpath.c: New file, from GNU gettext.
63318
63319 2005-01-20  Simon Josefsson  <jas@extundo.com>
63320
63321         * modules/version-etc-fsf: New file.
63322
63323 2005-01-20  Simon Josefsson  <jas@extundo.com>
63324
63325         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63326         * lib/version-etc.c: Remove version_etc_copyright.
63327         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63328         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63329
63330 2005-01-20  Simon Josefsson  <jas@extundo.com>
63331
63332         * lib/base64.h (isbase64): Add.
63333
63334         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63335         using a unsigned prototype, don't inline.
63336         (base64_decode): Use it.
63337
63338 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63339
63340         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63341         it.
63342
63343 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63344
63345         * lib/save-cwd.c (save_cwd): Remove code to support the case
63346         where fchdir is missing or flaky.
63347
63348 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63349
63350         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63351
63352 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63355         AC_LIBSOURCES now does this.
63356         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63357         with new ullong_max module.
63358
63359 2005-01-19  Bruno Haible  <bruno@clisp.org>
63360
63361         * modules/sh-quote: New file.
63362         * MODULES.html.sh (Executing programs): Add sh-quote.
63363
63364 2005-01-19  Bruno Haible  <bruno@clisp.org>
63365
63366         * lib/sh-quote.h: New file, from GNU gettext.
63367         * lib/sh-quote.c: New file, from GNU gettext.
63368
63369 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         Merge from coreutils.
63372         * m4/ullong_max.m4: New file.
63373         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63374         (gl_MACROS): Assume localeconv exists.
63375
63376 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         Merge changes from coreutils, as described below in several
63379         changelogs dated today.
63380
63381         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63382         (O_DIRECTORY): Remove; not needed here, since "." must be
63383         a directory.  All uses removed.
63384         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63385         universal on Suns, and we also need to test for IRIX.
63386         Revamp code to use 'if' rather than '#if'.
63387         Avoid unnecessary comparison of cwd->desc to 0.
63388
63389         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63390         for known valid error numbers rather than observed invalid ones.
63391
63392 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * modules/ullong_max: New file.
63395
63396         * modules/chdir-long, modules/openat: New files.
63397         * modules/save-cwd (Depends-on): Depend on chdir-long.
63398         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63399
63400 2005-01-18  Jim Meyering  <jim@meyering.net>
63401
63402         Merge from coreutils.
63403         * m4/chdir-long.m4, m4/openat.m4: New files.
63404         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63405         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63406         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63407         is sane and DOES follow symlinks.  Besides, testing 20 different
63408         systems found no broken chown implementations.
63409         Prompted by a change in rsync's copy of this macro.
63410         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63411
63412         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63413
63414         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63415         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63416         NULL-means-set-to-current-time semantics.
63417         Remove temporary file immediately, rather than waiting
63418         for configure's at-exit trap code to do it.
63419
63420 2005-01-18  Jim Meyering  <jim@meyering.net>
63421
63422         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63423
63424         * lib/utimens.c (futimens): Account for the fact that futimes
63425         can also fail with errno == ENOSYS or errno == ENOENT.
63426         Patch from Dmitry V. Levin.
63427
63428         Change the name of the robust chdir function from chdir to chdir_long.
63429         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63430         (restore_cwd): Use chdir_long, not chdir.
63431         * lib/chdir-long.c: Renamed from chdir.c.
63432         * lib/chdir-long.h: Renamed from chdir.h.
63433         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63434         Hurd.
63435
63436 2005-01-18  Bruno Haible  <bruno@clisp.org>
63437
63438         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63439         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63440         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63441         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63442         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63443         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63444         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63445         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63446         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63447         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63448         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63449         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63450         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63451         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63452         Use an all-permissive copyright notice, recommended by RMS.
63453
63454 2005-01-18  Bob Proulx  <bob@proulx.com>
63455
63456         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63457         simplify offsetof() macro construct to avoid compile failure with
63458         native HP-UX 11.0 ANSI C compiler.
63459
63460 2005-01-17  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63463         redundant because stpncpy.m4 takes care of it.
63464
63465 2005-01-17  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63468
63469 2005-01-17  Bruno Haible  <bruno@clisp.org>
63470
63471         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63472         used.
63473
63474 2005-01-17  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/fwriteerror.h (fwriteerror): Change specification to include
63477         fclose.
63478         * lib/fwriteerror.c: Include <stdbool.h>.
63479         (fwriteerror): At the end, close the file stream. Record whether
63480         stdout was already closed.
63481
63482 2005-01-17  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/execute.c (environ): Declare if needed.
63485         * lib/pipe.c (environ): Likewise.
63486         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63487
63488 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63489
63490         * modules/argp: Depend on vsnprintf
63491
63492 2005-01-10  Jim Meyering  <jim@meyering.net>
63493
63494         * modules/closeout (Depends-on): Add atexit.
63495
63496 2005-01-06  Bruno Haible  <bruno@clisp.org>
63497
63498         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63499
63500 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63501
63502         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63503         definitions to be after all include files, to avoid collisions.
63504         Problem reported by Bob Proulx.
63505
63506 2005-01-04  Jim Meyering  <jim@meyering.net>
63507
63508         Changes imported from coreutils.
63509         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63510         as the mkstemp template, use a temporary directory and an
63511         8.3-friendly template to avoid trouble on systems like DJGPP.
63512         Reported by Juan M. Guerrero via Stepan Kasal.
63513         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63514         close. Remove the temporary directory right away, rather than waiting
63515         for configure's at-exit trap code to do it.
63516         Suggestion from Stepan Kasal.
63517
63518 2005-01-01  Simon Josefsson  <jas@extundo.com>
63519
63520         * gnulib-tool: Print #include directives when --import'ing.
63521
63522 2004-12-28  Simon Josefsson  <jas@extundo.com>
63523
63524         * tests/test-base64.c: Include required header files.  Remove
63525         unused variables.
63526
63527 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * modules/error (Depends-on): Remove gettext.
63530
63531 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63534         not needed.  This removes a dependency on the gettext module.
63535         [defined _LIBC]: Do not include <libintl.h>; not needed.
63536
63537 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63540         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63541
63542 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63545         HAVE_DECL_STRTOLD.
63546
63547 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * modules/getdate (Depends-on): Remove alloca-opt.
63550
63551 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63552
63553         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63554
63555 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63556
63557         * lib/argp-parse.c: Include <stddef.h>.
63558         (alignof, alignto): New macros.
63559         (parser_init): Don't assume that void * is aligned sufficiently
63560         for struct option.
63561
63562         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63563         need to extend the stack.
63564         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63565         large.
63566
63567 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63568
63569         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63570
63571 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63572
63573         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63574         (2004-10-24) change.  Apparently this was a false alarm.
63575
63576         * modules/getdate: Depend on alloca-opt, not alloca.
63577
63578 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63579
63580         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63581         Remove now-obsolete comment about AIX.
63582         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63583         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63584         (YYMAXDEPTH): New macro.
63585
63586 2004-12-18  Simon Josefsson  <jas@extundo.com>
63587
63588         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63589
63590 2004-12-18  Bruno Haible  <bruno@clisp.org>
63591
63592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63593
63594 2004-12-18  Bruno Haible  <bruno@clisp.org>
63595
63596         * lib/fatal-signal.c (fatal_signals): Make non-const.
63597         (init_fatal_signals): New function.
63598         (uninstall_handlers, install_handlers): Ignore signals that were set to
63599         SIG_IGN.
63600         (at_fatal_signal): Call init_fatal_signals.
63601         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63602         SIG_IGN.
63603         Reported by Paul Eggert.
63604
63605 2004-12-18  Bruno Haible  <bruno@clisp.org>
63606
63607         * doc/alloca.texi: New file.
63608         * doc/alloca-opt.texi: New file.
63609
63610 2004-12-17  Jim Meyering  <jim@meyering.net>
63611
63612         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63613         Otherwise, install-sh could exit with improper exit status when
63614         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63615
63616 2004-12-16  Simon Josefsson  <jas@extundo.com>
63617
63618         * tests/test-base64.c: Add license.
63619
63620 2004-12-15  Stepan Kasal  <address@hidden>
63621
63622         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63623
63624 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * modules/getcwd (Files): Add m4/d-ino.m4.
63627         Suggested by Mark D. Baushke.
63628
63629 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63630
63631         * lib/getdate.y (textint): New member "negative".
63632         (time_zone_hhmm): New function.
63633         Expect 14 shift-reduce conflicts, not 13.
63634         (o_colon_minutes): New rule.
63635         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63636         (yylex): Set the "negative" member of signed numbers.
63637
63638 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         * doc/getdate.texi (Time of day items, Time zone items):
63641         Describe new formats +00:00, UTC+00:00.
63642
63643 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63646         spurious "-l"s.  Problem reported by Stepan Kasal.
63647
63648 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63651         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63652
63653 2004-12-04  Simon Josefsson  <jas@extundo.com>
63654
63655         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63656         Vandoorselaere <yoann@prelude-ids.org>.
63657
63658 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         Changes imported from coreutils.
63661         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63662         exist.
63663         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63664
63665 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         Changes imported from coreutils.
63668         * lib/hard-locale.c: Assume <locale.h> exists.
63669         Include "strdup.h".
63670         (GLIBC_VERSION): New macro.
63671         (hard_locale): Assume setlocale exists.
63672         Rewrite to avoid #ifdef.
63673         Use strdup rather than malloc + strcpy.
63674         * lib/human.c: Assume <locale.h> exists.
63675         (human_readable): Assume localeconv exists.
63676
63677 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63678
63679         * modules/hard-locale (Depends-on): Add strdup.
63680
63681 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63682
63683         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63684         convert T2, not T.  (Imported from libc.)
63685
63686 2004-11-30  Simon Josefsson  <jas@extundo.com>
63687
63688         * modules/restrict (License): Change to LGPL.
63689
63690 2004-11-30  Simon Josefsson  <jas@extundo.com>
63691
63692         * m4/restrict.m4: Add copyright and copying conditions.
63693
63694 2004-11-30  Simon Josefsson  <jas@extundo.com>
63695
63696         * m4/base64.m4: New file.
63697
63698 2004-11-30  Simon Josefsson  <jas@extundo.com>
63699
63700         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63701         base64.
63702
63703         * tests/test-base64.c: New file.
63704
63705         * modules/base64: New file.
63706
63707 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63708
63709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63710         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63711
63712         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63713
63714 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63715
63716         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63717         (__getcwd.c): Don't restore errno; glibc doesn't.
63718         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63719         first, falling back to our code only if its results look suspicious.
63720         Ensure that the resulting buffer is only as large as necessary.
63721
63722         * lib/readutmp.c: Include readutmp.h first.
63723         Include <errno.h>, since readutmp.h no longer does that.
63724         * lib/readutmp.h: Don't include <errno.h>,
63725         <sys/param.h>, <time.h>; not needed to establish interface.
63726         (errno): Remove decl.
63727         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63728         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63729         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63730
63731 2004-11-28  Simon Josefsson  <jas@extundo.com>
63732
63733         * lib/base64.h, base64.c: New file.
63734
63735 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63738
63739 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63742         (Depends-on): Remove pathmax, same.  Add mempcpy.
63743         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63744         (Makefile.am): Append getcwd.h to lib_SOURCES.
63745         (Include): Add getcwd.h.
63746         (Maintainer): Change from Jim Meyering to "all, glibc",
63747         since getdate now uses intended-for-glibc code.
63748         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63749         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63750
63751 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63752
63753         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63754         HP's ANSI C compiler.
63755         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63756         Declaring int functions causes warnings on some modern systems and
63757         shouldn't be needed to compile on ancient ones.
63758         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63759         defined.
63760
63761         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63762         with the following changes.
63763         (__set_errno): Parenthesize properly.
63764         Include <stdbool.h>.
63765         (MIN, MAX, MATCHING_INO): New macros.
63766         (__getcwd): Define with prototype, not K&R form.
63767         Use heuristics to allocate default buffer on stack if possible.
63768         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63769         behavior, and to avoid the PATH_MAX limit when computing
63770         ../../../../...
63771         Use MATCHING_INO to compare inode number to file.
63772         Check for arithmetic overflow in size calculations.
63773         Fix bug in reallocation of dot array that caused getcwd to fail
63774         on directories nested deeper than 75.
63775         Be more careful about saving errno on error.
63776         Do not use realloc; use only free+malloc, as this is a bit
63777         more flexible and avoids a needless copy operation.
63778         Do not inspect st_dev and st_ino for symbolic links; POSIX
63779         doesn't specify the latter.
63780         Check for closedir errors.
63781         Avoid needless casts.
63782         Use "#ifdef weak_alias" around weak_alias, to be like other
63783         glibc code.
63784         The following changes to getcwd.c have effect only when used in
63785         gnulib; they have no effect inside glibc proper.
63786         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63787         as alloca isn't used.
63788         (alloca, __alloca): Likewise.
63789         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63790         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63791         unconditionally, as gnulib assumes C89 or better.
63792         Do not include <sys/param.h>.
63793         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63794         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63795         better.
63796         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63797         Include <dirent.h> in a way that is compatible with modern Autoconf.
63798         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63799         New macros, if not already defined.
63800         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63801         Use "_LIBC", not "defined _LIBC", for consistency.
63802         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63803         a mempcpy module.
63804         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63805         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63806         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63807         credit only to Jim Meyering and adjust the copyright dates.
63808         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63809         <stdlib.h>, <unistd.h>, "pathmax.h".
63810         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63811         (INITIAL_BUFFER_SIZE): Remove.
63812         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63813
63814 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63815
63816         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63817         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63818         Use the _ONCE methods, for efficiency.
63819         Check for fcntl.h.  In test program, include <errno.h>
63820         and <fcntl.h> if available.  Remove old K&R cruft from
63821         test program.  Check for common errors in GNU/Linux,
63822         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63823         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63824         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63825         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63826         name accordingly.
63827         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63828         accommodate new getcwd.c.
63829         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63830         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63831         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63832         that's all we need now.
63833
63834 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63835
63836         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63837         argp-parse.c depends on getopt internals, that means we should
63838         always use our getopt, to be on the safe side.
63839         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63840         order not to spoil the result of an eventual previous invocation
63841         of gl_GETOPT_SUBSTITUTE.
63842
63843 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63844
63845         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63846         redefinition warnings. To avoid them, include the defines
63847         in `#if !defined __need_getopt ... #endif'. The only place
63848         where __getopt_argv_const is used is in definitions
63849         of getopt_long and getopt_long_only below, which are as well
63850         protected by `#ifndef __need_getopt'.
63851         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63852         __need_getopt after including <stdio.h> and <unistd.h> These
63853         headers might have defined it.
63854
63855 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63858
63859 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63860
63861         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63862         (futimens): New function, which uses futimes if available.
63863         (futimens, utimens): Support timespec==NULL, with same semantics
63864         as utime and utimens.
63865         * lib/utimens.h (futimens): New decl.
63866
63867 2004-11-23  Jim Meyering  <jim@meyering.net>
63868
63869         * lib/getopt_.h: Remove trailing blanks.
63870
63871 2004-11-23  Jim Meyering  <jim@meyering.net>
63872
63873         * lib/__fpending.c: Add comment.
63874
63875 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63876
63877         * modules/canonicalize (Depends-on): Add xreadlink.
63878         Problem reported by James Youngman.
63879
63880 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63883         New macros.
63884         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63885         optopt): Use them instead of invoking ## directly; otherwise, the
63886         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63887
63888 2004-11-19  Bruno Haible  <bruno@clisp.org>
63889
63890         * lib/strtok_r.c: Move comments from here...
63891         * lib/strtok_r.h: ... to here.
63892
63893 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63894
63895         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63896         implementations that mishandle size_t overflow.
63897
63898 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63901         might fail.  Problem reported by Yoann Vandoorselaere.
63902         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63903         implementations that mishandle size_t overflow.
63904
63905 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63906
63907         * modules/canon-host (Depends-on): Add strdup.
63908
63909 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63910
63911         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63912
63913 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63914
63915         * lib/canon-host.c: Include "strdup.h".
63916         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63917         Use strdup instead of malloc/strcpy to duplicate strings.
63918
63919         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63920         (human_space_before_unit): New constant.
63921         * lib/human.c (human_readable): Support it.
63922
63923         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63924         (xgetcwd): Set errno correctly when failing.
63925         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63926         the failure is actually due to a PATH_MAX problem.
63927
63928         Further getopt changes to make it more likely that glibc will
63929         buy the changes back.
63930         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63931         (getopt): Use it, so to preserve glibc semantic
63932         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63933         when compiling for libc.
63934         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63935         (getopt_long, getopt_long_only): Use it.
63936
63937         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63938         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63939         (getopt): Argv is now char * const *, as per standard.
63940         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63941         not char *__getopt_argv_const *.
63942         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63943         _getopt_long_only_r): Likewise.
63944         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63945         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63946         _getopt_long_r, _getopt_long_only_r): Likewise.
63947         * lib/getopt_.h (__getopt_argv_const): Remove.
63948         (getopt): Argv is now char * const *, as per standard.
63949
63950         * lib/getdate.y (tORDINAL): New token.
63951         (day, relunit): Allow it for relative times.
63952         (relative_time_table): Use tORDINAL for ordinals.
63953
63954 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63955
63956         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63957         Document that "second" isn't allowed as an ordinal number.
63958
63959 2004-11-16  Jim Meyering  <jim@meyering.net>
63960
63961         * modules/closeout (Depends-on): Add fpending.
63962
63963 2004-11-15  Jim Meyering  <jim@meyering.net>
63964
63965         * lib/closeout.c: Include "__fpending.h" once again.
63966         Include <stdbool.h>.
63967         (close_stdout): Don't fail just because stdout was closed initially,
63968         since some programs don't write to stdout in the normal course of
63969         operation (other than --version and --help), and we don't want this
63970         function to make e.g. `touch file >&-' fail.
63971         But do fail if it was closed and someone has tried to write to it.
63972         E.g., `printf foo >&-' must fail.
63973
63974 2004-11-13  Jim Meyering  <jim@meyering.net>
63975
63976         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63977
63978 2004-11-12  Simon Josefsson  <jas@extundo.com>
63979
63980         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63981         small doc fix is still pending.
63982
63983 2004-11-11  Simon Josefsson  <jas@extundo.com>
63984
63985         * modules/strtok_r: New file.
63986
63987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63988         strtok_r.
63989
63990 2004-11-11  Simon Josefsson  <jas@extundo.com>
63991
63992         * m4/strtok_r.m4: New file.
63993
63994         * m4/getopt.m4: Replace opterr.
63995
63996 2004-11-11  Simon Josefsson  <jas@extundo.com>
63997
63998         * lib/strtok_r.h, strtok_r.c: New file.
63999
64000 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64001
64002         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
64003         of replacing opterr, getopt, etc.  This should handle the
64004         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
64005
64006 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64007
64008         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
64009         we can stop lying to compilers about the constness of argv when we
64010         are compiled outside glibc.
64011         (getopt, getopt_long, getopt_long_only): Use it.
64012         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64013         _getopt_internal, getopt): Likewise.
64014         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64015         _getopt_long_only_r): Likewise.
64016         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64017         _getopt_long_r, _getopt_long_only_r): Likewise.
64018
64019         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
64020         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
64021         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
64022         the other external symbols.
64023         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64024         declaration, since the above renaming now works around collisions.
64025
64026 2004-11-11  Jim Meyering  <jim@meyering.net>
64027
64028         * lib/linebreak.c: Remove trailing blanks.
64029         * lib/alloca_.h: Likewise.
64030         * lib/acosl.c: Likewise.
64031         * lib/euidaccess.c: Likewise.
64032         * lib/allocsa.h: Likewise.
64033
64034 2004-11-10  Simon Josefsson  <jas@extundo.com>
64035
64036         * m4/getaddrinfo.m4: New file.
64037
64038 2004-11-10  Simon Josefsson  <jas@extundo.com>
64039
64040         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
64041
64042 2004-11-10  Simon Josefsson  <jas@extundo.com>
64043
64044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64045         getaddrinfo.
64046
64047         * modules/getaddrinfo: New file.
64048
64049 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
64052
64053 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64054
64055         * lib/mktime.c (SHR): New macro, which is a portable
64056         substitute for >> that should work even on Crays.
64057         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
64058         Problem reported by Mark D. Baushke in
64059         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
64060         * lib/getdate.y (SHR): Likewise.
64061         (tm_diff): Use it.
64062         * lib/strftime.c (SHR): Likewise.
64063         (tm_diff): Use it.
64064         * lib/quotearg.c (struct quoting_options): Use unsigned int for
64065         quote_these_too, so that right shifts are well defined.  All uses
64066         changed.
64067
64068 2004-11-10  Jim Meyering  <jim@meyering.net>
64069
64070         Ensure that no close failure goes unreported.
64071         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
64072         return early when it seems there's nothing to flush.
64073         Don't include __fpending.h.
64074
64075 2004-11-10  Jim Meyering  <jim@meyering.net>
64076
64077         * modules/closeout (Depends-on): Remove fpending.
64078
64079 2004-11-10  Jim Meyering  <jim@meyering.net>
64080
64081         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64082
64083 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64086         gl_FUNC_STRFTIME.
64087         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64088         and AC_REQUIRE when possible, to avoid duplicate checks.
64089         Check for <wchar.h>.
64090
64091 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64094
64095 2004-11-09  Bruno Haible  <bruno@clisp.org>
64096
64097         * m4/sockpfaf.m4: New file.
64098
64099 2004-11-05  Bruno Haible  <bruno@clisp.org>
64100
64101         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64102         Reported by Mark D. Baushke <mdb@cvshome.org>.
64103
64104 2004-11-04  Bruno Haible  <bruno@clisp.org>
64105
64106         2004-09-11  Bruno Haible  <bruno@clisp.org>
64107                 * allocsa.valgrind: New file.
64108         2004-02-06  Bruno Haible  <bruno@clisp.org>
64109                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64110                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64111                 Reported by Christopher Seip <chris.seip@hp.com>.
64112
64113 2004-11-04  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64116         (Makefile.am): Distribute it.
64117
64118 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64119
64120         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64121         with errno == ERANGE if the buffer is too small.
64122         Problem reported by Mark D. Baushke.
64123
64124 2004-11-03  Albert Chin  <china@thewrittenword.com>
64125             Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64128         equivalent, substitute $ac_type for equivalent type rather than
64129         blindly using uint32_t *always* which won't work if uint32_t is not
64130         available.  Define _UINT32_T to work around typedef of uint32_t if
64131         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
64132         2.5.1.
64133
64134 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * m4/jm-macros.m4: Sync from coreutils.
64137         (gl_MACROS): Check for mbrlen, for pathchk.
64138         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
64139
64140 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * lib/xreadlink.c (MAXSIZE): New macro.
64143         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
64144         size does not exceed MAXSIZE.  Avoid cast.
64145         As suggested by Mark D. Baushke in
64146         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
64147         if readlink fails with buffer size just under MAXSIZE, try again
64148         with MAXSIZE.
64149
64150 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
64153
64154 2004-11-02  Derek R. Price  <derek@ximbiot.com>
64155         and  Paul Eggert  <eggert@cs.ucla.edu>
64156
64157         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
64158         (get_date): Overparenthesize to avoid GCC warning.
64159
64160 2004-11-02  Bruno Haible  <bruno@clisp.org>
64161
64162         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
64163         returns void.
64164
64165 2004-11-02  Bruno Haible  <bruno@clisp.org>
64166
64167         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
64168         function returns void.
64169
64170 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
64173         fflush_unlocked, flockfile, funlockfile, funlockfile,
64174         fputs_unlocked, putc_unlocked.
64175
64176 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64179         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
64180         already declared.
64181
64182 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * modules/getdate (Files): Add doc/getdate.texi.
64185         (Depends-on): Add setenv, xalloc.
64186
64187 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         * lib/getdate.y: Add support for TZ="foo" within a date string.
64190         Fix some bugs near time_t boundaries.  Reject dates with
64191         out-of-range components, e.g., "Sept 31".
64192         Include <stdlib.h>, "setenv.h", "xalloc.h".
64193         (ISDIGIT_LOCALE): Remove; unused.
64194         Note that the TZ and time functions used here are not reentrant.
64195         (mktime_ok, get_tz): New functions.
64196         (TZBUFSIZE): New constant.
64197         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
64198         This requires that we sometimes generate our own TZ="XXX..." setting.
64199
64200 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * doc/getdate.texi: New file, from coreutils with modifications for
64203         the new TZ parsing.
64204
64205 2004-10-27  Derek R. Price  <derek@ximbiot.com>
64206
64207         * lib/mktime.c (not_equal_tm): Remove redundant check.
64208
64209 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * modules/regex (lib_SOURCES): Add regex.c.
64212         Reported by James Youngman in
64213         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
64214
64215 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * lib/getdate.y: Use Bison 1.875 features, and some minor
64218         code cleanups.  This change does not affect semantics.
64219         Don't include <stdlib.h>; no longer needed.
64220         Don't include unlocked-io.h; only the "#if TEST" code uses
64221         stdio, and performance isn't crucial there.
64222         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
64223         Bison 1.875 features as described below.
64224         All uses of "PC." replaced by "pc->".
64225         (YYSTYPE): Add a forward declaration.
64226         (yylex, yyerror): Use full prototypes in forward decls.
64227         Use "%pure-parser" rather than obsolescent "%pure_parser".
64228         Use %parse-param and %lex-param instead of obsolescent
64229         YYPARSE_PARAM and YYLEX_PARAM.
64230         (meridian_table, month_and_day_table, time_units_table,
64231         relative_time_table, time_zone_table, military_table,
64232         lookup_zone, lookup_word, get_date):
64233         Use NULL instead of 0 where appropriate.
64234         (to_hour): Avoid abort (), to avoid a dependency on
64235         stdlib.h.
64236         (yyerror, yylex): Now accepts parser_control * arg.
64237         (main) [TEST]: Use '\0' rather than 0 for char.
64238
64239 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
64242
64243 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64244
64245         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
64246         It's now the caller's responsibility to handle the case where
64247         !HAVE_GETPAGESIZE && !defined getpagesize.
64248
64249         * lib/mktime.c (leapyear): Arg is long int, not int.
64250
64251 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
64252
64253         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64254
64255 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64256
64257         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64258         missing.  Problem reported by James Youngman.
64259
64260 2004-10-16  Simon Josefsson  <jas@extundo.com>
64261
64262         * gnulib-tool: Fix comments.  Fix parse problem.
64263         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64264
64265 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64268         implementation of getopt_long.  Problem reported by Alexander Taler in:
64269         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64270
64271 2004-10-15  Bruno Haible  <bruno@clisp.org>
64272
64273         * gnulib-tool: Untabify. Initialize supplied_libname.
64274         (func_usage): More homogenous output.
64275         (func_modules_transitive_closure, func_modules_to_filelist,
64276         func_emit_lib_Makefile_am): New functions.
64277         (func_import): New function, extracted from big case statement. Use
64278         func_get_license, func_modules_transitive_closure,
64279         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64280         opt_lgpl. Don't use test -a, as it's not portable.
64281         (func_create_testdir): Use func_modules_transitive_closure,
64282         func_modules_to_filelist, func_emit_lib_Makefile_am.
64283
64284 2004-10-15  Bruno Haible  <bruno@clisp.org>
64285
64286         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64287
64288 2004-10-15  Bruno Haible  <bruno@clisp.org>
64289
64290         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64291         the portions belonging to each module.
64292         Suggested by Derek Robert Price <derek@ximbiot.com>.
64293
64294 2004-10-12  Simon Josefsson  <jas@extundo.com>
64295
64296         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64297         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64298         to real functions.
64299
64300 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64301
64302         * modules/vsnprintf: New file.
64303
64304 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64305
64306         * m4/vsnprintf.m4: New file.
64307
64308 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64309
64310         * lib/vsnprintf.h: New file.
64311         * lib/vsnprintf.c: New file.
64312
64313 2004-10-11  Bruno Haible  <bruno@clisp.org>
64314
64315         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64316         vsnprintf.
64317
64318 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64321
64322 2004-10-07  Bruno Haible  <bruno@clisp.org>
64323
64324         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64325         fits into the provided buffer.
64326
64327 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64328
64329         * lib/diacrit.c, diacrit.h: Add GPL notice.
64330
64331         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64332         notice.
64333         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64334         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64335         This avoids a potential constant-folding bug.
64336
64337 2004-10-05  Bruno Haible  <bruno@clisp.org>
64338
64339         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64340         for the declaration of strsep.
64341
64342 2004-10-05  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64345
64346 2004-10-04  Simon Josefsson  <jas@extundo.com>
64347
64348         * modules/memmem: New file.
64349         * tests/test-memmem.c: New file.
64350         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64351
64352 2004-10-04  Simon Josefsson  <jas@extundo.com>
64353
64354         * m4/memmem.m4: New file.
64355
64356 2004-10-04  Simon Josefsson  <jas@extundo.com>
64357
64358         * lib/memmem.h: New file.
64359         * lib/memmem.c: New file, taken from glibc.
64360
64361 2004-10-04  Simon Josefsson  <jas@extundo.com>
64362
64363         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64364         '#ifdef USE_UNLOCKED_IO'.
64365
64366 2004-10-04  Simon Josefsson  <jas@extundo.com>
64367
64368         * config/srclist.txt: Add memmem from glibc.
64369
64370 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64371
64372         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64373
64374         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64375         modules/exclude, modules/getdate, modules/getline,
64376         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64377         modules/getusershell, modules/linebuffer, modules/md5,
64378         modules/mountlist, modules/posixtm, modules/readtokens,
64379         modules/readutmp, modules/regex, modules/sha1,
64380         modules/version-etc, modules/yesno:
64381         Remove dependency on unlocked-io.
64382
64383 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64386
64387         * m4/unlocked-io.m4: Add copyright notice.
64388         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64389
64390 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64391
64392         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64393         * lib/xmalloc.c (xmemdup): Likewise.
64394         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64395         XFREE): Remove these long-obsolescent macros.
64396         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64397         * lib/xstrdup.c: Remove.
64398
64399         * lib/regex.c (re_comp): Cast gettext return value to char *,
64400         Problem reported by Martin Neitzel via Mark D. Baushke.
64401
64402 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64403
64404         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64405         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64406         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64407         regex.c, sha1.c, version-etc.c, yesno.c:
64408         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64409         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64410         the includer's responsibility.
64411
64412         Sync from coreutils.
64413
64414         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64415         points to the start of a string, as the C Standard says the
64416         resulting behavior is undefined.
64417
64418         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64419         simple -> simple_backups, numbered_existing ->
64420         numbered_existing_backups, numbered -> numbered_backups
64421         to avoid shadowing problems.  All uses changed.
64422         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64423         * lib/backupfile.c (check_extension, numbered_backup):
64424         Rename locals to avoid shadowing 'basename'.
64425         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64426         once.
64427
64428         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64429         * lib/.cvsignore: Add getopt.h.
64430
64431 2004-10-04  Bruno Haible  <bruno@clisp.org>
64432
64433         * modules/README: New file.
64434         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64435         not a module.
64436
64437 2004-10-02  Jim Meyering  <jim@meyering.net>
64438
64439         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64440
64441 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64442
64443         * modules/strsep: New file.
64444
64445 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64446
64447         * m4/strsep.m4: New file.
64448
64449 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64450
64451         * lib/strsep.h: New file.
64452         * lib/strsep.c: New file.
64453
64454 2004-10-01  Simon Josefsson  <jas@extundo.com>
64455
64456         * lib/snprintf.c (snprintf): Handle size==0.
64457
64458 2004-10-01  Simon Josefsson  <jas@extundo.com>
64459             Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64462         (snprintf): Declare 'args'.
64463
64464 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64465
64466         * lib/snprintf.c: Remove comments as to why each header is needed.
64467
64468 2004-10-01  Bruno Haible  <bruno@clisp.org>
64469
64470         * MODULES.html.sh: Add strsep.
64471
64472 2004-09-30  Simon Josefsson  <jas@extundo.com>
64473
64474         * modules/snprintf: New file.
64475
64476 2004-09-30  Simon Josefsson  <jas@extundo.com>
64477
64478         * m4/snprintf.m4: New file.
64479
64480 2004-09-30  Simon Josefsson  <jas@extundo.com>
64481
64482         * lib/snprintf.h, lib/snprintf.c: New files.
64483
64484 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64485
64486         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64487         (hol_entry_help): Never translate an empty string.
64488         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64489         * lib/argp.h (OPTION_NO_TRANS): New option.
64490
64491 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * modules/argp (Maintainer): Replace Simon Josefsson
64494         by Sergey Poznyakoff.
64495
64496 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64499         changes merged back into glibc.
64500
64501 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64504
64505 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64506
64507         * lib/xvasprintf.c: Include xalloc.h.
64508         (xvasprintf): Use xalloc_die, not xmalloc_die.
64509
64510 2004-09-29  Bruno Haible  <bruno@clisp.org>
64511
64512         * modules/alloca-opt: New file, derived from modules/alloca.
64513         * modules/allocsa: Depend on alloca-opt instead of alloca.
64514         * modules/setenv: Likewise.
64515         * modules/vasnprintf: Likewise.
64516         * MODULES.html.sh: Add alloca-opt.
64517
64518 2004-09-28  Simon Josefsson  <jas@extundo.com>
64519
64520         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64521         LGPL, and to replace license template from GPL to LGPL.
64522
64523 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64524
64525         * modules/dummy: Change license to LGPL.
64526
64527 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64528
64529         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64530
64531 2004-09-24  Simon Josefsson  <jas@extundo.com>
64532
64533         * modules/minmax (License): Change from GPL to LGPL.
64534
64535 2004-09-23  Simon Josefsson  <jas@extundo.com>
64536
64537         * gnulib-tool (--import): Typo.
64538
64539 2004-09-23  Simon Josefsson  <jas@extundo.com>
64540
64541         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64542
64543 2004-09-22  Bruno Haible  <bruno@clisp.org>
64544
64545         * modules/*: Add 'License' field.
64546         * gnulib-tool: Accept --extract-license option.
64547         (func_get_license): New function.
64548
64549 2004-09-21  Bruno Haible  <bruno@clisp.org>
64550
64551         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64552         Reported by Simon Josefsson.
64553
64554 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64557         gl_AC_TYPE_LONG_LONG.
64558
64559 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64560
64561         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64562
64563 2004-09-18  Simon Josefsson  <jas@extundo.com>
64564         and  Paul Eggert  <eggert@cs.ucla.edu>
64565
64566         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64567         calls with autoreconf.  Define GL_LIB.
64568
64569 2004-09-14  Karl Berry  <karl@gnu.org>
64570
64571         * config/srclist.txt: unsync setenv.c, sigh.
64572
64573 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64574
64575         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64576         Problem reported by Bruno Haible in:
64577         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64578
64579 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64580
64581         * config/srclist.txt: Comment out argp-pvh.c.
64582
64583 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64584
64585         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64586         in case some system header has #define'd it.  Problem reported by
64587         Soeren D. Schulze in
64588         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64589
64590 2004-09-09  Karl Berry  <karl@gnu.org>
64591
64592         * regex.[ch]: delete from the root.  These were supposed to be
64593                 synced with emacs cvs, but this has not happened for about
64594                 a year, and anyway nothing else uses emacs regex.[ch].
64595                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64596                 lib/regex[.ch] is untouched.
64597
64598 2004-09-09  Bruno Haible  <bruno@clisp.org>
64599
64600         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64601
64602 2004-09-09  Bruno Haible  <bruno@clisp.org>
64603
64604         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64605         modifications.
64606         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64607
64608 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64609
64610         * modules/xvasprintf: New file.
64611         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64612
64613 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64614
64615         * lib/xvasprintf.h: New file.
64616         * lib/xvasprintf.c: New file.
64617         * lib/xasprintf.c: New file.
64618
64619 2004-09-08  Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64622
64623 2004-09-08  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64626         length is > INT_MAX.
64627         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64628         more.
64629
64630 2004-09-08  Bruno Haible  <bruno@clisp.org>
64631
64632         * lib/stdint_.h: New file, taken from GNU clisp.
64633
64634 2004-09-08  Bruno Haible  <bruno@clisp.org>
64635             Oskar Liljeblad  <oskar@osk.mine.nu>
64636
64637         * modules/stdint: New file.
64638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64639
64640 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64641
64642         Import from coreutils.
64643         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64644         strings on unbounded length.  alloca's performance benefits aren't
64645         that important here.
64646         (V_STRDUP): Remove.
64647         (parse_with_separator): New function, with most of the internals
64648         of the old parse_user_spec.  Allow user to omit both user and group,
64649         for compatibility with FreeBSD.
64650         Clone only the user name, not the entire spec.
64651         Do not set *uid, *gid unless entirely successful.
64652         Avoid memory leak in some failing cases.
64653         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64654         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64655         (parse_user_spec): Rewrite to use parse_with_separator.
64656
64657 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         * modules/userspec: Don't depend on alloca.
64660
64661 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64664
64665 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64668         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64669         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64670
64671 2004-08-16  Simon Josefsson  <jas@extundo.com>
64672
64673         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64674         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64675         Add --dry-run for --import.
64676         Let user provided command line parameters override configure.ac
64677         settings.
64678
64679 2004-08-12  Simon Josefsson  <jas@extundo.com>
64680
64681         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64682         as discussed with Paul Eggert in threads rooted at
64683         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64684         and
64685         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64686         Before, the test was empty, and relied on ELIDE_CODE in source
64687         code.)
64688         (gl_PREREQ_GETOPT): New macro.
64689         (gl_GETOPT): Use them.
64690
64691 2004-08-12  Simon Josefsson  <jas@extundo.com>
64692
64693         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64694         * lib/getopt_.h: Renamed from getopt.h.
64695
64696 2004-08-12  Simon Josefsson  <jas@extundo.com>
64697
64698         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64699         Change default library name from libfoo to libgnu.
64700         Now, if you have a configure.ac that says:
64701                 gl_SOURCE_BASE(gl)
64702                 gl_M4_BASE(gl/m4)
64703                 gl_MODULES(error getopt etcetera)
64704                 gl_INIT
64705         you can import all you need by running:
64706                 ../gnulib/gnulib-tool --import
64707
64708         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64709         (Makefile.am): Rewrite, use logic from argz.
64710         (Include): Use <getopt.h> instead of "getopt.h".
64711
64712 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * modules/argp (Files): Add m4/unlocked-io.m4.
64715         (Depends-on): Add extensions.
64716
64717 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64720         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64721         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64722         Check for program_invocation_name, program_invocation_short_name,
64723         flockfile, funlockfile, features.h, _getopt_long_only_r.
64724
64725 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64728         its complicated substitute.
64729         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64730         and program_invocation_name.
64731         (__argp_basename) [!_LIBC]: Remove; the only use was
64732         replaced by its body.
64733         (__argp_short_program_name): Change condition from
64734         !defined __argp_short_program_name to
64735         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64736         to match argp-namefrob.h.
64737         (__argp_failure): Don't assume strerror_r returns char *.
64738         * lib/argp-parse.c (N_): Define unconditionally.
64739         (argp_default_options): Fill out initializers with 0 to avoid
64740         gcc warnings.
64741
64742 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64743
64744         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64745         getopt1.c.
64746
64747 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         Merge from coreutils.
64750
64751         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64752
64753         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64754         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64755
64756 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         Merge from coreutils.
64759
64760         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64761         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64762         for Reliant Unix 5.43.
64763
64764         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64765         (union fooround): Use uintmax_t, not long int.
64766         The rest is a merge from libc:
64767         [defined _LIBC]: Include <shlib-compat.h>.
64768         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64769
64770         * lib/settime.c (settime): Recode to avoid warning with
64771         Sun Forte C 6U2.
64772
64773         * lib/strverscmp.c: Convert to UTF-8.
64774
64775 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64776
64777         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64778         m4/uintmax_t.m4.
64779
64780 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         * modules/xalloc-die: New file.
64783         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64784
64785         * modules/md5 (Files): Add m4/uint32_t.m4.
64786         * modules/sha1: Renamed from modules/sha.
64787         (Files):
64788         Rename lib/sha.h to lib/sha1.h.
64789         Rename lib/sha.c to lib/sha1.c.
64790         Rename m4/sha.m4 to m4/sha1.m4.
64791         (lib_SOURCES): Likewise.
64792         (configure.ac): Rename gl_SHA to gl_SHA1.
64793         (Include): sha.h -> sha1.h.
64794
64795 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64798         * m4/sha1.m4: Renamed from sha.m4.
64799         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64800
64801 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64802
64803         * lib/obstack.h (obstack_empty_p):
64804         Don't assume that chunk->contents is suitably aligned.
64805         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64806         Likewise. Problem reported by Benno in
64807         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64808
64809         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64810         readable.  This could be improved further but it'd take some work.
64811
64812 2004-08-08  Simon Josefsson  <jas@extundo.com>
64813
64814         * modules/xgethostname (Depends-on): Remove exit and error (not
64815         used).
64816
64817         * modules/getpass-gnu: Add getpass.h.
64818         (Depends-on): Add stdbool.
64819         * modules/getpass: Add getpass.h.
64820
64821 2004-08-08  Simon Josefsson  <jas@extundo.com>
64822
64823         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64824         Check getpass declaration.
64825
64826 2004-08-08  Simon Josefsson  <jas@extundo.com>
64827
64828         * lib/xgethostname.c: Don't include error.h (not used).
64829
64830         * lib/getpass.h: Add.
64831         * lib/getpass.c: Include getpass.h first.
64832
64833 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64834
64835         * lib/xalloc-die.c: New file.
64836         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64837         All uses removed.
64838         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64839         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64840         xalloc-die.c.
64841         (_, N_, xalloc_die): Move to xalloc-die.c.
64842         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64843         so that we needn't mess with xalloc_msg_memory_exhausted.
64844
64845         * lib/sha1.h: Renamed from sha.h.
64846         (SHA1_H): Renamed from _SHA_H.
64847         (sha1_ctx): Renamed from sha_ctx.
64848         (sha1_init_ctx): Renamed from sha_init_ctx.
64849         (sha1_process_block): Renamed from sha_process_block.
64850         (sha1_process_bytes): Renamed from sha_process_bytes.
64851         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64852         (sha1_read_ctx): Renamed from sha_read_ctx.
64853         (sha1_stream): Renamed from sha_stream.
64854         (sha1_buffer): Renamed from sha_buffer.
64855         * lib/sha1.c: Likewise; renamed from sha.c.
64856         Do not include <sys/types.h>.
64857         Include <stddef.h> rather than <stdlib.h>.
64858
64859 2004-08-08  Bruno Haible  <bruno@clisp.org>
64860
64861         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64862         FILESYSTEM_PREFIX_LEN.
64863         * lib/progreloc.c: Likewise.
64864         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64865
64866 2004-08-06  Simon Josefsson  <jas@extundo.com>
64867
64868         * modules/progname (Depends-on): Don't depend on stdbool.
64869
64870 2004-08-06  Simon Josefsson  <jas@extundo.com>
64871
64872         * modules/getsubopt: New file.
64873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64874         getsubopt.
64875
64876 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         More merge from coreutils.
64879
64880         * m4/utimens.m4, m4/utimecmp.m4: New files.
64881         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64882         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64883         prereq.m4, sha.m4: Import changes from coreutils.
64884
64885 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         More merge from coreutils.
64888         * modules/raise, modules/readtokens0, modules/utimens:
64889         * modules/utimecmp, module/xnanosleep: New files.
64890         * modules/strftime: Add lib/strftime.h.
64891         Change include from <time.h> to "strftime.h".
64892         * modules/yesno: Add lib/yesno.h.
64893         * modules/backupfile: Remove lib/addext.c.
64894         * modules/euidaccess: Add stat-macros.h.
64895         * modules/canonicalize, modules/euidaccess,
64896         modules/filemode, modules/lchown, modules/makepath,
64897         modules/rmdir, modules/stat: Likewise.
64898
64899 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64900
64901         Merge from tar.
64902         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64903         SIZE_MAX is a valid preprocessor constant.
64904         (__argp_basename): Change from "#ifndef _LIBC"
64905         to "#ifndef __argp_short_program_name", so that
64906         we don't compile these functions for tar.
64907
64908         More merges from coreutils.
64909         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64910         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64911         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64912         * lib/addext.c: Remove; no longer needed.
64913         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64914         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64915         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64916         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64917         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64918         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64919         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64920         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64921         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64922         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64923         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64924         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64925         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64926         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64927         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64928         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64929         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64930         Import changes from coreutils.
64931
64932 2004-08-05  Simon Josefsson  <jas@extundo.com>
64933
64934         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64935
64936 2004-08-05  Simon Josefsson  <jas@extundo.com>
64937
64938         * m4/getsubopt.m4: New file.
64939
64940 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         Merge from coreutils.
64943
64944         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64945         * m4/getcwd-path-max.m4: New files.
64946
64947         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64948         FILESYSTEM_PREFIX_LEN ->
64949         FILE_SYSTEM_PREFIX_LEN.
64950         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64951         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64952         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64953         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64954
64955         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64956         prerequisite modules now handle the DOS stuff.
64957         Don't check for unistd.h.
64958
64959 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64960
64961         Merge from coreutils.
64962
64963         * lib/.gdb-history: Remove; this doesn't belong here.
64964
64965         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64966         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64967         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64968         * lib/getcwd.c: New files.
64969
64970         * lib/dirname.h: Include <stdbool.h>.
64971         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64972         for consistency with POSIX terminology.  All uses changed.
64973         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64974         (strip_trailing_slashes): Use bool for booleans.
64975         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64976
64977         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64978         sometimes returns a positive errno value even when it succeeds.
64979         (print_errno_message) [!LIBC]: Fall back on strerror if
64980         __strerror_r fails.
64981
64982         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64983         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64984         (longest_relative_suffix): New function.
64985         (path_concat): Use it.  Assume first argument is not NULL.
64986         Port to DOS.  Omit redundant separators.
64987         Report an error instead of returning NULL.
64988         Use mempcpy instead of memcpy.
64989         (xpath_concat): Remove: not declared or used.
64990
64991         * lib/same.h: Include <stdbool.h>
64992         (same_name): Return bool, not int.
64993         * lib/same.c (same_name): Likewise.
64994         (errno): Don't declare; we assume C89 or better now.
64995
64996         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64997         if not already defined.
64998
64999         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
65000         * lib/dup-safer.c (errno): Likewise.
65001
65002 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         Merge from coreutils.
65005         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
65006         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
65007         * modules/path-concat: Don't depend on strdup.
65008
65009 2004-08-03  Simon Josefsson  <jas@extundo.com>
65010
65011         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
65012         * lib/progname.h: Don't include stdbool.h.
65013
65014 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
65017         * MODULES.html.sh (func_all_modules): Remove fatal.
65018
65019 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
65022
65023 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65026         working.
65027
65028 2004-08-02  Simon Josefsson  <jas@extundo.com>
65029
65030         * lib/getsubopt.h: New file, with comments from Bruno Haible.
65031         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
65032         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
65033
65034 2004-08-01  Simon Josefsson  <jas@extundo.com>
65035
65036         * lib/xgetdomainname.c: Include stdlib.h, for free().
65037
65038 2004-07-19  Bruno Haible  <bruno@clisp.org>
65039
65040         * MODULES.html.sh (func_all_modules): Add dummy.
65041
65042 2004-07-16  Simon Josefsson  <jas@extundo.com>
65043
65044         * modules/dummy: New file.
65045
65046 2004-07-16  Simon Josefsson  <jas@extundo.com>
65047
65048         * lib/dummy.c: New file.
65049
65050 2004-07-16  Bruno Haible  <bruno@clisp.org>
65051
65052         * lib/backupfile.h: Add extern "C" for C++.
65053         * lib/closeout.h: Likewise.
65054         * lib/copy-file.h: Likewise.
65055         * lib/findprog.h: Likewise.
65056         * lib/full-write.h: Likewise.
65057         * lib/pathname.h: Likewise.
65058         * lib/progname.h: Likewise.
65059         * lib/stpcpy.h: Likewise.
65060         * lib/stpncpy.h: Likewise.
65061         * lib/strcase.h: Likewise.
65062         * lib/strstr.h: Likewise.
65063         * lib/xalloc.h: Likewise.
65064
65065         * lib/mbswidth.h: Add extern "C" for C++.
65066         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
65067
65068 2004-07-13  Robert Millan  <robertmh@gnu.org>
65069
65070         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
65071
65072 2004-07-09  Simon Josefsson  <jas@extundo.com>
65073
65074         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65075         failed without this.)
65076
65077 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65078
65079         * modules/chown (Files): Add lib/fchown-stub.c, since
65080         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65081
65082 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * lib/fchown-stub.c: New file.
65085
65086 2004-06-24  Jim Meyering  <jim@meyering.net>
65087
65088         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65089
65090 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65091
65092         * modules/argz: Omit "#include".
65093
65094         * MODULES.html.sh (func_all_modules): Add calloc, to match
65095         2004-06-01 addition of calloc module.
65096
65097 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         * m4/argz.m4: New file, which is autoupdated from libtool.
65100
65101 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65102
65103         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65104         libtool.
65105
65106 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65107
65108         * config/srclist-update: Don't insist on "USA." before the
65109         close-comment, as libtool omits the period and puts the */ on a
65110         separate line.
65111         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65112         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65113
65114 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65115
65116         * modules/argz: New file.
65117         * MODULES.html.sh (func_all_modules): Add argz.
65118
65119 2004-06-12  Jim Meyering  <jim@meyering.net>
65120         and  Paul Eggert  <eggert@cs.ucla.edu>
65121
65122         * modules/hash (Files): Add lib/xalloc.h.
65123         * modules/pipe (Depends-on): Add wait-process.
65124         * modules/stat (Depends-on): Add xalloc.
65125         * modules/userspec (Files): Add lib/userspec.h.
65126         * modules/xstrto
65127
65128         Upgrade from gettext-0.13.
65129         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
65130         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
65131         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
65132
65133 2004-06-10  Jim Meyering  <jim@meyering.net>
65134
65135         * lib/calloc.c: New file.
65136
65137 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * lib/getdate.y (yylex): Allow space between sign and number.
65140         Problem reported by Dan Jacobson.
65141
65142 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         Merge from coreutils CVS.
65145
65146         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
65147         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
65148         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
65149         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
65150         xstrtol.m4: Fix copyright date and/or serial number.
65151
65152         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
65153         See if we need an fchown replacement.
65154         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
65155         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
65156         and use the replacement function if we detect either defect.
65157
65158         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
65159         gl_UTIMECMP.
65160
65161 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
65162         and  Jim Meyering  <jim@meyering.net>
65163
65164         Merge from coreutils CVS.
65165
65166         * lib/stat-macros.h: New file, with contents from file-type.h
65167         and coreutils' system.h.
65168         * lib/file-type.c: Include "stat-macros.h".
65169         * lib/file-type.h (file_type): Move all macro definitions to new file,
65170         stat-macros.h.
65171
65172         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
65173         Wrap old code with this conditional.
65174         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
65175         function that does not dereference symlinks.
65176         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
65177
65178         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
65179         dependency problems.
65180         (xreadlink): Accept new arg SIZE, for efficiency.
65181         All decls and uses changed.
65182         * lib/xreadlink.h: Include <stddef.h>, for size_t.
65183
65184         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
65185         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
65186
65187         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
65188         sysexits.h.
65189
65190 2004-06-01  Jim Meyering  <jim@meyering.net>
65191
65192         * m4/calloc.m4: New file.
65193
65194 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
65197         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
65198         Also, fix a typo in a diagnostic.
65199
65200 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
65203         or AC_FUNC_REALLOC.
65204
65205 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
65208         macros to be defined.
65209         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
65210         the allocator returns NULL because the requested size is zero.
65211
65212 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
65215         var.  Add comment explaining why libc still defines it.  This
65216         merges the following patch from glibc:
65217         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
65218
65219 2004-05-20  Andreas Schwab  <schwab@suse.de>
65220
65221         * m4/free.m4: Replace free if it not known to work, not the other
65222         way round.
65223
65224 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65225
65226         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
65227         present in glibc since revision 1.1 of this file.
65228         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
65229         obstack_alignment_mask, obstack_alloc, obstack_base,
65230         obstack_blank, obstack_blank_fast, obstack_chunk_size,
65231         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
65232         obstack_grow0, obstack_init, obstack_int_grow,
65233         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
65234         obstack_next_free, obstack_object_size, obstack_ptr_grow,
65235         obstack_ptr_grow_fast, obstack_room): Remove declarations of
65236         nonexistent functions.
65237
65238 2004-05-18  Karl Berry  <karl@gnu.org>
65239
65240         * config/srclist.txt: break link for vasnprintf.c.
65241
65242 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         Port obstack to the AS/400, where pointers are 16 bytes wide and
65245         you cannot cast an integer to a valid pointer.  This patch is
65246         currently waiting to be integrated into glibc; see
65247         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
65248
65249         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
65250         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
65251         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
65252         (struct obstack): temp member is now a union of a pointer and
65253         an integer, instead of an integer.  All integer uses changed.
65254         This does not affect the physical layout of struct obstack,
65255         except on hosts (like the AS/400) where the size or alignment of
65256         void * is greater than that of ptrdiff_t.
65257         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65258         __STDC__)]: Store temporary in pointer member of union, not
65259         integer member.
65260         * lib/obstack.c: Include <stddef.h>, for offsetof.
65261         (struct fooalign): Remove; it doesn't need a name.
65262         (union fooround): Change double to long double, and add void *.
65263         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65264         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65265         not a macro.  Hence the values are always int; so remove all
65266         casts-to-int in uses.
65267
65268 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65271         we can get this patch merged into glibc.
65272
65273 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65274             Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * m4/argp: Depend on alloca.
65277
65278 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65279             Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65282         freecoding.
65283
65284 2004-05-17  Bruno Haible  <bruno@clisp.org>
65285
65286         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65287         precision that consists of a '.' followed by an empty digit string.
65288         Patch by Tor Lillqvist <tml@iki.fi>.
65289
65290 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65293         for backward compatibility with older code.  We need our own
65294         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65295         it under some other name, and our alloca.h will define it.
65296
65297 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65298             Derek Price  <derek@ximbiot.com>
65299
65300         * lib/alloca.c: Include <alloca.h>, to get our interface.
65301         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65302         include <alloca.h> first.  Use C89 prototype for alloca; this
65303         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65304         Use #elif for simplicity, since we can assume C89 now.
65305         Don't try to source the system alloca.h since it will not be found
65306         and to prevent recursively including its replacement.
65307         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65308         * lib/regex.c: Likewise.
65309
65310 2004-05-16  Derek Price  <derek@ximbiot.com>
65311             Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         getline cleanup.  This changes the getndelim2 API: both order of
65314         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65315         no delimiter).
65316
65317         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65318         interface does that.
65319         (getline): Always use getdelim, so that we don't have two
65320         copies of this code.
65321         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65322         if available.
65323         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65324         (GETNDELIM2_MAXIMUM): New macro.
65325         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65326         instead of the old practice of delim2==0.  All callers changed.
65327         Return -1 on overflow, instead of returning junk.
65328         Do not set *linesize unless allocation succeeds.
65329         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65330         that we include sys/types.h.
65331         * lib/getnline.h: Likewise.
65332         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65333         (getndelim2): Reorder arguments.
65334         * lib/getnline.c (getnline, getndelim):
65335         Don't discard the NMAX argument.
65336         (getnline): Invoke getndelim, to avoid code duplication.
65337         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65338         of (size_t) -1 by callers of the getnline family.
65339
65340 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65341
65342         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65343         Check for gettimeofday.
65344         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65345         Check for settimeofday, stime.
65346
65347 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65348
65349         * lib/nanosleep.c (suspended): Change its type from int to
65350         sig_atomic_t volatile.
65351         (first_call): Make it private to rpl_nanosleep, and have it
65352         be zero initially as that's a bit faster.
65353         (my_usleep): Round up fractional times instead of truncating them,
65354         as this is the usual meaning for 'sleep'.
65355
65356         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65357         doesn't work.
65358         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65359         (ENOSYS): Define if not defined.
65360         (settime): Fall back on stime if it exists and settimeofday fails.
65361         But don't bother with fallbacks if a method fails with errno == EPERM.
65362
65363 2004-05-11  Jim Meyering  <jim@meyering.net>
65364
65365         Prior to this change, the save_cwd caller required read access to the
65366         current directory on most systems (ones with the fchdir function).
65367
65368         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65369         fails, try write-only, and finally, resort to using xgetcwd.
65370
65371 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * lib/obstack.c, obstack.h: Import changes from libc.
65374
65375 2004-04-28  Bruno Haible  <bruno@clisp.org>
65376
65377         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65378         also implicitly appends .exe to executables.
65379         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65380         accepts Windows pathnames.
65381         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65382         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65383         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65384         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65385         Reported by Derek Robert Price <derek@ximbiot.com>.
65386
65387 2004-04-21  Karl Berry  <karl@gnu.org>
65388
65389         * config/srclist.txt (localcharset.c): break sync.
65390
65391 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65392
65393         * m4/host-os.m4: Add a copyright notice.
65394
65395 2004-04-20  Jim Meyering  <jim@meyering.net>
65396
65397         Change UTILS_ to gl_ in AC_DEFINE'd names.
65398         Change utils_- and jm_-prefixed variables, too.
65399         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65400         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65401         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65402
65403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65404         Don't emit trailing blanks.
65405         Also rename jm_-prefixed variables to have gl_ prefix.
65406
65407         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65408         Also rename jm_-prefixed variables to have gl_ prefix.
65409
65410         * m4/jm-macros.m4: Reflect the renamings.
65411         * m4/prereq.m4: Likewise.
65412
65413 2004-04-20  Jim Meyering  <jim@meyering.net>
65414
65415         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65416         memory.
65417
65418 2004-04-20  Jim Meyering  <jim@meyering.net>
65419             Bruno Haible  <bruno@clisp.org>
65420
65421         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65422         memory when realloc fails.
65423
65424 2004-04-19  Jim Meyering  <jim@meyering.net>
65425
65426         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65427         now that readutmp.c may call `free (0)'.
65428
65429 2004-04-19  Bruno Haible  <bruno@clisp.org>
65430
65431         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65432         * m4/inttypes_h.m4: Likewise.
65433         * m4/stdint_h.m4: Likewise.
65434         * m4/intmax_t.m4: Likewise.
65435         * m4/uintmax_t.m4: Likewise.
65436
65437 2004-04-18  Jim Meyering  <jim@meyering.net>
65438
65439         * m4/prereq.m4: Don't forbid jm_ prefix.
65440
65441         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65442         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65443         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65444         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65445         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65446         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65447         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65448         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65449         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65450         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65451         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65452         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65453         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65454         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65455         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65456         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65457         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65458         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65459         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65460
65461 2004-04-18  Jim Meyering  <jim@meyering.net>
65462
65463         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65464         failure, don't leak memory and do call END_UTMP_ENT.
65465
65466 2004-04-16  Jim Meyering  <jim@meyering.net>
65467
65468         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65469         coreutils' stat program.
65470         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65471
65472 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65473
65474         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65475         C89.
65476         (CHAR_BIT): Remove, since we assume C89.
65477         Include <stdint.h> if available, as per current Autoconf CVS advice.
65478
65479 2004-03-31  Jim Meyering  <jim@meyering.net>
65480
65481         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65482         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65483         * m4/xalloc.m4: Likewise.
65484
65485 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65486
65487         Merge from coreutils.
65488
65489         * m4/inttostr.m4: New file.
65490         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65491         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65492         Require gl_CLOCK_TIME.
65493         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65494
65495 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65496
65497         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65498         not bool, to be more consistent with Unix conventions.
65499         Suggested by Bruno Haible.
65500
65501         Merge from coreutils.
65502
65503         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65504         * lib/umaxtostr.c: New files.
65505
65506         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65507         the usual <time.h> dance.
65508         (get_date): Change signature to support fractional time stamps.
65509         All callers changed.
65510         * lib/getdate.y: Include "getdate.h" first, as we can now
65511         assume C89 and don't need to worry about 'const'.
65512         Similarly, include "unlocked-io.h" near start, not in middle.
65513         Include <limits.h>.
65514         (textint.value): Use long int rather than int.
65515         (textint.digits): Use size_t rather than int.
65516         (BILLION, LOG10_BILLION): New constants.
65517         (parser_control): New member rel_ns.  Members day_ordinal,
65518         time_zone, month, day, hour, minutes, rel_year, rel_month,
65519         rel_day, rel_hour, rel_minutes, rel_seconds
65520         are now long int, not int.  Member seconds is now struct timespec,
65521         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65522         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65523         not int.
65524         (%union.intval): Now long int, not int.
65525         New member timespec.
65526         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65527         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65528         (spec): Now is a timespec or an item list.
65529         (timespec, items): New nonterminals.
65530         (time, rel, relunit, number, get_date):
65531         Add support for fractional seconds.
65532         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65533         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65534         (to_hour): First arg is now long int, not int.
65535         (to_year): Returns long int, not int.
65536         Don't treat year -70 like 70.
65537         (tm_diff): Returns long int, not int.
65538         (lookup_word): Use bool instead of int when appropriate.
65539         (yylex): Use size_t for count, not int.
65540         Detect overflow when parsing large integer constants.
65541         Add support for fractions.
65542         (get_date): Make pointers 'const' if possible.
65543         Use more-portable code to detect integer overflow.
65544         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65545         Don't use ctime; it's not reliable if the year has >4 digits.
65546
65547         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65548         This is for compatibility with BSD.
65549
65550         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65551         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65552         From coreutils' system.h.
65553
65554         * lib/userspec.c: Don't include "posixver.h".
65555         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65556         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65557         compatible extension.  Simplify code by removing a boolean int
65558         that was always nonzero if a string was nonnull.
65559
65560 2004-03-30  Jim Meyering  <jim@meyering.net>
65561
65562         Merge from coreutils.
65563
65564         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65565         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65566         on some systems one must include <grp.h> before it.
65567         Reported by Christian Krackowizer.
65568
65569 2004-03-30  Jim Meyering  <jim@meyering.net>
65570
65571         Merge from coreutils.
65572
65573         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65574
65575         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65576         an empty input stream.
65577
65578         * lib/readtokens.c: Include <stdbool.h>.
65579         (readtoken): Use `size_t' rather than int/long.
65580         All callers adjusted.
65581         Use `bool' rather than `int' where appropriate.
65582         Use memset rather than an explicit loop.
65583         Use x2nrealloc rather than xrealloc.
65584         Allow the use of `\0' as a delimiter.
65585         (readtokens): Likewise.
65586         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65587
65588 2004-03-30  Jim Meyering  <jim@meyering.net>
65589
65590         * m4/realloc.m4: Remove file, since now it does no more than
65591         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65592         the `configure.ac' section of module/realloc.
65593         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65594
65595 2004-03-30  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65598         nonnull.
65599
65600 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65601
65602         Merge changes to getloadavg.c from coreutils and Emacs.
65603
65604         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65605         Define to an expression, not to the empty string.
65606         Include cloexec.h and xalloc.h.
65607         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65608         Use set_cloexec_flag rather than rolling our own.
65609         * lib/cloexec.c, lib/cloexec.h: New files.
65610
65611 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65612
65613         * m4/cloexec.m4: New file.
65614
65615 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65616
65617         * lib/getopt.h: Sync with libc CVS.
65618
65619 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65620             Bruno Haible  <bruno@clisp.org>
65621
65622         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65623         mbswidth.
65624
65625 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65626             Bruno Haible  <bruno@clisp.org>
65627
65628         * lib/mbswidth.h: Include <wchar.h> only if
65629         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65630         <wchar.h>.
65631         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65632
65633 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65634
65635         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65636         Sync with libc CVS.
65637         * lib/getopt_int.h: New file, also synced from libc.
65638
65639 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65640
65641         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65642         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65643         Bring back getopt.c, getopt.h, getopt1.c.
65644
65645 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65646
65647         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65648         All uses changed.  Check for sa_sigaction member; this fixes
65649         a bug first reported by Jason Andrade in
65650         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65651
65652 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65653
65654         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65655         '#if' expressions.  Unlike the code it replaces, it does not
65656         depend on (defined _SC_PAGESIZE).  However, it does depend on
65657         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65658         first reported by Jason Andrade in
65659         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65660
65661 2004-02-25  Simon Josefsson  <jas@extundo.com>
65662
65663         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65664
65665 2004-02-25  Simon Josefsson  <jas@extundo.com>
65666
65667         * lib/strdup.h: New file.
65668         * lib/strdup.c: Include it.
65669         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65670         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65671
65672 2004-02-23  Karl Berry  <karl@gnu.org>
65673
65674         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65675         (from fencepost.gnu.org:/gd/gnuorg).
65676
65677 2004-02-23  Karl Berry  <karl@gnu.org>
65678
65679         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65680         * config/srclist.txt: add maintain/standards documents.
65681
65682 2004-02-18  Bruno Haible  <bruno@clisp.org>
65683
65684         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65685         Reported by Derek Robert Price <derek@ximbiot.com>.
65686
65687 2004-02-16  Karl Berry  <karl@gnu.org>
65688
65689         * config/mkinstalldirs, install-sh: update from automake.
65690
65691 2004-02-06  Karl Berry  <karl@gnu.org>
65692
65693         * m4/po.m4: update from gettext 0.14.1.
65694
65695 2004-02-06  Karl Berry  <karl@gnu.org>
65696
65697         * lib/config.charset: update from gettext 0.14.1.
65698
65699 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65700
65701         Add comments and code, prompted by suggestions from Bruno Haible
65702         for sh-quote.
65703         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65704         describing the enum quoting_style values.
65705         * lib/quotearg.c (quotearg_alloc): New function.
65706         (quotearg_buffer_restyled): Treat lone { and } as special.
65707         Treat = as special.  Work around bug with older shells
65708         that "see" a '\' that is really the 2nd byte of a multibyte char.
65709         Quote empty string with shell_quoting_style.
65710
65711 2004-02-03  Bruno Haible  <bruno@clisp.org>
65712
65713         * m4/pipe.m4: New file, from GNU gettext.
65714
65715 2004-02-03  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/pipe.h: New file, from GNU gettext.
65718         * lib/pipe.c: New file, from GNU gettext.
65719
65720 2004-01-27  Bruno Haible  <bruno@clisp.org>
65721
65722         * m4/execute.m4: New file, from GNU gettext.
65723
65724 2004-01-27  Bruno Haible  <bruno@clisp.org>
65725
65726         * lib/execute.h: New file, from GNU gettext.
65727         * lib/execute.c: New file, from GNU gettext.
65728         * lib/w32spawn.h: New file, from GNU gettext.
65729
65730 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65731
65732         Merge from diffutils.
65733
65734         * lib/file-type.c (file_type): Add typed memory objects.
65735         * lib/file-type.h (S_TYPEISTMO): New macro.
65736
65737         * lib/c-stack.h (c_stack_action): Remove argv argument.
65738         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65739         (die): Don't calculate message unless segv_action returns.
65740         (get_stack_location, min_address_from_argv, max_address_from_argv,
65741         volatile stack_base, volatile_stack_size): Remove.
65742         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65743         that every segmentation violation is a stack overflow.  (Ouch!)
65744         See Debian bug 136249 (still outstanding) for more info about why
65745         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65746
65747 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65748
65749         Exit-status fix from coreutils.
65750
65751         Use exit_failure consistently in place of EXIT_FAILURE,
65752         so that program exit statuses are consistent on failure.
65753
65754         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65755         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65756         * lib/argmatch.h: Comment fix to match the above.
65757         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65758         Now a macro referring to exit_failure, instead of a separate
65759         variable.  Include "exitfail.h" to get it.
65760         * lib/xstrtol.h: Include "exitfail.h".
65761         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65762
65763         * lib/long-options.c (parse_long_options): Use prototype
65764         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65765         for clarity.
65766
65767 2004-01-21  Jim Meyering  <jim@meyering.net>
65768
65769         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65770         so as not to conflict with a different-sized __mktime_internal
65771         function in GNU libc.
65772         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65773         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65774
65775 2004-01-20  Karl Berry  <karl@gnu.org>
65776
65777         * config/config.guess: update from config.
65778
65779         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65780
65781 2004-01-20  Bruno Haible  <bruno@clisp.org>
65782
65783         Safer stack allocation.
65784         * lib/setenv.c: Include allocsa.h.
65785         (alloca): Remove fallback definition.
65786         (freea): Remove macro.
65787         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65788         instead of freea.
65789
65790 2004-01-20  Bruno Haible  <bruno@clisp.org>
65791
65792         * m4/eealloc.m4: New file, from GNU gettext.
65793
65794 2004-01-20  Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/allocsa.m4: New file, from GNU gettext.
65797
65798 2004-01-20  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/xallocsa.h: New file, from GNU gettext.
65801         * lib/xallocsa.c: New file, from GNU gettext.
65802
65803 2004-01-20  Bruno Haible  <bruno@clisp.org>
65804
65805         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65806
65807 2004-01-20  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65810         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65811         specially.
65812
65813 2004-01-20  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65816         patch.
65817
65818 2004-01-20  Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65821
65822 2004-01-20  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/eealloc.h: New file.
65825
65826 2004-01-20  Bruno Haible  <bruno@clisp.org>
65827
65828         * lib/binary-io.h: Avoid warnings on Cygwin.
65829
65830 2004-01-20  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/allocsa.h: New file, from GNU gettext.
65833         * lib/allocsa.c: New file, from GNU gettext.
65834
65835 2004-01-18  Karl Berry  <karl@gnu.org>
65836
65837         * doc/gpl.texi, doc/lgpl.texi: new files.
65838
65839 2004-01-18  Karl Berry  <karl@gnu.org>
65840
65841         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65842         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65843
65844 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65845
65846         Merge from coreutils.
65847
65848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65849         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65850         (gl_DEFAULT_POSIX2_VERSION): Move
65851         the documentation from 'configure' into 'config.hin',
65852         so that 'configure --help' isn't burdened by it and
65853         we don't have to worry about its formatting there.
65854         Reword the documentation so that it's more succinct
65855         and can be run together into a single paragraph.
65856         * m4/same.m4 (gl_SAME): Check for pathconf.
65857
65858 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65859
65860         Merge from coreutils.
65861
65862         * lib/posixver.c: Include posixver.h.
65863
65864         * lib/same.c: Include <stdbool.h>, <limits.h>.
65865         (_POSIX_NAME_MAX): Define if not defined.
65866         (MIN): New macro.
65867         (same_name): If file names are silently truncated, report
65868         that the file names are the same if they are the same after
65869         the silent truncation.
65870
65871         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65872         conversion function.
65873         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65874         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65875         longer needed.
65876
65877 2004-01-15  Jim Meyering  <jim@meyering.net>
65878
65879         Merge from coreutils.
65880
65881         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65882         if no library is required.
65883         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65884         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65885         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65886         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65887         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65888         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65889         value, $ac_cv_search_crypt, if it's "none required".
65890         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65891         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65892         not gl_FUNC_GETLOADAVG.
65893         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65894         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65895
65896 2004-01-15  Jim Meyering  <jim@meyering.net>
65897
65898         Merge from coreutils.
65899
65900         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65901         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65902         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65903
65904         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65905         optional configure-time default.
65906
65907         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65908
65909         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65910
65911 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65912
65913         Merge from coreutils.
65914
65915         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65916         value, $ac_cv_search_nanosleep, if it's "none required".
65917
65918 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65919
65920         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65921         with like-named macro in fnmatch.c.
65922         (EXT): Use an internal constant instead.
65923
65924         Merge fnmatch patches from glibc.
65925         * lib/fnmatch.c (mbsinit): Remove define.
65926         Add libc_hidden_ver (__fnmatch, fnmatch).
65927         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65928         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65929
65930 2004-01-14  Karl Berry  <karl@gnu.org>
65931
65932         * config/install-sh: update from automake.
65933
65934 2004-01-13  Karl Berry  <karl@gnu.org>
65935
65936         * config/install-sh: update from automake.
65937
65938 2004-01-09  Karl Berry  <karl@gnu.org>
65939
65940         * config/install-sh: update from automake.
65941
65942 2004-01-05  Karl Berry  <karl@gnu.org>
65943
65944         * config/config.{sub,guess}: update from config.
65945
65946 2003-12-31  Karl Berry  <karl@gnu.org>
65947
65948         * config/depcomp: update from automake.
65949
65950 2003-12-14  Karl Berry  <karl@gnu.org>
65951
65952         * lib/config.charset: update from gettext-runtime.
65953
65954 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65955
65956         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65957         Bug reported by Alfred M. Szmidt.
65958
65959 2003-12-03  Bruno Haible  <bruno@clisp.org>
65960
65961         * m4/gettext.m4: Upgrade from gettext-0.13.
65962         * m4/po.m4: Upgrade from gettext-0.13.
65963         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65964         * m4/intmax.m4: New file, from gettext-0.13.
65965         * m4/printf-posix.m4: New file, from gettext-0.13.
65966
65967 2003-11-29  Karl Berry  <karl@gnu.org>
65968
65969         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65970
65971 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65972             Bruno Haible  <bruno@clisp.org>
65973
65974         * lib/printf-parse.h: Don't include sys/types.h.
65975         (ARG_NONE): New macro.
65976         (char_directive): Change type of *arg_index fields to size_t.
65977         * lib/printf-parse.c: Don't include sys/types.h.
65978         (SSIZE_MAX): Remove macro.
65979         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65980         Remove unnecessary overflow check.
65981         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65982         fields.
65983
65984 2003-11-25  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65987
65988 2003-11-25  Bruno Haible  <bruno@clisp.org>
65989
65990         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65991         gt_TYPE_SSIZE_T.
65992
65993 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65994
65995         * modules/alloca: Remove dependency on xalloc.
65996
65997 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65998
65999         * lib/alloca.c: Remove dependency on xalloc module.
66000         (xalloc_die): Remove.
66001         (memory_full) [!defined emacs]: New macro.
66002         [!defined emacs]: Don't include xalloc.h.
66003         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
66004         address arithmetic overflows.  Change datatypes a bit to avoid
66005         unnecessary casts.
66006
66007 2003-11-22  Jim Meyering  <jim@meyering.net>
66008
66009         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
66010         s/size/size_t/.
66011
66012 2003-11-21  Karl Berry  <karl@gnu.org>
66013
66014         * config/config.{sub,guess}: update from config.
66015
66016 2003-11-18  Karl Berry  <karl@gnu.org>
66017
66018         * config/config.{sub,guess}: update from config.
66019
66020         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
66021
66022 2003-11-17  Paul Eggert  <eggert@twinsun.com>
66023
66024         * README: Mention that S+T cannot overflow if S is the size of
66025         an existing object and T is sufficiently small.
66026
66027 2003-11-17  Jim Meyering  <jim@meyering.net>
66028
66029         On systems without utime and without a utimes function capable of
66030         dealing with a NULL struct utimbuf* argument, this utime replacement
66031         could -- in unusual circumstances -- leak a file descriptor.
66032         * lib/utime.c: Include <unistd.h> and <errno.h>.
66033         (utime_null): Be sure to close `fd' and to preserve errno.
66034         Reported by Geoff Collyer via Arnold Robbins.
66035
66036 2003-11-17  Bruno Haible  <bruno@clisp.org>
66037
66038         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
66039         (Depends-on): Add xsize.
66040
66041 2003-11-17  Bruno Haible  <bruno@clisp.org>
66042
66043         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
66044
66045 2003-11-17  Bruno Haible  <bruno@clisp.org>
66046
66047         * lib/vasnprintf.c (alloca): Remove fallback definition.
66048         (freea): Remove definition.
66049         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
66050         Reported by Paul Eggert.
66051
66052 2003-11-16  Paul Eggert  <eggert@twinsun.com>
66053             Bruno Haible  <bruno@clisp.org>
66054
66055         Protect against address arithmetic overflow.
66056         * lib/printf-args.h: Include stddef.h.
66057         (arguments): Change type of field 'count' to size_t.
66058         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
66059         'unsigned int' where appropriate.
66060         * lib/printf-parse.h: Include sys/types.h.
66061         (char_directive): Change type of *arg_index fields to ssize_t.
66062         (char_directives): Change type of fields 'count', max_*_length to
66063         size_t.
66064         * lib/printf-parse.c: Include sys/types.h and xsize.h.
66065         (SSIZE_MAX): Define fallback value.
66066         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
66067         instead of 'int' where appropriate. Check a_allocated, d_allocated
66068         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
66069         * lib/vasnprintf.c: Include xsize.h.
66070         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
66071         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
66072         overflow. Avoid wraparound when converting a width or precision from
66073         decimal to binary.
66074
66075 2003-11-16  Bruno Haible  <bruno@clisp.org>
66076
66077         Update from GNU gettext.
66078         * lib/printf-parse.c: Generalize to it can be compiled for wide
66079         strings.
66080         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66081         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66082         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66083         SNPRINTF): New macros.
66084         Don't include <alloca.h> if the file is used inside libintl.
66085         (local_wcslen): New function, for Solaris 2.5.1.
66086         (VASNPRINTF): Use it instead of wcslen.
66087
66088 2003-11-16  Bruno Haible  <bruno@clisp.org>
66089
66090         * lib/xsize.h (xmax): New function.
66091         (xsum, xsum3, xsum4): Declare as "pure" functions.
66092
66093 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66094
66095         * modules/xalloc (Files): Undo latest change, since xalloc.h
66096         no longer needs SIZE_MAX or PTRDIFF_MAX.
66097
66098 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66099
66100         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66101         gl_PTRDIFF_MAX.
66102
66103 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66104
66105         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66106         "return", to pacify some unknown compiler.  Problem reported
66107         by Joerg Schilling.
66108
66109 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66110
66111         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66112         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66113         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66114         heuristic is just as accurate as far as we know, and it removes a
66115         dependency on size_max.m4 and ptrdiff_max.m4.
66116
66117 2003-11-11  Bruno Haible  <bruno@clisp.org>
66118
66119         * modules/xsize (Files): Add m4/size_max.m4.
66120         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66121
66122 2003-11-11  Bruno Haible  <bruno@clisp.org>
66123
66124         * m4/size_max.m4: New file.
66125         * m4/ptrdiff_max.m4: New file.
66126         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66127         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66128         (gl_XALLOC): Invoke it.
66129
66130 2003-11-11  Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
66133         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
66134         defined.
66135
66136 2003-11-10  Paul Eggert  <eggert@twinsun.com>
66137
66138         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
66139         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
66140         rejected some allocations of exactly SIZE_MAX - 2 bytes.
66141         From Bruno Haible.
66142         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
66143         not (size_t) -1, since it's defined here.
66144
66145 2003-11-09  Karl Berry  <karl@gnu.org>
66146
66147         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
66148
66149 2003-11-06  Paul Eggert  <eggert@twinsun.com>
66150
66151         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
66152         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
66153         Reject sizes of exactly SIZE_MAX bytes.
66154         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
66155         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
66156
66157 2003-11-05  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/xsize.h: Include limits.h, to avoid a possible collision with
66160         SIZE_MAX defined in <limits.h> on Solaris.
66161
66162 2003-11-04  Jim Meyering  <jim@meyering.net>
66163
66164         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
66165         variable names, rather than @VAR@.
66166         * modules/poll: Likewise.
66167
66168 2003-11-04  Bruno Haible  <bruno@clisp.org>
66169
66170         * modules/xsize: New file.
66171         * modules/linebreak: Depend on xsize.
66172         * MODULES.html.sh (func_all_modules): Add xsize.
66173
66174 2003-11-04  Bruno Haible  <bruno@clisp.org>
66175
66176         * m4/xsize.m4: New file.
66177
66178 2003-11-04  Bruno Haible  <bruno@clisp.org>
66179
66180         * lib/xsize.h: New file.
66181         * lib/linebreak.c: Include xsize.h.
66182         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
66183         argument for overflow.
66184         Suggested by Paul Eggert.
66185
66186 2003-11-03  Karl Berry  <karl@gnu.org>
66187
66188         * config/config.{guess,sub}: update from config.
66189
66190 2003-11-03  Jim Meyering  <jim@meyering.net>
66191
66192         * modules/userspec (lib_SOURCES): Add userspec.h.
66193         (Include): Add "userspec.h".
66194         Improve description.
66195
66196 2003-11-03  Jim Meyering  <jim@meyering.net>
66197
66198         * lib/userspec.c: Include "userspec.h".
66199         * lib/userspec.h: New file.
66200
66201 2003-11-03  Bruno Haible  <bruno@clisp.org>
66202
66203         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
66204
66205 2003-11-03  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
66208         available, to avoid (extremely rare) race condition.
66209         Suggested by Paul Eggert.
66210
66211 2003-11-02  Karl Berry  <karl@gnu.org>
66212
66213         * config/srclist.txt (vasprintf.c): sync broken, sigh.
66214
66215 2003-10-31  Paul Eggert  <eggert@twinsun.com>
66216
66217         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
66218         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
66219         (read_filesystem_list): Set and use me_type_malloced.
66220         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
66221         whatever the type happens to be), for brevity and consistency.
66222         Check for size calculation overflow on Alphas running OSF/1.
66223
66224 2003-10-31  Jim Meyering  <jim@meyering.net>
66225
66226         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
66227
66228         * lib/linebuffer.c: Include <string.h> for declaration of memset.
66229
66230 2003-10-30  Paul Eggert  <eggert@twinsun.com>
66231             Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
66234         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
66235
66236 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66237
66238         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
66239         netbsd*-gnu*.  Suggested by Robert Millan.
66240
66241 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66242
66243         * modules/group-member: Depend on stdbool.
66244
66245 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66246
66247         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
66248
66249 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66250
66251         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
66252         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
66253         after the 'gnu' in these cases.  This fixes some bugs in the
66254         previous change, and is based on suggestions by Robert Millan.
66255
66256 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66257
66258         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66259         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66260         no longer needed.
66261         * lib/quotearg.c (quotearg_n_options): Use it.
66262         * lib/group-member.c: Include <stdbool.h>.
66263         (free_group_info): Arg is now const *; don't free arg.
66264         (get_group_info): Now returns bool and accepts struct group_info *,
66265         rather than returning a malloc'ed struct group_info *.
66266         All uses changed.  Check for overflow in internal size calculation.
66267
66268         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66269         rather than xmalloc/xrealloc.
66270         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66271         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66272         conformance bug: the old code used a pointer after freeing the
66273         storage that it addressed.
66274         * lib/hash.c (hash_initialize): Simplify the code by using
66275         xalloc_oversized rather than doing it by hand.
66276         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66277         the buffer preserved.  Use free and xmalloc instead.
66278         * lib/quotearg.c (quotearg_n_options): Likewise.
66279         Use a simpler test for size overflow.  Don't use xalloc_oversized
66280         because unsigned int might be wider than size_t (!); this suggests
66281         that we should switch from unsigned int to size_t for slot numbers.
66282
66283 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66284
66285         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66286         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66287         NetBSD kernels.  Requested by Richard Stallman.
66288
66289 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66290
66291         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66292         to allocate the returned structure.  Do not allocate a subarray,
66293         as x2nrealloc will do that.
66294         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66295         instead of xnrealloc.
66296         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66297
66298 2003-10-27  Bruno Haible  <bruno@clisp.org>
66299
66300         * lib/stdbool_.h: Better support for BeOS.
66301
66302 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66303
66304         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66305         now uses inline.
66306
66307 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66308
66309         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66310         callers that want to do their own size-overflow checking.  Include
66311         <stdbool.h>, since xalloc_oversized returns bool.
66312         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66313         to use xalloc_oversized.
66314
66315         Add two functions x2realloc, x2nrealloc, for programs that grow
66316         arrays dynamically by doubling their sizes.
66317         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66318         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66319         New functions.
66320
66321         Port to C99 semantics for 'inline' of external functions.
66322         Bug reported by Bruno Haible.
66323         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66324         with the old contents of xnmalloc.
66325         (xnmalloc, xmalloc): Use it.
66326         (xnrealloc_inline): New static inline function,
66327         with the old contents of xnrealloc.
66328         (xnrealloc, xrealloc): Use it.
66329
66330         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66331         that.
66332
66333 2003-10-26  Karl Berry  <karl@gnu.org>
66334
66335         * config/srclist.txt (COPYING.DOC): no longer available from
66336         /gd/gnuorg; don't know where the ultimate source is.
66337
66338 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66339
66340         Fix several address-calculation bugs in the hash modules,
66341         plus some minor code cleanup.
66342
66343         * lib/hash.h: Include <stdbool.h>, for bool.
66344         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66345         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66346         hash_get_n_entries, hash_get_max_bucket_length,
66347         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66348         hash_rehash): Use size_t rather than unsigned.
66349         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66350         hash_get_n_buckets_used, hash_get_n_entries,
66351         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66352         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66353         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66354         Likewise.
66355         (SIZE_MAX): Define if not defined.
66356         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66357         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66358         hash_print):
66359         Use const * when possible.
66360         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66361         (check_tuning): Fix bug: if tuning parameters were very close to
66362         0 or 1, rounding errors could have caused subscript violations.
66363         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66364         (hash_initialize): Add 'fail:' label
66365         to free table and return NULL, and use it to simplify code.
66366         Use calloc rather than clearing the storage ourself.
66367         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66368         buffer size calculations.
66369         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66370         Include <stddef.h>, for size_t.
66371         * lib/hash-pjw.c (hash_pjw): Likewise.
66372         Switch to method described by Bruno Haible.
66373         Include <limits.h>, for CHAR_BIT.
66374         (SIZE_BITS): New macro.
66375
66376 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66377
66378         * m4/getline.m4 (AM_FUNC_GETLINE):
66379         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66380         hosts.  Problem reported by Derek Robert Price in
66381         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66382         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66383         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66384
66385 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66386
66387         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66388         ceiling the allocation at NMAX bytes rather than silently
66389         discarding input bytes before NMAX is reached.  This makes
66390         a difference only if NMAX exceeds SIZE_MAX / 2.
66391
66392         * lib/obstack.c: Merge from glibc.
66393         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66394         Add libc_hidden_def (_obstack_newchunk).
66395         (_obstack_free) [! defined _LIBC]: Remove.
66396         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66397         a clone of the function body.
66398         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66399         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66400
66401         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66402         glibc.
66403         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66404         arg to memcpy.
66405
66406         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66407         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66408         Don't use lvalue casts, as GCC plans to remove support for them
66409         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66410         was also present in the non-GCC version, indicating that this
66411         code had always been buggy and had never been widely used.
66412         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66413         Use the fast variant of each macro, rather than copying the
66414         definiens of the fast variant; that way, we'll be more likely to
66415         catch future bugs in the fast variants.
66416
66417 2003-10-20  Bruno Haible  <bruno@clisp.org>
66418
66419         * modules/wait-process: New file.
66420         * MODULES.html.sh (func_all_modules): Add wait-process.
66421
66422 2003-10-20  Bruno Haible  <bruno@clisp.org>
66423
66424         * m4/wait-process.m4: New file.
66425
66426 2003-10-20  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/wait-process.h: New file, from GNU gettext.
66429         * lib/wait-process.c: New file, from GNU gettext.
66430
66431 2003-10-19  Jim Meyering  <jim@meyering.net>
66432
66433         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66434         HPUX 10.20.
66435
66436 2003-10-18  Karl Berry  <karl@gnu.org>
66437
66438         * config/config.guess: update from config.
66439
66440 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66441
66442         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66443         (getgroups): First arg is int, not size_t.
66444         Don't let 'free' mangle errno.
66445
66446 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66447
66448         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66449
66450 2003-10-16  Karl Berry  <karl@gnu.org>
66451
66452         * config/config.{guess,sub}: update from config.
66453
66454 2003-10-16  Jim Meyering  <jim@meyering.net>
66455
66456         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66457         memcpy.
66458
66459 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66460
66461         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66462         (SIZE_MAX): Remove.
66463         (new_exclude, add_exclude_file): Initial size no longer needs to
66464         be a power of 2.
66465         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66466         our own address arithmetic overflow checking.
66467
66468         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66469         (fnmatch): Do not alloca more than 2000 wide characters;
66470         instead, use malloc for large buffers.
66471         Check for address arithmetic overflow, and return -1
66472         with errno set to ENOMEM in that case.
66473         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66474         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66475         instead, return -1.  Check for address arithmetic overflow.
66476
66477 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66478
66479         Handle invalid suffixes and overflow independently, so that
66480         callers can treat them independently as needed.  Fix some bugs in
66481         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66482         suffix for a human-readable blocksize.  The major caller-visible
66483         change is the addition of a new
66484         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66485         that both overflow and suffix chars were found.
66486
66487         * lib/human.c (humblock): Don't check separately for invalid suffix
66488         char; that is xstrtoumax's job (now that its bug is fixed).
66489         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66490         INTMAX_MAX]: New macros.
66491         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66492         TYPE_MAXIMUM): New macros.
66493         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66494         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66495         if overflow occurs, as it's what __strtol does and it's more useful
66496         in practice.
66497         (__xstrtol): If __strtol reports some error other than ERANGE,
66498         reflect it to the caller as LONGINT_INVALID.  If it reports
66499         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66500         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66501         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66502         value.
66503         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66504         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66505         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66506         [defined UINTMAX_MAX]: New macros.
66507
66508 2003-10-14  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66511
66512 2003-10-14  Bruno Haible  <bruno@clisp.org>
66513
66514         * m4/sig_atomic_t: New file, from GNU gettext.
66515         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66516
66517 2003-10-14  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66520         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66521         Also use volatile where needed.
66522
66523 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66524
66525         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66526         Change maintainer from Bruno Haible to 'all'.
66527
66528 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66529
66530         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66531
66532 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66533
66534         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66535         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66536         and define in terms of the other primitives.
66537         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66538         (SIZE_MAX): Define if not already defined.
66539         (array_size_overflow): New function.
66540         (xalloc_die): Abort instead of exiting if 'error' returns.
66541         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66542         (xmalloc, xrealloc): Use them.
66543         (xcalloc): Check for address arithmetic overflow.
66544         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66545         a bit faster than strcpy.
66546
66547 2003-10-10  Simon Josefsson  <jas@extundo.com>
66548
66549         * modules/argp (Depends-on): Add restrict and strcase.
66550
66551 2003-10-10  Simon Josefsson  <jas@extundo.com>
66552
66553         * m4/argp.m4: Add AC_C_INLINE.
66554
66555 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66556
66557         Merge getpass from libc, plus a few fixes.
66558
66559         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66560         Include <stdbool.h>.
66561         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66562         __fsetlocking to empty.
66563         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66564         do include <bits/libc-lock.h>.
66565         Do not include <fcntl.h>; not needed.
66566         [_LIBC]: Include <wchar.h>.
66567         (NOTCANCEL_MODE): New macro.
66568         (flockfile, funlockfile) [_LIBC]: New macros.
66569         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66570         [!_LIBC]: New macros.
66571         (call_fclose): New function.
66572         (getpass): Use it.  Save tty stream separately; this simplifies the
66573         code and makes it more reliable if stdin happens to equal stdout.
66574         Invoke __fsetlocking on tty.
66575         Handle thread cancellation if needed.
66576         Namespace cleanup (use __tcgetattr, __getline).
66577         Use bool for Booleans.
66578         [USE_IN_LIBIO]: Handle wide streams.
66579         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66580         stream might go where.
66581
66582         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66583         doesn't have to include <stdio.h> before us.
66584         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66585         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66586         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66587         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66588         if not declared, so that we can use getpass.c code from libc without
66589         rewriting it.
66590         (flockfile, ftrylockfile, funlockfile): New macros.
66591
66592 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66593
66594         * modules/getpass: Depend on stdbool.
66595
66596 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66597
66598         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66599
66600 2003-10-07  Karl Berry  <karl@gnu.org>
66601
66602         * config/config.{guess,sub}: update from config.
66603
66604 2003-10-06  Jim Meyering  <jim@meyering.net>
66605             Bruno Haible  <bruno@clisp.org>
66606
66607         This lets translators provide better translations for the
66608         "Written by ..." part of --version output.
66609         * lib/version-etc.h: Include stdarg.h.
66610         (version_etc_copyright): Declare as readonly.
66611         (version_etc): Make this function variadic with a NULL-terminated list
66612         of author name strings.
66613         (version_etc_va): New declaration.
66614         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66615         (version_etc_copyright): Declare as readonly.
66616         (version_etc_va): New function. Provide a different translatable string
66617         for each possible number of authors < 10. Abbreviate when there are 10
66618         authors or more.
66619         (version_etc): Make this function variadic. Call version_etc_va.
66620         Suggestion from Gary V. Vaughan.
66621
66622         * lib/long-options.h (parse_long_options): Change prototype: the
66623         authors string is moved to the end and becomes variadic.
66624         * lib/long-options.c: Include stdarg.h.
66625         (parse_long_options): Make this function variadic, too.
66626         Call version_etc_va, not version_etc.
66627
66628 2003-10-06  Bruno Haible  <bruno@clisp.org>
66629
66630         * modules/version-etc-2: Remove file.
66631         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66632
66633 2003-10-06  Bruno Haible  <bruno@clisp.org>
66634
66635         * modules/fatal-signal: New file.
66636         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66637
66638 2003-10-06  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/fatal-signal.m4: New file.
66641         * m4/signalblocking.m4: New file, from GNU gettext.
66642
66643 2003-10-06  Bruno Haible  <bruno@clisp.org>
66644
66645         * lib/version-etc-2.h: Remove file.
66646         * lib/version-etc-2.c: Remove file.
66647
66648 2003-10-06  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/fatal-signal.h: New file, from GNU gettext.
66651         * lib/fatal-signal.c: New file, from GNU gettext.
66652
66653 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66654
66655         * README: Rework advice for preventing empty .o files.
66656         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66657         not <sys/types.h>.
66658
66659 2003-10-04  Karl Berry  <karl@gnu.org>
66660
66661         * lib/argp*: update from libc.
66662
66663 2003-10-04  Karl Berry  <karl@gnu.org>
66664
66665         * config/config.{guess,sub}: update from config.
66666
66667 2003-10-02  Bruno Haible  <bruno@clisp.org>
66668
66669         * modules/lchown (Include): Add lchown.h.
66670         * modules/time_r (Include): Use "..." syntax.
66671         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66672
66673 2003-10-01  Simon Josefsson  <jas@extundo.com>
66674
66675         * MODULES.html.sh (func_all_modules): Move gethostname from section
66676         'based on' to section 'lacking' POSIX:2001.
66677
66678 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66679
66680         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66681         to output mode on the same stream.
66682
66683 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66684
66685         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66686         Fix arg typo in previous patch.
66687
66688 2003-09-28  Jim Meyering  <jim@meyering.net>
66689
66690         * lib/error.c: Correct cpp indentation.
66691
66692 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66693
66694         * modules/free: New file.
66695
66696 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66697
66698         * m4/free.m4: New file.
66699
66700 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66701
66702         * lib/minmax.h (MIN, MAX)
66703         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66704         Omit the special code that used __typeof__, since we worry that
66705         it could be more trouble than it's worth.  See:
66706         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66707         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66708
66709         * lib/free.c: New file.
66710
66711 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66712
66713         Trivial fixes to Makefile.am parts of module listings.
66714         * modules/strstr: Append strstr.h to lib_SOURCES.
66715         * modules/strcase: Likewise, for strcase.h.
66716
66717 2003-09-27  Karl Berry  <karl@gnu.org>
66718
66719         * config/mkinstalldirs: update from automake.
66720
66721 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66722
66723         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66724         (error_tail): Do not loop, reallocating temporary buffer, since
66725         the output cannot contain more wide characters than the input
66726         contains bytes, the size must be big enough already.  This avoids
66727         one potential size overflow calculation.  Check for size overflow
66728         when calculating temporary buffer size.  Free temporary buffer
66729         when done, if it was allocated with malloc; this plugs a memory
66730         leak.  Remove casts from void * to pointers, that are no longer
66731         needed now that we're assuming C89 or better.
66732
66733         Merge error changes from glibc.
66734
66735         * lib/error.c, error.h: Update copyright notice header to match glibc.
66736         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66737         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66738         Disable cancellation while printing error.
66739         * lib/error.h: Prepend __ to parameter names.
66740
66741 2003-09-26  Jim Meyering  <jim@meyering.net>
66742
66743         * lib/error.c (error_tail): Move some declarations
66744         into inner scope where the local variables are used.
66745
66746 2003-09-26  Bruno Haible  <bruno@clisp.org>
66747
66748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66749         stpncpy().
66750         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66751
66752 2003-09-26  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66755         (stpncpy): Define as alias for gnu_stpncpy.
66756         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66757
66758 2003-09-25  Simon Josefsson  <jas@extundo.com>
66759
66760         * lib/xgetdomainname.h: New file.
66761         * lib/xgetdomainname.c: New file.
66762
66763 2003-09-25  Simon Josefsson  <jas@extundo.com>
66764             Bruno Haible  <bruno@clisp.org>
66765
66766         * modules/getdomainname: New file.
66767         * modules/xgetdomainname: New file.
66768         * MODULES.html.sh (func_all_modules): Add getdomainname,
66769         xgetdomainname.
66770
66771 2003-09-25  Simon Josefsson  <jas@extundo.com>
66772             Bruno Haible  <bruno@clisp.org>
66773
66774         * m4/getdomainname.m4: New file.
66775
66776 2003-09-25  Simon Josefsson  <jas@extundo.com>
66777             Bruno Haible  <bruno@clisp.org>
66778
66779         * lib/getdomainname.h: New file.
66780         * lib/getdomainname.c: New file.
66781
66782 2003-09-25  Karl Berry  <karl@gnu.org>
66783
66784         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66785
66786 2003-09-25  Karl Berry  <karl@gnu.org>
66787
66788         * config/install-sh: update from automake.
66789
66790 2003-09-25  Bruno Haible  <bruno@clisp.org>
66791
66792         * modules/version-etc-2: New file, from modules/version-etc with
66793         modifications.
66794         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66795
66796 2003-09-25  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66799         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66800
66801 2003-09-24  Simon Josefsson  <jas@extundo.com>
66802
66803         * modules/xgethostname: Add xgethostname.h.
66804
66805 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66806
66807         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66808         the buffer associated with the argument.  Bug reported by
66809         Simon Josefsson.
66810
66811 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66812
66813         * README: Document assumptions that 'int' is at least 32 bits
66814         wide, that integer arithmetic is 2's complement without overflow,
66815         that there are no holes in integer values, that adding sizes of
66816         two nonoverlapping objects can't overflow, and that all-bits-zero
66817         yields scalar zero.  Fix spelling and capitalization typos.
66818
66819 2003-09-19  Karl Berry  <karl@gnu.org>
66820
66821         * lib/argp.h: update from libc.
66822
66823 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66824
66825         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66826         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66827         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66828
66829 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66830
66831         * gnulib-tool: Use "test -h", not "test -L", for portability
66832         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66833         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66834         (sed_extract_prog): Issue s commands one-by-one, rather than
66835         using \| in one s command.
66836
66837 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66838
66839         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66840         input error, instead of returning NULL the next time we are called
66841         (and therefore losing track of errno).
66842
66843 2003-09-16  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_create_testdir): Warn about duplicated
66846         dependencies.
66847
66848 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66849
66850         * modules/argmatch, modules/fatal, modules/obstack,
66851         modules/xalloc, modules/xgethostname: Sort dependencies by
66852         importance, not alphabetically.
66853
66854 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66855
66856         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66857         fails, so that the caller gets the proper errno.
66858
66859         * lib/readutmp.c (read_utmp): Likewise.
66860         Check for fstat error.  Close stream and free storage
66861         when failing.
66862
66863 2003-09-14  Karl Berry  <karl@gnu.org>
66864
66865         * config/srclist.txt (strdup.c): disable for c89 changes.
66866
66867 2003-09-14  Jim Meyering  <jim@meyering.net>
66868
66869         * lib/getloadavg.c: Correct cpp indentation.
66870         * lib/strdup.c: Likewise.
66871         * lib/vasnprintf.c: Likewise.
66872
66873 2003-09-14  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/fwriteerror: New file.
66876         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66877
66878 2003-09-14  Bruno Haible  <bruno@clisp.org>
66879
66880         * lib/fwriteerror.h: New file.
66881         * lib/fwriteerror.c: New file.
66882
66883 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66884
66885         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66886         modules/xgethostname, modules/xalloc: Depend on exit.
66887
66888 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66889
66890         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66891
66892         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66893         and AC_MINIX, too, so that their extensions are available.
66894
66895         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66896         This macro has been superseded by gl_BACKUPFILE.
66897
66898         More patches to assume C89 or better.
66899
66900         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66901
66902         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66903         unconditionally.
66904         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66905         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66906         Include <string.h>, <stdlib.h> unconditionally.
66907         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66908         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66909         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66910         headers or for string.h.
66911         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66912         or strtoul.
66913
66914         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66915         headers.
66916         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66917         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66918         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66919         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66920         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66921         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66922         memcpy, memset.
66923         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66924         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66925         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66926         strtol.
66927         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66928         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66929         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66930         strtoul.
66931
66932 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66933
66934         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66935         * lib/obstack.c [!defined _LIBC]: Likewise.
66936         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66937         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66938         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66939
66940         More changes to assume C89 or better.
66941
66942         * lib/error.c (error_tail): Assume vprintf.
66943
66944         * lib/argmatch.c (getenv): Remove decl.
66945         * lib/progreloc.c (get_full_program_name): Define via prototype.
66946         * lib/setenv.c (clearenv): Likewise.
66947         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66948         needed.
66949         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66950         (malloc, memcpy): Remove decls.
66951         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66952         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66953         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66954         (memcpy): Remove macro.
66955         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66956         (__P): Remove.  All uses removed.
66957         (PTR): Remove.  All uses changed to void *.
66958         (CHAR_BIT, NULL): Remove.
66959         (spaces, zeros, memset_space, memset_zero)
66960         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66961         Remove.
66962         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66963         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66964         Define with prototype.
66965         Remove now-unnecessary prototype decl.
66966         (extra_args_spec): Assume ANSI C.  All uses changed.
66967         (extra_args_spec_iso): Remove.
66968         (my_strftime, emacs_strftimeu): Define via prototype.
66969         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66970         unconditionally.
66971         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66972         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66973         (strtoul, strtol): Remove decls.
66974         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66975         LONG_MAX): Remove.
66976         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66977         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66978         (LOCALE_PARAM_PROTO): New macro.
66979         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66980         (INTERNAL (strtol), strtol): Define with a prototype.
66981         (PARAMS): Remove.  All uses removed.
66982         * lib/tempname.c: Include <string.h> unconditionally.
66983         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66984         * lib/xgethostname.c (main): Define with a prototype.
66985         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66986         Include <stdlib.h> unconditionally.
66987         (calloc, malloc, realloc, free): Remove decls.
66988         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66989         Include <stdlib.h> unconditionally.  Sort include file names.
66990         (strtod): Remove.
66991         (xstrtod): Define with a prototype.
66992         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66993         (strtol, strtoul): Remove decls.
66994
66995 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66996
66997         More patches to assume C89 or better.
66998         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66999         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
67000         string.h, memchr, STDC_HEADERS.
67001
67002 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67003
67004         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
67005         Include <stdlib.h>, <string.h> unconditionally.
67006         Remove now-unnecessary cast to char *.
67007         * lib/strnlen.c: Include <string.h> unconditionally.
67008         * lib/yesno.c (yesno): Define with a prototype.
67009
67010 2003-09-11  Bruno Haible  <bruno@clisp.org>
67011
67012         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
67013
67014 2003-09-10  Jim Meyering  <jim@meyering.net>
67015
67016         * lib/error.c: Correct indentation of cpp directives.
67017
67018 2003-09-10  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
67021         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
67022         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
67023         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67024         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67025         <stdlib.h> and <string.h> checks.
67026         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
67027         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
67028
67029 2003-09-10  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/strcspn.c: Include <string.h> unconditionally.
67032         * lib/strpbrk.c: Include <string.h> unconditionally.
67033         * lib/strstr.c: Include <string.h> unconditionally.
67034         * lib/unicodeio.c: Include <string.h> unconditionally.
67035         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
67036         * lib/unsetenv.c: Likewise.
67037         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
67038         * lib/yesno.c: Include <stdlib.h> unconditionally.
67039         (rpmatch): Add prototype.
67040
67041 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67042
67043         More patches to assume C89 or better.
67044         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
67045         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
67046         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
67047         or for string.h.
67048         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
67049         stdlib.h.
67050         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
67051         C headers.
67052         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
67053         string.h.
67054         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
67055         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
67056         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
67057         or for string.h.
67058         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
67059         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
67060         C headers.
67061         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
67062         memcpy.
67063         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
67064         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
67065         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
67066         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
67067         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
67068         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
67069         string.h, free.
67070         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
67071         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
67072         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
67073         C headers, or for string.h.
67074         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67075         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67076         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67077         headers, memory.h, stdlib.h, string.h, strings.h.
67078         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67079         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67080         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67081         strchr.
67082         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67083         headers, memory.h, string.h.
67084         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67085         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67086         free.
67087         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67088         headers.
67089         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67090         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67091         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67092         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67093         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67094
67095 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67096
67097         More K&R removal.
67098
67099         * lib/acosl.c (main): Use a prototype.
67100         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67101         tanl.c: Likewise.
67102
67103         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67104
67105         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67106         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67107         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67108         with a prototype.
67109         * lib/getopt.c (const): Remove macro.
67110         Include <string.h> unconditionally.
67111         (my_index): Remove; all uses changed to strchr.
67112         (strlen): Remove decl.
67113         (exchange): Remove forward decl; no longer needed.
67114         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67115         Define with prototype.
67116         * lib/getopt1.c (const): Remove macro.
67117         (getopt_long, getopt_long_only, main): Define with prototype.
67118
67119         * lib/getugroups.c: Include <string.h> unconditionally.
67120
67121         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67122         (getusershell, setusershell, endusershell, readname, main):
67123         Define with prototypes.
67124
67125         * lib/group-member.c: Include group-member.h first.
67126         Include <stdlib.h> unconditionally.
67127
67128         * lib/hard-locale.c: Include hard-locale.h first.
67129         Include <stdlib.h>, <string.h> unconditionally.
67130
67131         * lib/hash.c (free, malloc): Remove decls.
67132         Include <stdlib.h> unconditionally.
67133
67134         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
67135         (getenv): Do not declare.
67136
67137         * lib/idcache.c: Include <string.h> unconditionally.
67138
67139         * lib/long-options.c: Include long-options.h first, to test interface.
67140         Include <stdlib.h> unconditionally.
67141
67142         * lib/makepath.c: Include makepath.h first, to test interface.
67143         Include <stdlib.h> and <string.h> unconditionally.
67144
67145         * lib/linebuffer.c: Include <stdlib.h>.
67146         (free): Remove decl.
67147
67148         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
67149         stddef.h. rpl_malloc returns void *, not char *.
67150         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
67151         prototype.
67152
67153         * lib/md5.h: Include <limits.h> unconditionally.
67154         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
67155         (__P): Remove; all uses removed.
67156         * lib/md5.c: Include "md5.h" first.
67157         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
67158         md5_buffer, md5_process_bytes, md5_process_block):
67159         Define with prototypes.
67160         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
67161         * lib/sha.c: Include "sha.h" first.
67162         Include <stdlib.h>, <string.h> unconditionally.
67163
67164         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
67165         * lib/memcmp.c (__ptr_t): Likewise.
67166         * lib/memrchr.c (__ptr_t): Likewise.
67167         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
67168         Include <string.h> unconditionally.
67169         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
67170         * lib/memchr.c: Include <stdlib.h> unconditionally.
67171         * lib/memchr.c (LONG_MAX): Remove.
67172         * lib/memrchr.c (LONG_MAX): Likewise.
67173         * lib/memchr.c (__memchr): Define via a prototype.
67174         * lib/memrchr.c (__memrchr): Likewise.
67175         * lib/memcmp.c (__P): Remove, and remove all uses.
67176         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
67177         Remove forward decls; no longer needed.
67178         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
67179         Use types required by C89 in prototype.
67180
67181         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
67182         * lib/savedir.c: Likewise.
67183         * lib/mkdir.c (free): Remove decl.
67184         * lib/rmdir.c (rmdir): Define with a prototype.
67185         * lib/savedir.c: Include savedir.h first, to test interface.
67186
67187         * lib/mktime.c (STDC_HEADERS): Remove.
67188         Include <stdlib.h>, <string.h> unconditionally.
67189
67190         * lib/modechange.c: Include <stdlib.h> unconditionally.
67191         (malloc): Remove decl.
67192
67193         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
67194         (free): Remove decl.
67195
67196         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
67197         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
67198         (This type really should be intptr_t, but that's a C99ism.)
67199         (_obstack_memcpy): Remove: all uses changed to memcpy.
67200         Include <string.h> unconditionally.
67201         (struct obstack): Assume __STDC__ for types of members
67202         chunkfun, freefun, extra_arg.
67203         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
67204         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
67205         obstack_begin, obstack_specify_allocation,
67206         obstack_specify_allocation_with_arg, obstack_chunkfun,
67207         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
67208         Remove unprototyped decls and the macros that use them.
67209         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
67210         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
67211         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
67212         (defined __STDC__ && __STDC__)]:
67213         Remove nonprototyped code.
67214         Include <stdlib.h> unconditionally.
67215         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
67216         _obstack_allocated_p, _obstack_free, obstack_free,
67217         _obstack_memory_used, print_and_abort):
67218         Define using prototypes.
67219         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
67220         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
67221         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
67222         obstack_next_free, obstack_object_size, obstack_room) [0]:
67223         Remove unused, unprototyped code.
67224
67225         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
67226
67227         * lib/physmem.c (physmem_total, physmem_available, main): Define
67228         with prototypes.
67229
67230         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
67231         (main): Define with a prototype.
67232
67233         * lib/posixver.c (getenv): Remove decl.
67234
67235         * lib/putenv.c (malloc): Returns void *, not char *.
67236         Include <string.h> unconditionally.
67237         (strchr, memcpy, NULL): Do not define.
67238
67239         * lib/readtokens.c: Include readtokens.h first, to test interface.
67240         Include <stdlib.h>, <string.h> unconditionally.
67241         (init_tokenbuffer): Define with a prototype.
67242
67243         * lib/regex.c (PARAMS): Remove.  All uses removed.
67244         All uses of _RE_ARGS removed, too.
67245         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67246         unconditionally.
67247         (bzero): Assume memset exists.
67248         (memcmp, memcpy, NULL): Remove.
67249         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
67250         char, or assignments to local vars of type signed char.
67251         (init_syntax_once, PREFIX(extract_number_and_incr),
67252         PREFIX(print_partial_compiled_pattern),
67253         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67254         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67255         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67256         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67257         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67258         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67259         wcs_compile_range, byte_compile_range, truncate_wchar,
67260         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67261         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67262         count_mbs_length, wcs_re_match_2_internal,
67263         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67264         PREFIX(alt_match_null_string_p),
67265         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67266         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67267         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67268         now-unnecessary declaration, if any.
67269         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67270         regcomp, regexec):
67271         Remove now-unnecessary casts among pointer types.
67272         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67273
67274         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67275         (free): Remove decl.
67276
67277         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67278
67279         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67280         (free): Remove decl.
67281
67282         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67283         * lib/xgetcwd.c: Likewise.
67284
67285         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67286         (free): Remove decl.
67287
67288         * lib/strchrnul.c (strchrnul): Define with a prototype.
67289         Fix bug: c_in was not converted to char before searching.
67290
67291         The following changes are not K&R related:
67292
67293         * lib/group-member.h: Include <sys/types.h>, so that this file is
67294         self-contained.
67295         * lib/makepath.h: Likewise.
67296
67297         * lib/getusershell.c (readname, default_index, line_size, readname):
67298         Use size_t, not int, for sizes.
67299         (readname): If the size overflows, report an error instead of
67300         looping forever.
67301
67302 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67303
67304         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67305         libc.
67306
67307 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67308
67309         * README: New section: portability guidelines.
67310
67311 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67312
67313         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67314         C89 spec.
67315
67316 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67317
67318         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67319
67320 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67321
67322         Assume C89 or better; remove K&R cruft.
67323         A few of these changes were first proposed by Derek Robert Price
67324         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67325
67326         * lib/addext.c: Include <string.h> unconditionally.
67327         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67328         Don't declare getenv or malloc.
67329
67330         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67331         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67332         (NULL): Remove.
67333         (find_stack_direction, alloca): Use prototypes.
67334
67335         * lib/atexit.c (atexit): Define using a prototype.
67336
67337         * lib/basename.c, dirname.c, stripslash.c:
67338         Include <string.h> unconditionally.
67339
67340         * lib/bcopy.c: Include <stddef.h>.
67341         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67342
67343         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67344
67345         * lib/error.h (error, error_at_line, error_print_progname)
67346         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67347         * lib/error.c: Include error.h first, to check interface.
67348         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67349         (VA_START): Remove; all uses changeed to va_start.
67350         (exit, strerror): Remove decls.
67351         (error_print_progname): Prototype uncondionally.
67352         Don't include <errno.h>; no longer needed.
67353         (private_strerror): Remove.
67354         (error_tail): Always define.
67355         (error, error_at_line): Assume C89 or better; always use prototypes.
67356         * lib/fatal.c: Include "fatal.h" first, to test interface.
67357         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67358         (VA_START): Remove; all uses changed to va_start.
67359         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67360         this case.
67361         (exit): Remove decl.
67362         (fatal): Prototype unconditionally.  Assume va_start works.
67363         Abort at end, to pacify gcc.
67364
67365         * lib/euidaccess.c (main): Define with a prototype.
67366
67367         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67368
67369         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67370
67371         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67372         prototypes.
67373         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67374         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67375         (getenv): Remove decl.
67376         (fnmatch): Define using a prototype.
67377         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67378         (FCT): Define using a prototype.
67379
67380         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67381
67382         * lib/gethostname.c: Include <stddef.h>.
67383         (gethostname): Define with prototype.  Length is size_t, not int.
67384
67385 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67386
67387         Assume C89 or better; remove K&R cruft.
67388         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67389         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67390         string.h, getenv, malloc.
67391         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67392         headers.
67393         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67394         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67395         do not check for strerror.
67396         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67397         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67398         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67399         do not check for doprnt or vprintf.
67400         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67401         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67402
67403 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67404
67405         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67406         getversion.c should have been removed then, but was accidentally
67407         preserved.
67408
67409         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67410         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67411
67412 2003-09-08  Karl Berry  <karl@gnu.org>
67413
67414         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67415                 config, forget about prep.
67416
67417         * config/depcomp, missing: update from automake.
67418
67419 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67420
67421         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67423
67424 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67425
67426         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67427         copy_tm_result.  Bug reported by Simon Josefsson in
67428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67429
67430 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67431
67432         * m4/time_r.m4: New file.
67433         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67434         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67435         is. Check for timegm declaration.
67436         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67437         Do not check for gmtime_r.
67438         Replace mktime if __mktime_internal does not exist and if mktime
67439         hasn't been replaced already.
67440
67441 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67442
67443         * lib/time_r.c, lib/time_r.h: New files.
67444
67445         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67446         __localtime_r.
67447         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67448         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67449
67450         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67451         __gmtime_r.
67452         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67453         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67454         Include <time_r.h>.
67455
67456         * lib/timegm.c: Switch to glibc implementation, with the following
67457         changes:
67458         [defined HAVE_CONFIG_H]: Include <config.h>.
67459         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67460         (__mktime_internal) [!defined _LIBC]: New decl.
67461         (__gmtime_r) [!defined _LIBC]: New macro and function.
67462         (timegm): Use a prototype, since gnulib assumes C89.
67463         Do not bother declaring tmp to be const, as it's not really usefu.
67464         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67465         (timegm): Declare only if HAVE_DECL_TIMEGM.
67466
67467 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67468
67469         * MODULES.html.sh (func_all_modules): Add time_r.
67470         * modules/time_r: New file.
67471         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67472         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67473
67474 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67475
67476         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67477         Bug reported by Lute Kamstra in
67478         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67479
67480         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67481         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67482         course with correspondingly smaller numbers for tomorrow and
67483         yesterday.  From Tadayoshi Funaba.  Originally installed into
67484         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67485         coreutils merge?).
67486
67487 2003-08-31  Simon Josefsson  <jas@extundo.com>
67488
67489         * modules/timegm: New file.
67490         * MODULES.html.sh (func_all_modules): Add timegm.
67491
67492 2003-08-31  Simon Josefsson  <jas@extundo.com>
67493
67494         * m4/timegm.m4: New file.
67495
67496 2003-08-31  Simon Josefsson  <jas@extundo.com>
67497
67498         * lib/timegm.h: New file.
67499         * lib/timegm.c: New file.  Based on
67500         wget-1.8.2/src/http.c:mktime_from_utc.
67501
67502 2003-08-31  Karl Berry  <karl@gnu.org>
67503
67504         * lib/argp.h: update from libc.
67505
67506 2003-08-28  Bruno Haible  <bruno@clisp.org>
67507
67508         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67509         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67510         followed by '#define fnmatch fnmatch_posix' gives an error.
67511
67512 2003-08-28  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67515         warning on QNX, which defines O_BINARY to 000000.
67516
67517 2003-08-27  Jim Meyering  <jim@meyering.net>
67518
67519         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67520         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67521         would fail after 32.  Reported by Danny Levinson.  Details here:
67522         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67523
67524 2003-08-24  Bruno Haible  <bruno@clisp.org>
67525
67526         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67527         MSVC7 <stdio.h> is included later.
67528
67529 2003-08-22  Simon Josefsson  <jas@extundo.com>
67530
67531         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67532
67533 2003-08-20  Karl Berry  <karl@gnu.org>
67534
67535         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67536
67537 2003-08-20  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/progname: New file.
67540         * MODULES.html.sh (func_all_modules): Add progname.
67541
67542 2003-08-20  Bruno Haible  <bruno@clisp.org>
67543
67544         * lib/progname.h: New file, from GNU gettext.
67545         * lib/progname.c: New file, from GNU gettext.
67546         * lib/progreloc.c: New file, from GNU gettext.
67547
67548 2003-08-19  Jim Meyering  <jim@meyering.net>
67549
67550         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67551         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67552
67553 2003-08-19  Bruno Haible  <bruno@clisp.org>
67554
67555         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67556         more.
67557
67558 2003-08-19  Bruno Haible  <bruno@clisp.org>
67559
67560         * lib/xstrdup.c: Assume <string.h> exists.
67561
67562 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67563
67564         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67565         in makefile rules.
67566
67567 2003-08-18  Jim Meyering  <jim@meyering.net>
67568
67569         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67570         * m4/lib-ld.m4: Likewise.
67571
67572 2003-08-18  Jim Meyering  <jim@meyering.net>
67573
67574         * lib/setenv.h: Indent nested cpp directive.
67575         * lib/vasnprintf.c: Remove trailing blanks.
67576
67577 2003-08-17  Simon Josefsson  <jas@extundo.com>
67578
67579         * modules/xstrndup: New file.
67580         * MODULES.html.sh (func_all_modules): Add xstrndup.
67581
67582 2003-08-17  Simon Josefsson  <jas@extundo.com>
67583
67584         * modules/argp: Fix autoconf macro name. Add more dependencies.
67585
67586 2003-08-17  Simon Josefsson  <jas@extundo.com>
67587
67588         * m4/xstrndup.m4: New file.
67589
67590 2003-08-17  Simon Josefsson  <jas@extundo.com>
67591
67592         * m4/argp.m4: New file.
67593
67594 2003-08-17  Simon Josefsson  <jas@extundo.com>
67595             Bruno Haible  <bruno@clisp.org>
67596
67597         * lib/xstrndup.h: New file.
67598         * lib/xstrndup.c: New file.
67599
67600 2003-08-17  Bruno Haible  <bruno@clisp.org>
67601
67602         * modules/strndup (Files, Include): Add lib/strndup.h.
67603
67604 2003-08-17  Bruno Haible  <bruno@clisp.org>
67605
67606         * modules/euidaccess (Files): Add lib/euidaccess.h.
67607
67608 2003-08-17  Bruno Haible  <bruno@clisp.org>
67609
67610         * lib/strndup.h: New file.
67611
67612 2003-08-17  Bruno Haible  <bruno@clisp.org>
67613
67614         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67615         like AC_GNU_SOURCE.
67616         * modules/extensions (configure.ac): Comment out the invocation of
67617         gl_USE_SYSTEM_EXTENSIONS.
67618
67619 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67620
67621         Merges from coreutils, etc.
67622         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67623         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67624         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67625         fixing a typo.
67626         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67627         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67628
67629 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67630
67631         Document merge from coreutils.
67632         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67633         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67634         * modules/utime: Add m4/utimes-null.m4.
67635
67636 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67637
67638         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67639         space, undoing this 2003-08-12 change:
67640         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67641
67642 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67643
67644         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67645         strtoul.c from libc, undoing this 2003-08-12 change:
67646         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67647
67648 2003-08-16  Jim Meyering  <jim@meyering.net>
67649
67650         Merges from coreutils.
67651         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67652         prefix.  Adjust cache variables similarly.  Create 500 rather than
67653         just 300 files, to exercise bug on Darwin6.5, too.
67654         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67655         $missing_dir.
67656         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67657         AM_SYS_POSIX_TERMIOS.
67658         Reported by mkc@mathdogs.com.
67659         Also change use of $am_cv_sys_posix_termios
67660         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67661         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67662         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67663         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67664         in /proc/mounts until it finds one with matching device number.  This
67665         is unnecessary when the FILE argument *is* a mount point.  No stat call
67666         is necessary in that case.  So, disable the statvfs-testing code on
67667         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67668         as RedHat bug# 84846.
67669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67670         to 1MB, so as not to render systems with no stack size limit (e.g.,
67671         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67672         Include <unistd.h>.  On some systems,
67673         it is required for the definition of _SC_PAGESIZE.
67674
67675 2003-08-16  Jim Meyering  <jim@meyering.net>
67676
67677         Merge from coreutils.
67678         * lib/xstrtoimax.c: #else #if -> #elif.
67679         * lib/xstrtoumax.c: Likewise.
67680
67681 2003-08-16  Jim Meyering  <jim@meyering.net>
67682
67683         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67684         * m4/utimes.m4: Removed.
67685         * m4/utimes-null.m4: Renamed from utimes.m4.
67686
67687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67688         to 1MB, so as not to render systems with no stack size limit (e.g.,
67689         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67690         Include <unistd.h>.  On some systems,
67691         it is required for the definition of _SC_PAGESIZE.
67692
67693 2003-08-16  Jim Meyering  <jim@meyering.net>
67694         and Paul Eggert  <eggert@cs.ucla.edu>
67695
67696         Merges from coreutils, etc.
67697
67698         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67699         using the latest version from cvs.  This avoids problems with #line
67700         directives using a vendor (Sun) compiler.
67701         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67702         Don't set GETGROUPS_LIB here; now it's
67703         done via getgroups.m4's wrapper function.
67704         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67705         rather than just in sh-util/configure.in, so that the
67706         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67707         same.
67708         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67709         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67710         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67711         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67712         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67713         Remove code that is now done by the newly-required macros.
67714         Append $(EXEEXT) to DF_PROG.
67715         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67716         Do not invoke or require the following here,
67717         since prereq.m4 or some gnulib .m4 now does this for us:
67718         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67719         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67720         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67721         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67722         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67723         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67724         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67725         AC_FUNC_OBSTACK.
67726         Do not replace the following functions, as this is now the job
67727         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67728         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67729         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67730         atexit getpass, strdup, getpagesize.
67731         Replace 'raise'.
67732         Do not check for the following functions, as this is now the job
67733         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67734         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67735         setregid.
67736         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67737         Check for sys/sysctl.h.
67738         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67739         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67740         of checking for ssize_t ourselves.
67741
67742         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67743         Require every macro that gnulib/modules/* suggests for us.
67744         (jm_PREREQ_ADDEXT): New macro.
67745         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67746         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67747
67748         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67749         (gl_PHYSMEM): Use it.
67750         Also check for `table' function.
67751         Check for new headers and functions.
67752         Add check for sys/sysmp.h.
67753         With suggestions from Kaveh Ghazi.
67754         Ignore headers that are present but cannot be compiled.  This
67755         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67756         C 5.4.
67757
67758 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67759
67760         Document merge from coreutils.
67761         * modules/userspec: Depend on posixver.
67762         * modules/strftime: Depend on tzset.
67763
67764 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67765
67766         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67767         rather than tab, after '#' in shell-script copyright notices.
67768         Suggested by Bruno Haible.
67769
67770 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67771
67772         * config/srclist-update: Use three spaces, rather than tab, after '#'
67773         in shell-script copyright notices.  Suggested by Bruno Haible.
67774         Remove unnecessary parenthesization in regular expression.
67775
67776 2003-08-15  Jim Meyering  <jim@meyering.net>
67777
67778         Merge from coreutils.
67779         * lib/xgethostname.c: Include <stdlib.h>.
67780         (xghostname): Don't exit for anything other than memory-related
67781         failure; just return NULL.
67782         * lib/userspec.c: Include "posixver.h".
67783         (parse_user_spec): Accept `.' as a separator only
67784         in pre-POSIX-200112 mode.
67785         * lib/strtoimax.c: Use #elif rather than #else #if.
67786         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67787         Remove function, now that we can rely on a working tzset function.
67788         [!_LIBC]: Ensure that the required autoconf test has been run.
67789         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67790         Use underlying_strftime for %r.
67791         * lib/sha.c: Merge in some clean-up and optimization changes from
67792         glibc.
67793         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67794         Ensure that it is a multiple of 64.
67795         Rearrange loop exit tests so as to avoid performing an
67796         additional fread after encountering an error or EOF.
67797         * lib/realloc.c: Update copyright date.
67798
67799 2003-08-15  Jim Meyering  <jim@meyering.net>
67800         and Paul Eggert  <eggert@twinsun.com>
67801
67802         Merge from coreutils.
67803         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67804         member but strut utmpx does not.  Needed for AIX 4.3.3.
67805         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67806
67807 2003-08-15  Jim Meyering  <jim@meyering.net>
67808         and Paul Eggert  <eggert@cs.ucla.edu>
67809
67810         Merges from coreutils, etc.
67811         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67812         Require gl_FUNC_TZSET_CLOBBER.
67813         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67814         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67815         members.
67816
67817 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67818
67819         Help the merge from coreutils.
67820         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67821         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67822         * m4/tzset.m4: Use it too.
67823
67824 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67825
67826         * modules/tzset: New file.
67827
67828 2003-08-14  Jim Meyering  <jim@meyering.net>
67829
67830         Merges from coreutils.
67831         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67832         variable names, rather than @FNMATCH_H@.
67833         * modules/alloca: Likewise for $(ALLOCA_H).
67834
67835         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67836         the three copies of the literal target, `fnmatch.h'.
67837         * modules/alloca (alloca.h): Likewise.
67838
67839 2003-08-14  Jim Meyering  <jim@meyering.net>
67840
67841         Merge from coreutils.
67842         * m4/tzset.m4: New file.
67843         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67844         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67845         otherwise, AIX 5.1 systems would end up using the latter.
67846         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67847         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67848         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67849         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67850
67851 2003-08-14  Jim Meyering  <jim@meyering.net>
67852
67853         Merge from coreutils.
67854         * lib/obstack.h: Whitespace changes.
67855         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67856         and xcalloc return values.
67857         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67858         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67859         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67860         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67861         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67862         error from mntctl.
67863         Use mntctl's return value to drive the entry-processing loop, since
67864         we can't rely on the value of the vmt_length member in the last
67865         entry.  On some systems doing so could result in exhausting
67866         virtual memory.  Based in part on a patch from Mike Jetzer.
67867
67868 2003-08-14  Jim Meyering  <jim@meyering.net>
67869         and Paul Eggert  <eggert@twinsun.com>
67870
67871         Merges from coreutils, plus other fixes.
67872         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67873         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67874         for credits and details.  Thanks to Kaveh Ghazi for helping
67875         to keep these files in sync.
67876         (ARRAY_SIZE): Define it.
67877         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67878         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67879         (memcasecmp): Don't assume size_t fits in unsigned int.
67880         Remove casts and duplicate code.
67881         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67882         (memcpy): Remove definition.
67883         Merge in some clean-up and optimization changes from glibc.
67884         [BLOCKSIZE]: Move definition to top of file.
67885         Ensure that it is a multiple of 64.
67886         Rearrange loop exit tests so as to avoid performing an
67887         additional fread after encountering an error or EOF.
67888         * lib/md5.h (md5_uintptr): Define.
67889         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67890         return to the initial working directory.  Preserve errno
67891         for caller.
67892         * lib/idcache.c: Include "xalloc.h".
67893         (xmalloc, xrealloc): Remove decls.
67894         (getuser): Remove casts no longer required in C89.
67895         * lib/human.c: Include stdio.h, for sprintf.
67896         * lib/group-member.c: Include "xalloc.h".
67897         (xmalloc, xrealloc): Remove decls.
67898         (get_group_info): Remove casts no longer required in C89.
67899         * lib/getusershell.c (readname): Remove casts no longer required in
67900         C89.
67901         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67902         * lib/getline.c: Whitespace fix, from coreutils.
67903
67904 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67905
67906         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67907         Check for isascii.
67908
67909         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67910         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67911         Undo previous (whitespace-only) change.
67912
67913 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67914
67915         * lib/exclude.c: Include <ctype.h>
67916         (IN_CTYPE_DOMAIN): New macro.
67917         (is_space): New fn.
67918         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67919         and empty lines.
67920
67921         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67922         Undo previous (whitespace-only) change.
67923
67924 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67925
67926         * config/srclist-update: Change update back to the old behavior,
67927         leaving whitespace alone.  Use one 'sed' command rather than a
67928         pipeline.
67929         (fixlicense): Now a variable, not a function.
67930         (remove_trailing_blanks): Remove.
67931         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67932         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67933         Undo previous (whitespace-only) change.
67934
67935 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67936
67937         Merge from coreutils.
67938         * modules/euidaccess: Add lib_SOURCES, include for new
67939         file euidaccess.h
67940
67941 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67942
67943         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67944         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67945         Normalize leading white space and remove trailing white space.
67946
67947         Merge from coreutils
67948         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67949
67950         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67951         0.12.1.  These files are now being upgraded automatically by
67952         ../config/srclist-update.
67953
67954 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67955
67956         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67957         Normalize leading white space and remove trailing white space.
67958         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67959         notice, as per ../config/srclist-update.
67960
67961         Merge from coreutils.
67962         * lib/euidaccess.h: New file.
67963         * lib/euidaccess.c: Include it.
67964         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67965         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67966         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67967
67968 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67969
67970         * config/srclist-update: Add copyright notice.
67971         (remove_id_lines, remove_trailing_blanks): New constants.
67972         (fixfile): Use them to normalize spacing a bit in copied files.
67973         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67974         Normalize leading white space and remove trailing white space.
67975
67976         * config/texinfo.tex: Sync with texinfo.
67977
67978         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67979         strtoul.c from libc, to merge coreutils whitespace changes.
67980
67981         * config/srclist.txt: Get the following m4 files from gettext:
67982         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67983         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67984         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67985         wint_t.m4.
67986
67987 2003-08-12  Karl Berry  <karl@gnu.org>
67988
67989         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67990         been made.
67991
67992 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67993
67994         * modules/gnu-source, m4/gnu-source.m4:
67995         Remove; we're assuming Autoconf 2.54 or later now.
67996         Suggested by Bruno Haible.
67997         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67998
67999 2003-08-11  Bruno Haible  <bruno@clisp.org>
68000
68001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
68002
68003 2003-08-11  Bruno Haible  <bruno@clisp.org>
68004
68005         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
68006         (vasnprintf): Use it instead of wcslen.
68007
68008 2003-08-11  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
68011         value to ensure that _Bool promotes to int. Use #define for _Bool when
68012         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
68013
68014 2003-08-10  Karl Berry  <karl@gnu.org>
68015
68016         * lib/regex.h: update from libc (whitespace fix).
68017
68018 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68019
68020         Merge some files from coreutils.  These changes were
68021         originally made by Jim Meyering.
68022         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
68023         many older Unixes require this.
68024         * lib/alloca.c (alloca): Remove cast to argument of free;
68025         no longer needed in C89.
68026         * lib/alloca_.h, regex.h: Fix white space to match
68027         what GNU indent does.
68028
68029 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68030
68031         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
68032         apparently Emacs's Unicode mode got confused before my 2003-08-05
68033         checkin.
68034
68035 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68036
68037         * m4/extensions.m4: New file.
68038         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
68039         Require gl_USE_SYSTEM_EXTENSIONS.
68040         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
68041         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
68042
68043 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68044
68045         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
68046         * modules/extensions, modules/gnu-source: New files.
68047         * modules/timespec, modules/unlocked-io: Depend on extensions.
68048
68049 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68050
68051         * modules/restrict: New file.
68052         * MODULES.html.sh (func_all_modules): Add restrict.
68053         * modules/regex: Depend on restrict.
68054
68055 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68056
68057         * m4/restrict.m4: New file.
68058         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
68059
68060 2003-08-07  Bruno Haible  <bruno@clisp.org>
68061
68062         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
68063         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
68064
68065 2003-08-07  Bruno Haible  <bruno@clisp.org>
68066
68067         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
68068         makes the module 'getndelim2' compatible with the module 'getline'.
68069
68070 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68071
68072         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
68073         byte with "\201" to avoid glitches when editing that source file
68074         with multi-gnome-terminal.
68075
68076 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68077
68078         * lib/bumpalloc.h: Remove.
68079
68080 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68081
68082         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68083         * modules/bumpalloc: Remove.
68084
68085 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68086
68087         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68088         GNU coding style.
68089
68090         Merge from coreutils.
68091         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68092         1. From glibc.
68093         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68094         from Karl Berry, implemented by Jim Meyering.
68095         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68096         from Dmitry V. Levin.
68097         Remove anachronistic cast of xrealloc.
68098         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68099         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68100         type. Otherwise, it wouldn't compile with at least /bin/cc on
68101         ymp-cray-unicos9.0.2.X.
68102         Combine two mostly-identical uses of alloca into one.
68103         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68104
68105 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68106
68107         [From Emacs.]
68108
68109         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68110         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68111         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68112         obsolete NLIST_NAME_UNION.
68113         [__GNU__]: Undef BSD and FSCALE.
68114         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68115
68116 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68117
68118         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68119         an enum type, so that it's guaranteed to promote to int.  See:
68120         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68121
68122 2003-08-03  Karl Berry  <karl@gnu.org>
68123
68124         * config/depcomp: update from automake.
68125
68126 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68127
68128         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68129         (strerror): Don't assume that a printable int fits in 14 bytes.
68130
68131 2003-07-31  Bruno Haible  <bruno@clisp.org>
68132
68133         * modules/getpass-gnu: New file.
68134         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
68135
68136 2003-07-31  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
68139
68140 2003-07-24  Karl Berry  <karl@gnu.org>
68141
68142         * config/missing: update from automake.
68143
68144 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
68145             Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
68148         * lib/getline.c (getline, getdelim): Likewise.
68149         Remove _GNU_SOURCE define; now it's defined in config.h through
68150         m4/getline.m4.
68151
68152 2003-07-23  Karl Berry  <karl@gnu.org>
68153
68154         * config/config.sub: update from prep.
68155
68156 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68157
68158         * modules/xalloc (Depends-on): Add exitfail.
68159         * modules/xmemcoll: Likewise.
68160
68161 2003-07-22  Paul Eggert  <eggert@twinsun.com>
68162
68163         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
68164         over-parenthesization in macros.
68165
68166         Sync with coreutils.
68167
68168         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
68169         required by C99.
68170
68171         Use `exit_failure' for xalloc and xmemcoll instead of their own
68172         private exit-failure variables.
68173         * lib/xalloc.h (xalloc_exit_failure): Remove.
68174         * lib/xmalloc.c: Likewise.  Include exitfail.h.
68175         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
68176         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
68177         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
68178         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
68179
68180 2003-07-20  Jim Meyering  <jim@meyering.net>
68181
68182         * modules/closeout (Depends-on): Add exitfail.
68183         Suggestion from Bruno Haible.
68184
68185 2003-07-19  Karl Berry  <karl@gnu.org>
68186
68187         * config/config.sub: update from prep.
68188
68189 2003-07-18  Paul Eggert  <eggert@twinsun.com>
68190
68191         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
68192         Remove.
68193         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
68194         to test that it can stand by itself.  Include "exitfail.h".
68195         Clients should set exit_failure instead.
68196         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
68197
68198 2003-07-18  Bruno Haible  <bruno@clisp.org>
68199
68200         * modules/getndelim2: New file.
68201         * modules/getline: Share files with module getndelim2.
68202         * modules/getnline: Depend on getndelim2 instead of sharing files with
68203         it. Add getnline.c to lib_SOURCES.
68204         * MODULES.html.sh (func_all_modules): Add getndelim2.
68205
68206 2003-07-18  Bruno Haible  <bruno@clisp.org>
68207
68208         * m4/getndelim2.m4: New file.
68209         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
68210         invoke gl_PREREQ_GETNDELIM2.
68211         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
68212         gl_PREREQ_GETNDELIM2.
68213         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
68214         gl_GETNDELIM2.
68215
68216 2003-07-18  Bruno Haible  <bruno@clisp.org>
68217
68218         * lib/getndelim2.h: New file.
68219         * lib/getndelim2.c: Make into a module of its own. Include config.h,
68220         getndelim2.h.
68221         (getndelim2): Make non-static. Change return type to ssize_t.
68222         * lib/getline.h: Change argument names.
68223         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
68224         * lib/getnline.c: Include getndelim2.h.
68225
68226 2003-07-18  Andreas Schwab  <schwab@suse.de>
68227
68228         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
68229
68230 2003-07-17  Karl Berry  <karl@gnu.org>
68231
68232         * config/config.sub: update from prep.
68233
68234 2003-07-17  Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/getnline: New file.
68237         * modules/getline: Add lib/getndelim2.c to source file list.
68238         * MODULES.html.sh (func_all_modules): Add getnline.
68239
68240 2003-07-17  Bruno Haible  <bruno@clisp.org>
68241
68242         * m4/getnline.m4: New file.
68243
68244 2003-07-17  Bruno Haible  <bruno@clisp.org>
68245
68246         * m4/Makefile.am.in: Remove file.
68247         * m4/Makefile.am: Remove file.
68248         * m4/Makefile.in: Remove file.
68249
68250 2003-07-17  Bruno Haible  <bruno@clisp.org>
68251
68252         * lib/getnline.h: New file.
68253         * lib/getnline.c: New file.
68254         * lib/getndelim2.c: New file, extracted from getline.c.
68255         (getndelim2): Renamed from getdelim2, with added nmax argument.
68256         * lib/getline.c: Include getndelim2.c.
68257         (getdelim2): Moved out to getndelim2.c.
68258         (getline, getdelim): Update.
68259
68260 2003-07-17  Bruno Haible  <bruno@clisp.org>
68261
68262         * lib/Makefile.am: Remove file.
68263         * lib/Makefile.in: Remove file.
68264
68265 2003-07-17  Bruno Haible  <bruno@clisp.org>
68266
68267         * configure.in: Remove file.
68268         * Makefile.in: Remove file.
68269
68270 2003-07-17  Bruno Haible  <bruno@clisp.org>
68271
68272         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68273
68274 2003-07-16  Karl Berry  <karl@gnu.org>
68275
68276         * config/srclist-update: was running fixlicense twice, which caused
68277                 texinfo.tex to be nullified for some reason.  Simplify,
68278                 $gplsrc is no longer needed as far as I can see?
68279
68280 2003-07-16  Jim Meyering  <jim@meyering.net>
68281
68282         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68283
68284 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68285
68286         * config/srclist.txt: Get the following files from gettext-runtime/intl
68287         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68288         ref-del.sin.  From Bruno Haible.
68289         * config/srclist-update (fixfile): Change grep pattern again, since the
68290         previous fix didn't work (there was another trailing $).  Use
68291         '[$]' to escape the $s.
68292
68293 2003-07-15  Karl Berry  <karl@gnu.org>
68294
68295         * lib/vasnprintf.c: update from gettext.
68296
68297 2003-07-15  Karl Berry  <karl@gnu.org>
68298
68299         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68300         gets expanded when surrounded by '$'.
68301
68302 2003-07-15  Jim Meyering  <jim@meyering.net>
68303
68304         * modules/save-cwd: Don't depend on error.  From Derek Price.
68305
68306 2003-07-15  Jim Meyering  <jim@meyering.net>
68307
68308         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68309
68310 2003-07-14  Simon Josefsson  <jas@extundo.com>
68311
68312         * modules/mempcpy: New file.
68313         * MODULES.html.sh (func_all_modules): Add mempcpy.
68314
68315 2003-07-14  Simon Josefsson  <jas@extundo.com>
68316
68317         * m4/mempcpy.m4: New file.
68318
68319 2003-07-14  Simon Josefsson  <jas@extundo.com>
68320
68321         * lib/mempcpy.h: New file.
68322         * lib/mempcpy.c: New file.
68323
68324 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68325
68326         * modules/getdate, modules/posixtm: Depend on mktime.
68327
68328 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68329
68330         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68331         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68332         unicodeio.c, unicodeio.h, unlocked-io.h:
68333         Switch from LGPL to GPL.
68334
68335 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68336
68337         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68338         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68339         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68340         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68341         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68342         updated automatically by ../config/srclist-update.  This changes
68343         their license from LPGL to GPL.
68344
68345 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68346
68347         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68348         assumed to refer to the root of the most recent stable gettext version.
68349         * config/srclistvars.sh: Add defaults for eggert.
68350         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68351         Match "This program" as well as "The program".  This is needed
68352         for gettext.
68353
68354 2003-07-14  Jim Meyering  <jim@meyering.net>
68355
68356         Don't emit diagnostics.  Let callers do that.
68357         * lib/save-cwd.c: Don't include "error.h".
68358         (save_cwd): Don't call error.  Ensure that errno is valid
68359         when returning nonzero.
68360
68361         * lib/save-cwd.h (restore_cwd): Update prototype.
68362         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68363         Simplify.  Don't call error upon failure.  Let callers do that.
68364         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68365         when auditing is enabled.  But don't bother updating the #if.
68366
68367 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68368
68369         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68370         it breaks C++ compilation.
68371         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68372
68373 2003-07-10  Simon Josefsson  <jas@extundo.com>
68374
68375         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68376
68377 2003-07-10  Jim Meyering  <jim@meyering.net>
68378
68379         * m4/clock_time.m4: Remove trailing blank.
68380         * m4/intmax_t.m4: Likewise.
68381
68382 2003-07-10  Jim Meyering  <jim@meyering.net>
68383
68384         * lib/vasnprintf.c: Remove trailing blanks.
68385         Make cpp indentation consistent.
68386
68387 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68388
68389         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68390         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68391         Switch from LGPL to GPL.
68392
68393 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68394
68395         * config/srclist.txt: Sort sublists.  Add
68396         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68397         that differ from gnulib for one reason or another; we'd like this list
68398         to be smaller but for now let's document what we have.
68399
68400 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68401
68402         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68403         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68404         and sweeter "eval x=$x".
68405         * config/srclist.txt: Get lib/argp* from glibc.
68406
68407 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68408
68409         * lib/mktime.c: Fix some boundary cases and remove need for floating
68410         point.
68411
68412         Issue a compile-time diagnostic if time_t is floating point, or if
68413         two's complement arithmetic is not in effect, or if arithmetic
68414         right shift does not propagate the sign.  These assumptions were
68415         all in the original code but they weren't checked.
68416
68417         (TIME_T_MIDPOINT, verify): New macros.
68418         (__isleap): Remove; it has integer overflow problems.
68419         (leapyear): New function, without those problems.
68420         (ydhms_tm_diff): Remove; splitting into two parts.
68421         (ydhms_diff): New function, containing the arithmetic part of
68422         the old ydhms_tm_diff function.  Issue a compile-time
68423         diagnostic if we are not using C99 integer division.
68424         Avoid casts when possible.
68425         (guess_time_tm): New function, containing the checking part of
68426         the old ydhms_tm_diff function.  Return the new value, rather than
68427         the difference between it and the old.  Accept a new argument T
68428         so that *T specifies the old value.  Check for overflow in the result.
68429
68430         (__mktime_internal): Use a time_t offset, not a long int offset.
68431         This undoes the 2003-06-04 change, which is no longer needed now
68432         that we have better overflow checking.
68433         (localtime_offset): Likewise.
68434
68435         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68436         and long are 64-bit but int is only 32-bit.
68437         (ydhms_diff): Use long int to store year1 and yday1.
68438         Issue a compile-time diagnostic if long int is not wide enough.
68439
68440         (__mktime_internal): Use long int to store adjusted year and yday.
68441         Use plain C rather than preprocessor commands, if that doesn't
68442         affect efficiency.
68443         Check for overflow (and try to repair) after each probe
68444         rather than checking only at the very end.  This avoids some bugs
68445         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68446         does not equal GMT offset at maximum time).
68447         Use integer to check for overflow rather than floating point; this
68448         is more portable to non-IEEE hosts, and is a tad faster.
68449         When we detect that we are oscillating between two values,
68450         don't check whether tm_isdst has the requested value, since
68451         we already know the answer.  When tm_isdst has the wrong value,
68452         use a different heuristic to find the right one, based on the
68453         extreme values actually observed in practice in tz2003a,
68454         rather than the (overly optimistic) "previous 3 calendar quarters".
68455
68456         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68457         "T const" to accommodate glibc style.
68458         (check_result): Use less-confusing report format.  "long" -> "long int.
68459         (main): Likewise.
68460         Don't loop if the iteration overflows time_t.
68461         Allow a negative step in the iteration.
68462
68463 2003-07-06  Karl Berry  <karl@gnu.org>
68464
68465         * config/depcomp: update from automake.
68466         * config/config.sub: update from prep.
68467
68468 2003-07-03  Karl Berry  <karl@gnu.org>
68469
68470         * config/config.guess: update from prep.
68471
68472 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68473
68474         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68475         xreadlink.c now includes it unconditionally.
68476
68477 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68478
68479         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68480         having it depend on HAVE_SYS_TYPES_H.
68481
68482 2003-07-01  Bruno Haible  <bruno@clisp.org>
68483
68484         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68485         <sys/types.h> should be sufficient.
68486         Reported by Paul Eggert.
68487
68488 2003-06-26  Karl Berry  <karl@gnu.org>
68489
68490         * config/depcomp: update from automake.
68491
68492 2003-06-26  Bruno Haible  <bruno@clisp.org>
68493
68494         * modules/human: Depend on module stdbool.
68495
68496 2003-06-25  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/readlink: New file.
68499         * modules/xreadlink: Depend on it.
68500         * MODULES.html.sh (func_all_modules): Add readlink.
68501
68502 2003-06-25  Bruno Haible  <bruno@clisp.org>
68503
68504         * m4/readlink.m4: New file.
68505
68506 2003-06-25  Bruno Haible  <bruno@clisp.org>
68507
68508         * lib/readlink.c: New file.
68509
68510 2003-06-22  Karl Berry  <karl@gnu.org>
68511
68512         * config/srclist.txt: update mkinstalldirs from automake.
68513         * config/mkinstalldirs: update.
68514
68515 2003-06-22  Bruno Haible  <bruno@clisp.org>
68516
68517         Portability to mingw32.
68518         * m4/ssize_t.m4: New file, from GNU gettext.
68519         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68520         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68521
68522 2003-06-22  Bruno Haible  <bruno@clisp.org>
68523
68524         * modules/safe-read: Add m4/ssize_t.m4.
68525         * modules/xreadlink: Add m4/ssize_t.m4.
68526
68527 2003-06-20  Bruno Haible  <bruno@clisp.org>
68528
68529         Assume C89, so PARAMS isn't needed.
68530         * lib/unicodeio.h (PARAMS): Remove.
68531         * lib/unicodeio.c: Don't use PARAMS.
68532
68533 2003-06-18  Karl Berry  <karl@gnu.org>
68534
68535         * config/config.{guess,sub}: update from prep.
68536
68537 2003-06-18  Jim Meyering  <jim@meyering.net>
68538
68539         Merge changes from coreutils.
68540         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68541         Remove explicit declarations of xmalloc and realloc.
68542         Include xalloc.h.
68543         (read_utmp): Remove anachronistic cast of xmalloc.
68544
68545 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68546
68547         Assume C89, so PARAMS isn't needed.
68548         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68549         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68550         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68551         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68552         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68553         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68554         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68555         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68556         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68557         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68558         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68559         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68560         no longer needed. Anyway, config.h should always be included before any
68561         other file.
68562
68563 2003-06-11  Simon Josefsson  <jas@extundo.com>
68564
68565         * modules/sysexits: New file.
68566         * MODULES.html.sh (func_all_modules): Add sysexits.
68567
68568 2003-06-11  Simon Josefsson  <jas@extundo.com>
68569
68570         * lib/sysexit_.h: New file.
68571
68572 2003-06-11  Derek Price  <derek@ximbiot.com>
68573
68574         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68575         necessary.
68576
68577 2003-06-11  Bruno Haible  <bruno@clisp.org>
68578
68579         * m4/sysexits.m4: New file.
68580
68581 2003-06-10  Simon Josefsson  <jas@extundo.com>
68582
68583         * lib/argp.h: New file, from glibc.
68584         * lib/argp-ba.c: New file, from glibc.
68585         * lib/argp-eexst.c: New file, from glibc.
68586         * lib/argp-fmtstream.c: New file, from glibc.
68587         * lib/argp-fmtstream.h: New file, from glibc.
68588         * lib/argp-fs-xinl.c: New file, from glibc.
68589         * lib/argp-help.c: New file, from glibc.
68590         * lib/argp-namefrob.h: New file, from glibc.
68591         * lib/argp-parse.c: New file, from glibc.
68592         * lib/argp-pv.c: New file, from glibc.
68593         * lib/argp-pvh.c: New file, from glibc.
68594         * lib/argp-xinl.c: New file, from glibc.
68595
68596 2003-06-10  Simon Josefsson  <jas@extundo.com>
68597
68598         * modules/strchrnul: New file.
68599
68600 2003-06-10  Simon Josefsson  <jas@extundo.com>
68601
68602         * modules/argp: New file.
68603
68604 2003-06-10  Simon Josefsson  <jas@extundo.com>
68605
68606         * m4/strchrnul.m4: New file.
68607
68608 2003-06-10  Simon Josefsson  <jas@extundo.com>
68609
68610         * lib/strchrnul.h: New file.
68611         * lib/strchrnul.c: New file.
68612
68613 2003-06-10  Bruno Haible  <bruno@clisp.org>
68614
68615         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68616
68617 2003-06-07  Karl Berry  <karl@gnu.org>
68618
68619         * config/config.{guess,sub}: update from prep.
68620
68621 2003-06-07  Jim Meyering  <jim@meyering.net>
68622
68623         * modules/strtod: Use $(...) notation, not @...@ for
68624         AC_REPLACE'd variables.
68625         * modules/localcharset: Likewise.
68626
68627 2003-06-07  Jim Meyering  <jim@meyering.net>
68628
68629         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68630         in place of my name in the copyright comment.
68631         Remove definition and uses of __P.
68632
68633         From coreutils.
68634         * lib/stat.c: Don't declare xmalloc explicitly.
68635         Instead, include "xalloc.h".
68636         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68637         xrealloc, and xcalloc return values.
68638         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68639         Improve comment.
68640         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68641
68642 2003-06-07  Bruno Haible  <bruno@clisp.org>
68643
68644         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68645         avoid AC_CONFIG_LINKS.
68646         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68647         fnmatch.h, to avoid AC_CONFIG_LINKS.
68648         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68649
68650 2003-06-07  Bruno Haible  <bruno@clisp.org>
68651
68652         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68653         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68654         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68655         directory.
68656         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68657         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68658         directory.
68659
68660 2003-06-06  Jim Meyering  <jim@meyering.net>
68661
68662         Merge from coreutils.
68663         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68664         Consolidate declarations and initializations of *_base* locals.
68665
68666         Merge from coreutils.
68667         This avoids a core dump on systems without GNU putenv,
68668         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68669         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68670         (unsetenv): New static function, from GNU libc.
68671         (rpl_putenv): Use it.
68672
68673         * lib/modechange.c: Remove trailing blanks.
68674
68675         Merge from coreutils.
68676         * lib/fsusage.c: Remove declaration of statfs.
68677         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68678
68679         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68680
68681 2003-06-06  Jim Meyering  <jim@meyering.net>
68682
68683         * lib/stdbool_.h: Renamed from stdbool.h.in.
68684
68685 2003-06-06  Jim Meyering  <jim@meyering.net>
68686             Bruno Haible  <bruno@clisp.org>
68687
68688         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68689         Adjust Makefile.am snippet not to redirect directly to target.
68690         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68691
68692 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68693
68694         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68695         mismatch, look in future quarters as well as past.  This fixes a
68696         bug when processing fall-backwards gaps immediately after a long
68697         period of daylight-saving time.
68698
68699         * lib/mktime.c: Assume freestanding C89 or better.
68700         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68701         (__P): Remove; not used.
68702         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68703         (mktime, not_equal_tm, print_tm, check_result,
68704         main): Use prototypes.  Use const * where appropriate.
68705         (main): Fix typo in testing code that uncovered by above changes.
68706         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68707
68708 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68709
68710         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68711         locale.h, localeconv.  This merges changes from coreutils.
68712
68713         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68714         It can be removed after the next Autoconf is released.
68715         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68716         needed.
68717
68718 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68719
68720         * lib/mktime.c: Fix Debian bug 177940
68721         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68722         (localtime_offset): Now long int, not time_t, because we want it
68723         to be guaranteed to be signed.  All uses changed.
68724         (__mktime_internal): If overflow would occur when adding offset,
68725         don't add it.
68726
68727         Merge 'human' changes from coreutils.  Rewrite to support
68728         locale-specific notations like thousands separators.
68729         * lib/human.c: Simplify authorship notice.
68730         Include human.h immediately after config.h.
68731         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68732         <limits.h>: Do not include, since human.h does.
68733         (SIZE_MAX, UINTMAX_MAX): New macros.
68734         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68735         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68736         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68737         (power_letter): Renamed from suffixes.
68738         (generate_suffix_backwards): Remove.
68739         (adjust_value): Now takes int style (because of human.h changes)
68740         and long double value (for greater precision on some platforms).
68741         (group_number): New function.
68742         (human_readable): Use it.  Use integer options, not enum.
68743         Put the options before the sizes in the arg list.
68744         Support all the new options.
68745         The old human_readable function has been removed;
68746         use inttostr.h instead.
68747         (human_readable, default_block_size, humblock):
68748         Use uintmax_t, not int, for block sizes.
68749         (human_readable_inexact, block_size_types): Remove.
68750         (block_size_opts): New constant.
68751         (human_options): Renamed from human_block_size, with new signature
68752         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68753         * lib/human.h: Add copyright and authorship notice.
68754         Include <limits.h> and <stdbool.h> unconditionally.
68755         (PARAMS): Remove.  All uses removed.
68756         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68757         (enum human_inexact_style): Remove tag; now a nameless enum.
68758         (human_floor, human_ceiling, human_round_to_even): Now have
68759         values 2, 0, 1 rather than -1, 1, 0.
68760         (human_group_digits, human_suppress_point_zero, human_autoscale,
68761         human_base_1024, human_SI, human_B): New constants.
68762         (human_readable_inexact, human_block_size): Remove.
68763         (human_readable): Size args are now uintmax_t, not int.
68764         (human_options): New decl.
68765
68766         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68767         unnecessary now that we assume C89 or better.  This change
68768         imported from coreutils.
68769
68770         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68771         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68772         in the 2003-05-30 sync from glibc.
68773
68774         .h files should stand alone, but we shouldn't include <sys/types.h>
68775         if we can get away with just <stddef.h>.
68776
68777         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68778         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68779         rather than <sys/types.h>, as we merely need size_t.
68780         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68781         to get size_t.
68782         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68783         Include <stdio.h>, to get FILE.
68784         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68785         memcasecmp.h has included <stddef.h> and all we need is size_t.
68786         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68787         our interface, instead of including <sys/types.h>
68788
68789 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68790
68791         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68792         now, as glibc mktime is buggy on non-glibc systems.
68793
68794 2003-06-03  Karl Berry  <karl@gnu.org>
68795
68796         * config/config.sub: update from prep.
68797
68798 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68799
68800         [from coreutils]
68801         Fix some minor time-related bugs with POSIX time arguments.
68802         Some valid time stamps were being rejected (notably -1, and
68803         time stamps before 1900 on 64-bit hosts).  And some invalid
68804         time stamps were being accepted, e.g. September 31.
68805
68806         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68807         that we can return (time_t) -1 successfully.
68808         * lib/posixtm.c: Likewise.
68809         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68810         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68811         (t): Remove static var.
68812         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68813         of static var.  All uses changed.
68814         (year): Do not reject years before 1900; they can occur with
68815         64-bit time_t.
68816         (posix_time_parse): Do not check for out-of-range components;
68817         that is now the caller's responsibility, since our checks were
68818         only approximations.
68819         (posixtime): Use mktime to check for out-of-range components,
68820         since it knows them exactly.
68821         If mktime returns (time_t) -1, check whether an error actually occurred
68822         by invoking localtime on -1.
68823         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68824         posixtime failures better.
68825         Improve the test data (in comments only).
68826
68827 2003-06-02  Karl Berry  <karl@gnu.org>
68828
68829         * config/mkinstalldirs (version): new variable.
68830         (--version): new option.
68831         (usage): improve message.
68832
68833 2003-05-30  Karl Berry  <karl@gnu.org>
68834
68835         * lib/mktime.c: update from libc.
68836
68837 2003-05-30  Bruno Haible  <bruno@clisp.org>
68838
68839         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68840         * config/config.rpath: Upgrade to gettext-0.12.1.
68841
68842 2003-05-30  Bruno Haible  <bruno@clisp.org>
68843
68844         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68845         * m4/nls.m4: New file, from gettext-0.12.1.
68846         * m4/po.m4: New file, from gettext-0.12.1.
68847         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68848
68849 2003-05-30  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68852         * lib/localcharset.h: Likewise.
68853         * lib/localcharset.c: Likewise.
68854
68855 2003-05-29  Karl Berry  <karl@gnu.org>
68856
68857         * config/config.rpath: update from gettext.
68858
68859 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68860
68861         Assume the headers required for C89 freestanding compilers.
68862         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68863         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68864         * m4/human.m4 (gl_HUMAN): Likewise.
68865         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68866         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68867         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68868         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68869         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68870         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68871
68872 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68873
68874         Assume the headers required for C89 freestanding compilers.
68875         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68876         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68877         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68878         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68879         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68880         define, since <limits.h> is guaranteed to do that.
68881         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68882         * lib/exclude.c: Include <stdbool.h> unconditionally.
68883         * lib/tempname.c: Include <stddef.h> unconditionally.
68884         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68885         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68886         <stddef.h> does that.
68887         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68888         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68889         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68890         needed.
68891         * lib/xstrtol.c: Likewise.
68892         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68893         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68894
68895         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68896         warnings on some platforms.
68897
68898         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68899         arbitrarily.
68900
68901 2003-05-26  Jim Meyering  <jim@meyering.net>
68902
68903         Merge in a change from coreutils:
68904         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68905         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68906         that condition, rather than `-1' which is slightly misleading.
68907         Change the name of the cache variable to have the gl_ prefix.
68908         Prompted by a patch from Richard Dawe for DJGPP.
68909
68910 2003-05-24  Karl Berry  <karl@gnu.org>
68911
68912         * config/config.guess: update from prep.
68913
68914 2003-05-22  Karl Berry  <karl@gnu.org>
68915
68916         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68917
68918 2003-05-20  Karl Berry  <karl@gnu.org>
68919
68920         * config/config.guess: update from prep.
68921
68922 2003-05-18  Karl Berry  <karl@gnu.org>
68923
68924         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68925         might actually be set by the user.
68926
68927         * config/depcomp, install-sh, mdate-sh: update from automake.
68928
68929 2003-05-17  Bruno Haible  <bruno@clisp.org>
68930
68931         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68932         invalid expansion for AC_EGREP_CPP.
68933         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68934         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68935         Suggested by Akim Demaille <akim@epita.fr> in
68936         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68937
68938 2003-05-12  Jim Meyering  <jim@meyering.net>
68939
68940         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68941         the space-padded-by-default conversion specifiers, %e, %k, %l.
68942
68943 2003-05-12  Bruno Haible  <bruno@clisp.org>
68944
68945         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68946         the string is longer than 4 KB.
68947
68948 2003-05-11  Karl Berry  <karl@gnu.org>
68949
68950         * config/config.{guess,sub}: update from prep.
68951
68952 2003-05-09  Bruno Haible  <bruno@clisp.org>
68953
68954         * modules/error: Add m4/strerror_r.m4 to file list.
68955
68956 2003-05-03  Bruno Haible  <bruno@clisp.org>
68957
68958         Upgrade to Unicode-4.0.
68959         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68960         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68961         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68962         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68963         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68964         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68965         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68966         Change width of U+E0100..U+E01EF from 1 to 0.
68967
68968 2003-04-25  Jim Meyering  <jim@meyering.net>
68969
68970         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68971         of type size_t, not int.
68972
68973 2003-04-25  Bruno Haible  <bruno@clisp.org>
68974
68975         * lib/copy-file.c: Include <stddef.h>, for size_t.
68976
68977 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68978
68979         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68980         code which expansion is under static control.  Patch imported from
68981         Akim Demaille's patch to Bison; see
68982         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68983
68984 2003-04-14  Bruno Haible  <bruno@clisp.org>
68985
68986         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68987
68988 2003-04-11  Jim Meyering  <jim@meyering.net>
68989
68990         Merge changes from Coreutils.
68991
68992         2003-03-22  Jim Meyering  <jim@meyering.net>
68993
68994         * lib/strftime.c (widen): Cast alloca return value to proper type.
68995
68996         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68997
68998         From GNU libc.
68999         * lib/strftime.c (my_strftime): Handle very large width
69000         specifications for numeric values correctly.  Improve checks for
69001         overflow.
69002
69003         2003-01-19  Jim Meyering  <jim@meyering.net>
69004
69005         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
69006         definitions.
69007         (nl_get_alt_digit) [! defined my_strftime]: Define.
69008         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
69009         _nl_get_alt_digit and _nl_get_walt_digit.
69010
69011         * lib/strftime.c (my_strftime): Merge in locale-related changes from
69012         libc. These changes have no effect outside of _LIBC.
69013
69014 2003-04-10  Bruno Haible  <bruno@clisp.org>
69015
69016         * modules/findprog: New file.
69017         * MODULES.html.sh (func_all_modules): Add it.
69018
69019 2003-04-10  Bruno Haible  <bruno@clisp.org>
69020
69021         * m4/findprog.m4: New file.
69022         * m4/eaccess.m4: New file.
69023
69024 2003-04-10  Bruno Haible  <bruno@clisp.org>
69025
69026         * lib/findprog.h: New file, from GNU gettext.
69027         * lib/findprog.c: New file, from GNU gettext.
69028
69029 2003-04-05  Jim Meyering  <jim@meyering.net>
69030
69031         Merge changes from Coreutils.
69032
69033         * lib/exclude.h (PARAMS): Remove definition and uses.
69034         * lib/exclude.c: Remove uses of `PARAMS'.
69035
69036         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
69037         Add test-cases for DOS filenames. Declare program_name.
69038         (main): Set up program_name.  Patch by Rich Dawe.
69039
69040         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69041         error from mntctl.
69042         Use mntctl's return value to drive the entry-processing loop, since
69043         we can't rely on the value of the vmt_length member in the last
69044         entry.  On some systems doing so could result in exhausting
69045         virtual memory.  Based in part on a patch from Mike Jetzer.
69046
69047 2003-04-04  Bruno Haible  <bruno@clisp.org>
69048
69049         * modules/linebreak: New file.
69050         * MODULES.html.sh (func_all_modules): Add it.
69051
69052 2003-04-04  Bruno Haible  <bruno@clisp.org>
69053
69054         * m4/linebreak.m4: New file.
69055
69056 2003-04-04  Bruno Haible  <bruno@clisp.org>
69057
69058         * lib/linebreak.h: New file, from GNU gettext.
69059         * lib/linebreak.c: New file, from GNU gettext with slight
69060         modifications.
69061         * lib/lbrkprop.h: New file, from GNU gettext.
69062
69063 2003-04-03  Bruno Haible  <bruno@clisp.org>
69064
69065         * modules/utf8-ucs4: New file.
69066         * modules/utf16-ucs4: New file.
69067         * modules/ucs4-utf8: New file.
69068         * modules/ucs4-utf16: New file.
69069         * MODULES.html.sh (func_all_modules): Add them.
69070
69071 2003-04-03  Bruno Haible  <bruno@clisp.org>
69072
69073         * m4/utf-ucs4.m4: New file.
69074         * m4/ucs4-utf.m4: New file.
69075
69076 2003-04-03  Bruno Haible  <bruno@clisp.org>
69077
69078         * lib/utf8-ucs4.h: New file, from GNU gettext.
69079         * lib/utf16-ucs4.h: New file, from GNU gettext.
69080         * lib/ucs4-utf8.h: New file, from GNU gettext.
69081         * lib/ucs4-utf16.h: New file, from GNU gettext.
69082
69083 2003-04-02  Bruno Haible  <bruno@clisp.org>
69084
69085         * modules/binary-io: New file.
69086         * MODULES.html.sh (func_all_modules): Add it.
69087
69088 2003-04-02  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/binary-io.h: New file, from GNU gettext.
69091
69092 2003-04-01  Bruno Haible  <bruno@clisp.org>
69093
69094         * modules/pathname: New file.
69095         * MODULES.html.sh (func_all_modules): Add it.
69096
69097 2003-04-01  Bruno Haible  <bruno@clisp.org>
69098
69099         * lib/pathname.h: New file, from GNU gettext.
69100         * lib/concatpath.c: New file, from GNU gettext.
69101
69102 2003-03-30  Bruno Haible  <bruno@clisp.org>
69103
69104         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69105
69106 2003-03-30  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69109         function chown() doesn't exist.
69110
69111 2003-03-28  Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/copy-file: New file.
69114         * MODULES.html.sh (func_all_modules): Add it.
69115
69116 2003-03-28  Bruno Haible  <bruno@clisp.org>
69117
69118         * m4/copy-file.m4: New file.
69119
69120 2003-03-28  Bruno Haible  <bruno@clisp.org>
69121
69122         * lib/copy-file.h: New file, from GNU gettext.
69123         * lib/copy-file.c: New file, from GNU gettext.
69124
69125 2003-03-18  Jim Meyering  <jim@meyering.net>
69126
69127         * lib/quote.c (quote_n): Fix typo in comment.
69128
69129 2003-03-18  Bruno Haible  <bruno@clisp.org>
69130
69131         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
69132         checking.
69133         * m4/onceonly_2_57.m4: Likewise.
69134
69135 2003-03-17  Bruno Haible  <bruno@clisp.org>
69136
69137         * m4/onceonly.m4: Require autoconf 2.54 or newer.
69138         (m4_quote): Remove macro.
69139         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
69140
69141 2003-03-14  Jim Meyering  <jim@meyering.net>
69142
69143         Merge changes from Coreutils.
69144         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
69145         to be const, in order to avoid warnings.
69146         (obstack_room): Likewise.
69147         (obstack_empty_p): Likewise.
69148
69149 2003-03-14  Bruno Haible  <bruno@clisp.org>
69150
69151         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
69152         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
69153
69154 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69155
69156         Merge changes from Bison.
69157         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
69158         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
69159         when compiling Bison 1.875's `bitset bset = obstack_alloc
69160         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
69161         * lib/hash.c: Include <stdbool.h> unconditionally.
69162
69163 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69164
69165         * m4/onceonly.m4 (m4_quote): New macro.
69166         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
69167         Quote AC_FOREACH variable-expansions properly.
69168
69169 2003-03-13  Paul Eggert  <eggert@twinsun.com>
69170
69171         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
69172
69173 2003-03-09  Paul Eggert  <eggert@twinsun.com>
69174
69175         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
69176         Reported by Bruce Becker; see:
69177         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
69178
69179 2003-03-03  Paul Eggert  <eggert@twinsun.com>
69180             Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
69183         Reported by John Hughes, see
69184         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
69185
69186 2003-02-20  Bruno Haible  <bruno@clisp.org>
69187
69188         * MODULES.html.sh (func_all_modules): Add poll.
69189
69190 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69191
69192         * modules/poll: New file.
69193
69194 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69195
69196         * lib/poll_.h: New file.
69197         * lib/poll.c: New file.
69198
69199 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
69200
69201         * m4/poll.m4: New file.
69202
69203 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69204
69205         * modules/mathl: New file.
69206
69207 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69208
69209         * lib/mathl.h: New file.
69210         * lib/acosl.c: New file.
69211         * lib/asinl.c: New file.
69212         * lib/atanl.c: New file.
69213         * lib/ceill.c: New file.
69214         * lib/cosl.c: New file.
69215         * lib/expl.c: New file.
69216         * lib/floorl.c: New file.
69217         * lib/frexpl.c: New file.
69218         * lib/ldexpl.c: New file.
69219         * lib/logl.c: New file.
69220         * lib/sincosl.c: New file.
69221         * lib/sinl.c: New file.
69222         * lib/sqrtl.c: New file.
69223         * lib/tanl.c: New file.
69224         * lib/trigl.c: New file.
69225         * lib/trigl.h: New file.
69226
69227 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
69228
69229         * m4/mathl.m4: New file.
69230
69231 2003-02-18  Bruno Haible  <bruno@clisp.org>
69232
69233         * MODULES.html.sh (func_all_modules): Add mathl.
69234
69235 2003-02-17  Bruno Haible  <bruno@clisp.org>
69236
69237         * modules/mkdtemp: New module.
69238         * MODULES.html.sh (func_all_modules): Add it.
69239
69240 2003-02-17  Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
69243
69244 2003-02-17  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/mkdtemp.h: New file, from GNU gettext.
69247         * lib/mkdtemp.c: New file, from GNU gettext.
69248
69249 2003-02-02  Jim Meyering  <jim@meyering.net>
69250
69251         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
69252         e.g. glibc-2.2.93.
69253
69254 2003-01-31  Bruno Haible  <bruno@clisp.org>
69255
69256         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69257         'rpl_rename'.
69258         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69259         'rpl_strnlen'.
69260         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69261         'rpl_strtod'.
69262         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69263         'rpl_utime'.
69264
69265 2003-01-31  Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/rename.c: #undef rename before defining rpl_rename.
69268         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69269
69270 2003-01-30  Bruno Haible  <bruno@clisp.org>
69271
69272         * modules/vasnprintf, modules/vasprintf: New modules.
69273         * MODULES.html.sh (func_all_modules): Add them.
69274
69275 2003-01-30  Bruno Haible  <bruno@clisp.org>
69276
69277         * m4/signed.m4: New file, from GNU gettext.
69278         * m4/longdouble.m4: New file, from GNU gettext.
69279         * m4/wchar_t.m4: New file, from GNU gettext.
69280         * m4/wint_t.m4: New file, from GNU gettext.
69281         * m4/vasnprintf.m4: New file.
69282         * m4/vasprintf.m4: New file.
69283
69284 2003-01-30  Bruno Haible  <bruno@clisp.org>
69285
69286         * lib/printf-args.h: New file, from GNU gettext.
69287         * lib/printf-args.c: New file, from GNU gettext.
69288         * lib/printf-parse.h: New file, from GNU gettext.
69289         * lib/printf-parse.c: New file, from GNU gettext.
69290         * lib/vasnprintf.h: New file, from GNU gettext.
69291         * lib/vasnprintf.c: New file, from GNU gettext.
69292         * lib/asnprintf.c: New file, from GNU gettext.
69293         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69294         * lib/vasprintf.c: New file, from GNU gettext.
69295         * lib/asprintf.c: New file, from GNU gettext.
69296
69297 2003-01-29  Bruno Haible  <bruno@clisp.org>
69298
69299         * modules/stpncpy: New module.
69300         * MODULES.html.sh (func_all_modules): Add it.
69301
69302 2003-01-29  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/stpncpy.m4: New file.
69305
69306 2003-01-29  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69309         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69310
69311 2003-01-28  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/c-ctype: New module.
69314         * MODULES.html.sh (func_all_modules): Add it.
69315
69316 2003-01-28  Bruno Haible  <bruno@clisp.org>
69317
69318         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69319         Paul Eggert.
69320         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69321         Paul Eggert.
69322
69323 2003-01-27  Bruno Haible  <bruno@clisp.org>
69324
69325         * modules/xsetenv: New module.
69326         * MODULES.html.sh (func_all_modules): Add it.
69327
69328 2003-01-27  Bruno Haible  <bruno@clisp.org>
69329
69330         * lib/xsetenv.h: New file, from GNU gettext.
69331         * lib/xsetenv.c: New file, from GNU gettext.
69332
69333 2003-01-23  Jim Meyering  <jim@meyering.net>
69334
69335         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69336         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69337
69338 2003-01-23  Bruno Haible  <bruno@clisp.org>
69339
69340         * modules/minmax: New module.
69341         * MODULES.html.sh (func_all_modules): Add it.
69342
69343 2003-01-23  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69346         Eggert.
69347
69348 2003-01-22  Bruno Haible  <bruno@clisp.org>
69349
69350         * modules/exit: New module.
69351         * MODULES.html.sh (func_all_modules): Add it.
69352
69353 2003-01-22  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/exit.h: New file, from GNU gettext.
69356
69357 2003-01-19  Bruno Haible  <bruno@clisp.org>
69358
69359         * gnulib-tool: Recognize option --extract-maintainer.
69360         (func_get_maintainer): New function.
69361         * modules/*: Add Maintainer entry.
69362
69363 2003-01-16  Jim Meyering  <jim@meyering.net>
69364
69365         * m4/regex.m4: The `regex' struct is both input and output.
69366         Initialize it before each use.  Patch by Tim Waugh.
69367
69368 2003-01-16  Bruno Haible  <bruno@clisp.org>
69369
69370         * MODULES.html.sh: Add a table of contents. Add the module name as
69371         leftmost column. Add hyperlinks.
69372
69373 2003-01-15  Bruno Haible  <bruno@clisp.org>
69374
69375         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69376
69377 2003-01-15  Bruno Haible  <bruno@clisp.org>
69378
69379         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69380         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69381         suffix.
69382
69383 2003-01-15  Bruno Haible  <bruno@clisp.org>
69384
69385         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69386
69387 2003-01-15  Bruno Haible  <bruno@clisp.org>
69388
69389         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69390         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69391
69392 2003-01-14  Jim Meyering  <jim@meyering.net>
69393
69394         * lib/same.c (same_name): Tweak a comment.
69395
69396 2003-01-14  Bruno Haible  <bruno@clisp.org>
69397
69398         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69399         when a string comparison is sufficient.
69400
69401 2003-01-14  Bruno Haible  <bruno@clisp.org>
69402
69403         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69404         'unsigned int'.
69405
69406 2003-01-14  Bruno Haible  <bruno@clisp.org>
69407
69408         * lib/hash-pjw.c: Add comment about low quality of this function.
69409
69410 2003-01-13  Bruno Haible  <bruno@clisp.org>
69411
69412         * modules/stpcpy: Distribute lib/stpcpy.h.
69413         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69414
69415 2003-01-13  Bruno Haible  <bruno@clisp.org>
69416
69417         * modules/*: Add a description.
69418         * modules/strpbrk: Fix Makefile.am snippet.
69419         * modules/strtoimax: Fix dependencies.
69420         * modules/strtoumax: Likewise.
69421
69422 2003-01-13  Bruno Haible  <bruno@clisp.org>
69423
69424         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69425         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69426         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69427
69428 2003-01-13  Bruno Haible  <bruno@clisp.org>
69429
69430         * gnulib-tool (func_create_testdir): Store config/* files in the main
69431         directory.
69432         * config.rpath: Move to ...
69433         * config/config.rpath: ... here.
69434         * modules/gettext: Contains config/config.rpath, not config.rpath.
69435         * modules/iconv: Likewise.
69436
69437 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69438
69439         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69440         to avoid collisions with libcurses and libreadline.
69441
69442         * m4/getstr.m4: Remove.
69443         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69444
69445 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69446
69447         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69448         to avoid collisions with libcurses and libreadline.
69449
69450         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69451         * lib/getstr.h, getstr.c: Remove.
69452         * lib/getline.c: Include "getline.h", to check interface.
69453         Move body of old getstr.c here: this defines MIN_CHUNK and
69454         declares getdelim2, which is renamed from getstr.
69455         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69456
69457         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69458         All uses changed.
69459         * lib/linebuffer.h: Likewise.
69460         (readline): Remove backward-compatibility macro.
69461
69462 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69463
69464         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69465         to avoid collisions with libcurses and libreadline.
69466         * getstr: Remove.
69467         * MODULES.html.sh: Remove getstr.
69468         * modules/getline: Depend on unlocked-io, not getstr.
69469
69470 2003-01-12  Jim Meyering  <jim@meyering.net>
69471
69472         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69473
69474 2003-01-10  Bruno Haible  <bruno@clisp.org>
69475
69476         * modules/alloca: Change Makefile.am requirements. Simplify Include
69477         requirements. Add lib/alloca_.h to file list.
69478
69479 2003-01-10  Bruno Haible  <bruno@clisp.org>
69480
69481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69482
69483 2003-01-10  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/alloca_.h: New file.
69486         * lib/getdate.y: Unconditionally include alloca.h.
69487         * lib/makepath.c: Likewise.
69488         * lib/setenv.c: Likewise.
69489         * lib/userspec.c: Likewise.
69490
69491 2003-01-09  Karl Berry  <karl@gnu.org>
69492
69493         * MODULES.html.sh: include `dirname $0` in PATH, to find
69494         gnulib-tool.
69495
69496 2003-01-09  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69499         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69500
69501 2003-01-09  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69504
69505 2003-01-09  Bruno Haible  <bruno@clisp.org>
69506
69507         * lib/stdbool.h.in: New file.
69508
69509 2003-01-09  Bruno Haible  <bruno@clisp.org>
69510
69511         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69512         * MODULES.html.sh: Likewise.
69513
69514 2003-01-08  Jim Meyering  <jim@meyering.net>
69515
69516         * lib/full-write.c: Undefine and define-away `const' after inclusion
69517         of errno.h, not before.  Suggestion from Bruno Haible.
69518
69519 2003-01-08  Bruno Haible  <bruno@clisp.org>
69520
69521         * modules/full-read: Depend on full-write.
69522
69523 2003-01-08  Bruno Haible  <bruno@clisp.org>
69524
69525         * lib/safe-read.c: Include specification header first, to ensure its
69526         selfcontainedness.
69527         * lib/full-write.c: Likewise.
69528
69529 2003-01-07  Jim Meyering  <jim@meyering.net>
69530
69531         * lib/full-write.c: Rework so that it may serve to define full_read,
69532         too.
69533         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69534
69535 2003-01-07  Bruno Haible  <bruno@clisp.org>
69536
69537         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69538         <inttypes.h>.
69539         * lib/xstrtol.h: Likewise.
69540         * lib/xstrtoimax.c: Likewise.
69541         * lib/xstrtoumax.c: Likewise.
69542         * lib/human.h: Likewise.
69543
69544         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69545         on systems that have <inttypes.h> but not <stdint.h>.
69546
69547 2003-01-07  Bruno Haible  <bruno@clisp.org>
69548
69549         * MODULES.html.sh: Add copyright notice.
69550         (missed_files): Omit CVS directory entries.
69551         (func_module): Make it work with sed-3.02.
69552         * MODULES.txt: Remove file.
69553
69554 2003-01-06  Jim Meyering  <jim@meyering.net>
69555
69556         * lib/version-etc.c: Update year in translatable copyright string.
69557
69558 2003-01-03  Karl Berry  <karl@gnu.org>
69559
69560         * config/config.{guess,sub}: update from prep.
69561
69562 2003-01-02  Karl Berry  <karl@gnu.org>
69563
69564         * doc/COPYING.DOC: belatedly updated to 1.2.
69565
69566 2003-01-01  Karl Berry  <karl@gnu.org>
69567
69568         * gnulib-tool (func_verify_module): report module name $module in
69569         error message, not $1.
69570         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69571         be created, only if it doesn't exist.
69572         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69573
69574 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69575
69576         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69577
69578 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69579
69580         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69581         memcmp if strcoll doesn't work.
69582
69583 2002-12-31  Bruno Haible  <bruno@clisp.org>
69584
69585         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69586         nonempty.
69587
69588 2002-12-31  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/memcoll.c (STRCOLL): New macro.
69591         (memcoll): Use it.
69592
69593 2002-12-31  Bruno Haible  <bruno@clisp.org>
69594
69595         * lib/localcharset.h: New file.
69596         * lib/localcharset.c: Include it.
69597         * lib/unicodeio.c: Likewise.
69598
69599 2002-12-31  Bruno Haible  <bruno@clisp.org>
69600
69601         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69602         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69603
69604 2002-12-31  Bruno Haible  <bruno@clisp.org>
69605
69606         * lib/getline.h: Include <stddef.h>, for size_t.
69607
69608         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69609         * lib/unicodeio.c: Don't include <stddef.h>.
69610
69611 2002-12-31  Bruno Haible  <bruno@clisp.org>
69612
69613         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69614         HAVE_TM_ZONE.
69615
69616 2002-12-24  Karl Berry  <karl@gnu.org>
69617
69618         * config/config.guess: update from prep.
69619
69620 2002-12-24  Bruno Haible  <bruno@clisp.org>
69621
69622         General infrasructure.
69623         * m4/README: Rewritten.
69624         * m4/onceonly.m4: New file.
69625         * m4/onceonly_2_57.m4: New file.
69626
69627         Module atexit.
69628         * m4/atexit.m4: New file.
69629
69630         Module strtod.
69631         * m4/strtod.m4: New file.
69632
69633         Module strtol.
69634         * m4/strtol.m4: New file.
69635
69636         Module strtoul.
69637         * m4/strtoul.m4: New file.
69638
69639         Module memchr.
69640         * m4/memchr.m4: New file.
69641
69642         Module memcmp.
69643         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69644         (jm_FUNC_MEMCMP): Invoke it.
69645
69646         Module memcpy.
69647         * m4/memcpy.m4: New file.
69648
69649         Module memmove.
69650         * m4/memmove.m4: New file.
69651
69652         Module memset.
69653         * m4/memset.m4: New file.
69654
69655         Module strcspn.
69656         * m4/strcspn.m4: New file.
69657
69658         Module strpbrk.
69659         * m4/strpbrk.m4: New file.
69660
69661         Module strstr.
69662         * m4/strstr.m4: New file.
69663
69664         Module strerror.
69665         * m4/strerror.m4: New file.
69666
69667         Module mktime.
69668         * m4/mktime.m4: Renamed from jm-mktime.m4.
69669         (gl_PREREQ_MKTIME): New macro.
69670         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69671
69672         Module malloc.
69673         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69674         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69675         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69676
69677         Module realloc.
69678         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69679         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69680         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69681
69682         Module strftime.
69683         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69684         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69685         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69686         gl_TM_GMTOFF.
69687         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69688
69689         Module xalloc.
69690         * m4/xalloc.m4: New file.
69691
69692         Module alloca.
69693         * m4/alloca.m4: New file.
69694
69695         Module putenv.
69696         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69697         (jm_FUNC_PUTENV): Invoke it.
69698
69699         Module setenv.
69700         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69701         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69702         when invoked twice.
69703         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69704         gt_FUNC_SETENV.
69705
69706         Module memrchr.
69707         * m4/memrchr.m4: New file.
69708
69709         Module stpcpy.
69710         * m4/stpcpy.m4: New file.
69711
69712         Module strcase.
69713         * m4/strcase.m4: New file.
69714
69715         Module strdup.
69716         * m4/strdup.m4: New file.
69717
69718         Module strnlen.
69719         * m4/strnlen.m4: New file.
69720
69721         Module strndup.
69722         * m4/strndup.m4: New file.
69723
69724         Module xstrtod.
69725         * m4/xstrtod.m4: New file.
69726
69727         Module xstrtol.
69728         * m4/xstrtol.m4: New file.
69729
69730         Module getdate.
69731         * m4/getdate.m4: New file.
69732
69733         Module unlocked-io.
69734         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69735         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69736         * m4/jm-glibc-io.m4n: Remove file.
69737
69738         Module long-options.
69739         * m4/long-options.m4: New file.
69740
69741         Module md5.
69742         * m4/md5.m4: New file.
69743
69744         Module sha.
69745         * m4/sha.m4: New file.
69746
69747         Module getstr.
69748         * m4/getstr.m4: New file.
69749
69750         Module getline.
69751         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69752         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69753         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69754         simply getline. Infoke gl_PREREQ_GETLINE.
69755
69756         Module obstack.
69757         * m4/obstack.m4: New file.
69758
69759         Module hash.
69760         * m4/hash.m4: New file.
69761
69762         Module readtokens.
69763         * m4/readtokens.m4: New file.
69764
69765         Module strverscmp.
69766         * m4/strverscmp.m4: New file.
69767
69768         Module stdbool.
69769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69770         OSF/1.
69771
69772         Module strtoll.
69773         * m4/strtoll.m4: New file.
69774
69775         Module strtoull.
69776         * m4/strtoull.m4: New file.
69777
69778         Module strtoimax.
69779         * m4/strtoimax.m4: New file.
69780
69781         Module strtoumax.
69782         * m4/strtoumax.m4: New file.
69783
69784         Module xstrtoimax.
69785         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69786         jm_AC_PREREQ_XSTRTOIMAX.
69787         Moved the strtol prerequisites to strtol.m4.
69788         Moved the strtoll prerequisites to strtoll.m4.
69789         Moved the strtoimax prerequisites to strtoimax.m4.
69790
69791         Module xstrtoumax.
69792         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69793         jm_AC_PREREQ_XSTRTOUMAX.
69794         Moved the strtoul prerequisites to strtoul.m4.
69795         Moved the strtoull prerequisites to strtoull.m4.
69796         Moved the strtoumax prerequisites to strtoumax.m4.
69797
69798         Module chown.
69799         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69800         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69801
69802         Module dup2.
69803         * m4/dup2.m4: New file.
69804
69805         Module ftruncate.
69806         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69807         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69808
69809         Module getgroups.
69810         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69811         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69812
69813         Module gettimeofday.
69814         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69815         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69816         gl_PREREQ_GETTIMEOFDAY.
69817
69818         Module mkdir.
69819         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69820         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69821
69822         Module mkstemp.
69823         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69824         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69825         jm_AC_TYPE_UINTMAX_T.
69826         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69827
69828         Module stat.
69829         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69830         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69831
69832         Module lstat.
69833         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69834         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69835
69836         Module timespec.
69837         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69838         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69839         * m4/st_mtim.m4: Indentation.
69840
69841         Module nanosleep.
69842         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69843         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69844         gl_PREREQ_NANOSLEEP.
69845
69846         Module regex.
69847         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69848         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69849         (gl_REGEX): New macro.
69850
69851         Module rename.
69852         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69853         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69854
69855         Module rmdir.
69856         * m4/rmdir.m4: New file.
69857
69858         Module utime.
69859         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69860         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69861         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69862
69863         Module dirname.
69864         * m4/dirname.m4: New file.
69865
69866         Module getopt.
69867         * m4/getopt.m4: New file.
69868
69869         Module unistd-safer.
69870         * m4/unistd-safer.m4: New file.
69871
69872         Module fnmatch.
69873         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69874         declaration.
69875         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69876         (gl_FUNC_FNMATCH_POSIX): New macro.
69877         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69878         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69879         simply fnmatch.
69880
69881         Module exclude.
69882         * m4/exclude.m4: New file.
69883
69884         Module human.
69885         * m4/human.m4: New file.
69886
69887         Module acl.
69888         * m4/acl.m4: Nop.
69889
69890         Module backupfile.
69891         * m4/backupfile.m4: New file.
69892         * m4/d-ino.m4: Indentation.
69893
69894         Module fsusage.
69895         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69896         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69897         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69898
69899         Module dirfd.
69900         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69901         requirements.
69902
69903         Module euidaccess.
69904         * m4/euidaccess.m4: New file.
69905
69906         Module file-type.
69907         * m4/file-type.m4: New file.
69908
69909         Module fileblocks.
69910         * m4/fileblocks.m4: New file.
69911
69912         Module filemode.
69913         * m4/filemode.m4: New file.
69914
69915         Module isdir.
69916         * m4/isdir.m4: New file.
69917
69918         Module lchown.
69919         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69920         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69921
69922         Module makepath.
69923         * m4/makepath.m4: New file.
69924
69925         Module modechange.
69926         * m4/modechange.m4: New file.
69927
69928         Module mountlist.
69929         * m4/mountlist.m4: New file.
69930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69931         Indentation.
69932
69933         Module path-concat.
69934         * m4/path-concat.m4: New file.
69935
69936         Module pathmax.
69937         * m4/pathmax.m4: New file.
69938
69939         Module same.
69940         * m4/same.m4: New file.
69941
69942         Module save-cwd.
69943         * m4/save-cwd.m4: New file.
69944
69945         Module savedir.
69946         * m4/savedir.m4: New file.
69947
69948         Module xgetcwd.
69949         * m4/xgetcwd.m4: New file.
69950         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69951
69952         Module xreadlink.
69953         * m4/xreadlink.m4: New file.
69954
69955         Module safe-read.
69956         * m4/safe-read.m4: New file.
69957
69958         Module safe-write.
69959         * m4/safe-write.m4: New file.
69960
69961         Module closeout.
69962         * m4/closeout.m4: New file.
69963
69964         Module stdio-safer.
69965         * m4/stdio-safer.m4: New file.
69966
69967         Module getpass.
69968         * m4/getpass.m4: New file.
69969
69970         Module getugroups.
69971         * m4/getugroups.m4: New file.
69972
69973         Module group-member.
69974         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69975         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69976
69977         Module idcache.
69978         * m4/idcache.m4: New file.
69979
69980         Module userspec.
69981         * m4/userspec.m4: New file.
69982
69983         Module gettime.
69984         * m4/clock_time.m4: New file.
69985         * m4/gettime.m4: New file.
69986
69987         Module settime.
69988         * m4/settime.m4: New file.
69989
69990         Module posixtm.
69991         * m4/posixtm.m4: New file.
69992
69993         Module gethostname.
69994         * m4/gethostname.m4: New file.
69995
69996         Module canon-host.
69997         * m4/canon-host.m4: New file.
69998
69999         Module gettext.
70000         * m4/codeset.m4: New file, from gettext-0.11.5.
70001         * m4/gettext.m4: New file, from gettext-0.11.5.
70002         * m4/glibc21.m4: New file, from gettext-0.11.5.
70003         * m4/iconv.m4: New file, from gettext-0.11.5.
70004         * m4/intdiv0.m4: New file, from gettext-0.11.5.
70005         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
70006         * m4/inttypes.m4: New file, from gettext-0.11.5.
70007         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
70008         * m4/isc-posix.m4: New file, from gettext-0.11.5.
70009         * m4/lcmessage.m4: New file, from gettext-0.11.5.
70010         * m4/lib-ld.m4: New file, from gettext-0.11.5.
70011         * m4/lib-link.m4: New file, from gettext-0.11.5.
70012         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
70013         * m4/progtest.m4: New file, from gettext-0.11.5.
70014         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
70015         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
70016         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
70017
70018         Module localcharset.
70019         * m4/localcharset.m4: New file.
70020
70021         Module hard-locale.
70022         * m4/hard-locale.m4: New file.
70023
70024         Module mbswidth.
70025         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70026         onceonly macros.
70027         * m4/mbrtowc.m4: Add comment.
70028
70029         Module memcasecmp.
70030         * m4/memcasecmp.m4: New file.
70031
70032         Module memcoll.
70033         * m4/memcoll.m4: New file.
70034
70035         Module unicodeio.
70036         * m4/unicodeio.m4: New file.
70037
70038         Module rpmatch.
70039         * m4/rpmatch.m4: New file.
70040
70041         Module yesno.
70042         * m4/yesno.m4: New file.
70043
70044         Module exitfail.
70045         * m4/exitfail.m4: New file.
70046
70047         Module c-stack.
70048         * m4/c-stack.m4 (gl_C_STACK): New macro.
70049         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
70050
70051         Module error.
70052         * m4/error.m4 (gl_ERROR): New macro.
70053         (jm_PREREQ_ERROR): Use onceonly macros.
70054
70055         Module fatal.
70056         * m4/fatal.m4: New file.
70057
70058         Module getloadavg.
70059         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
70060         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
70061
70062         Module getpagesize.
70063         * m4/getpagesize.m4: New file.
70064
70065         Module getusershell.
70066         * m4/getusershell.m4: New file.
70067
70068         Module physmem.
70069         * m4/physmem.m4: New file.
70070
70071         Module posixver.
70072         * m4/posixver.m4: New file.
70073
70074         Module quotearg.
70075         * m4/quotearg.m4: New file.
70076
70077         Module quote.
70078         * m4/quote.m4: New file.
70079
70080         Module readutmp.
70081         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70082
70083         Module sig2str.
70084         * m4/sig2str.m4: New file.
70085
70086         Other.
70087         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70088         ulonglong.m4.
70089         * m4/intmax_t.m4: New file.
70090         * m4/d-type.m4: Indentation.
70091         * m4/jm-macros.m4: Update.
70092         * m4/prereq.m4 (jm_PREREQ): Update.
70093         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70094         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70095         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70096         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70097         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70098         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70099         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70100         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70101         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70102         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70103         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70104         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70105         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70106         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70107         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70108         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70109         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70110         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70111         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70112
70113 2002-12-24  Bruno Haible  <bruno@clisp.org>
70114
70115         * MODULES.txt: Update according to m4/ changes.
70116
70117         Module gettext.
70118         * config.rpath: New file, from gettext-0.11.5.
70119
70120         * modules/*: New module descriptions.
70121         * gnulib-tool: New file.
70122         * MODULES.html.sh: New file.
70123
70124 2002-12-21  Karl Berry  <karl@gnu.org>
70125
70126         * doc/fdl.texi: update to version 1.2.
70127
70128 2002-12-19  Karl Berry  <karl@gnu.org>
70129
70130         * config/config.guess: update from prep.
70131
70132 2002-12-18  Bruno Haible  <bruno@clisp.org>
70133
70134         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
70135         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
70136
70137 2002-12-17  Bruno Haible  <bruno@clisp.org>
70138
70139         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
70140         stdlib.h, string.h.
70141
70142 2002-12-17  Bruno Haible  <bruno@clisp.org>
70143
70144         * lib/canon-host.c (strdup): Remove unused declaration.
70145
70146         * lib/fsusage.c: Include full_read.h.
70147         (get_fs_usage): Use full_read instead of safe_read.
70148
70149         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
70150
70151 2002-12-12  Karl Berry  <karl@gnu.org>
70152
70153         * config/config.guess: update from prep.
70154
70155 2002-12-11  Bruno Haible  <bruno@clisp.org>
70156
70157         * m4/setenv.m4: New file, from gettext-0.11.5.
70158
70159 2002-12-11  Bruno Haible  <bruno@clisp.org>
70160
70161         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
70162         not unsetenv().
70163         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
70164         modifications:
70165
70166         2002-12-11  Bruno Haible  <bruno@clisp.org>
70167
70168                 * setenv.c (alloca): Fall back to malloc.
70169                 (freea): New macro.
70170                 (setenv): Use freea() to free memory allocated with alloca().
70171
70172         2002-11-13  Bruno Haible  <bruno@clisp.org>
70173
70174                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
70175                 function declarations.
70176                 * unsetenv.c (unsetenv): Likewise.
70177
70178         2002-03-04  Bruno Haible  <bruno@clisp.org>
70179
70180                 Portability to AIX 4.3.3.
70181                 * unsetenv.c: New file, extracted from setenv.c.
70182                 * setenv.c: Move the unsetenv() function to unsetenv.c.
70183
70184         2001-12-20  Bruno Haible  <bruno@clisp.org>
70185
70186                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
70187                 use malloc instead. For SunOS 4.
70188
70189         2001-12-11  Bruno Haible  <bruno@clisp.org>
70190
70191                 * setenv.c: Declare alloca.
70192                 (compar_fn_t): New typedef.
70193                 (KNOWN_VALUE, STORE_VALUE): Use it.
70194
70195         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
70196         setenv.h.
70197
70198 2002-12-10  Paul Eggert  <eggert@twinsun.com>
70199
70200         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
70201         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
70202         Choose values that are less likely to collide with system fnmatch
70203         options.
70204         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
70205         defined (e.g., a pure POSIX system).
70206         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
70207         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
70208
70209 2002-12-06  Paul Eggert  <eggert@twinsun.com>
70210
70211         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
70212         a pain in practice to deal with generated m4 files.  This change
70213         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
70214
70215         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
70216         and jm-glibc-io.m4, as they are no longer a special case.
70217         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
70218         kludge and the auto-generation stuff.  Check only whether the
70219         functions are declared, not whether they exist, since older hosts
70220         that don't declare the functions can't use the optimization anyway.
70221
70222 2002-12-06  Jim Meyering  <jim@meyering.net>
70223
70224         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
70225
70226         Merge in changes from libc's misc/error.c, in preparation
70227         for the merge of gnulib's changes back into libc.
70228
70229         * lib/error.c (_): Define only if not already defined.
70230         Move definition to follow all #include directives.
70231         Include unlocked-io.h only if !_LIBC.
70232         [_LIBC]: Include <libio/libioP.h>.
70233         [USE_IN_LIBIO]: Include <libio/iolibio.h>
70234         (fflush): Tweak definition to use INTUSE.
70235         (putc): Define.
70236
70237 2002-12-05  Paul Eggert  <eggert@twinsun.com>
70238
70239         * lib/alloca.c [defined emacs]: Include "lisp.h".
70240         (xalloc_die) [defined emacs]: New macro.
70241         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
70242         [! defined emacs]: Include <xalloc.h>.
70243         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
70244         (pointer): Typedef to POINTER_TYPE *.
70245         (malloc): Remove decl; we now always use xmalloc.
70246         (alloca): Use old-style definition, since Emacs needs this.
70247         Check for arithmetic overflow when computing combined size.
70248
70249 2002-12-04  Paul Eggert  <eggert@twinsun.com>
70250
70251         Do not generate unlocked-io.h automatically, since it's easier to
70252         maintain it by hand.
70253
70254         * lib/unlocked-io.h: New file, from GNU diffutils,
70255         but with proper copyright notice and attribution.
70256         * lib/gen-uio: Remove.
70257         * lib/Makefile.am: Add copyright notice.
70258         (libfetish_a_SOURCES): Add unlocked-io.h.
70259         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70260         (DISTCLEANFILES, io_functions): Remove macros.
70261         (EXTRA_DIST): Remove gen_uio.
70262         (unlocked-io.h): Remove rule.
70263
70264 2002-12-04  Jim Meyering  <jim@meyering.net>
70265
70266         Reflect the fact that stat.c and lstat.c are no longer generated.
70267         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70268         (DISTCLEANFILES): Likewise.
70269         (EXTRA_DIST): Likewise.
70270         (all_local): Don't depend on stat.c or lstat.c.
70271         (stat.c, lstat.c): Remove rules.
70272         (EXTRA_DIST): Remove xstat.in.
70273
70274         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70275         * lib/stat.c: New file.  Contents mostly from xstat.in.
70276         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70277         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70278
70279         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70280         too.
70281         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70282
70283 2002-12-03  Jim Meyering  <jim@meyering.net>
70284
70285         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70286         but not semantics, to minimize the differences between these two files.
70287         (safe_read): Change comment to mention SAFE_READ_ERROR.
70288
70289         * lib/safe-read.c (IS_EINTR): Define.
70290         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70291
70292 2002-12-02  Jim Meyering  <jim@meyering.net>
70293
70294         * lib/safe-read.c (EINTR): Define.
70295         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70296         (INT_MAX): Provide fallback.
70297         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70298
70299         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70300
70301 2002-12-02  Bruno Haible  <bruno@clisp.org>
70302
70303         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70304         Define, taken from safe-read.c.
70305         (INT_MAX): Provide fallback.
70306         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70307         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70308
70309         * lib/safe-read.c (EINTR): Remove definition.
70310         (safe_read): Don't use EINTR if it is absent.
70311
70312 2002-12-01  Jim Meyering  <jim@meyering.net>
70313
70314         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70315         zero.
70316         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70317
70318 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70319
70320         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70321         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70322         with `if (! (value < limit)) abort ();', for readability.
70323
70324 2002-11-26  Karl Berry  <karl@gnu.org>
70325
70326         * lib/strdup.c: copy from libc again, with jim's ok.
70327         * lib/.cppi-disable: re-add strdup.c
70328
70329 2002-11-25  Karl Berry  <karl@gnu.org>
70330
70331         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70332         instead of "strtol.c".
70333
70334 2002-11-25  Karl Berry  <karl@gnu.org>
70335
70336         * config/install-sh: update from automake for variable quoting, $0 in
70337         error msgs, etc.
70338
70339         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70340         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70341         entry.
70342
70343 2002-11-25  Jim Meyering  <jim@meyering.net>
70344
70345         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70346
70347 2002-11-24  Karl Berry  <karl@gnu.org>
70348
70349         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70350         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70351
70352 2002-11-24  Jim Meyering  <jim@meyering.net>
70353
70354         Update from coreutils:
70355
70356         * lib/mktime.c: Merge in changes from libc.
70357
70358         Avoid a link-time failure on some Linux systems.
70359         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70360         (otherwise).
70361         (__mon_yday): Declare with the STATIC attribute.
70362         (__mktime_internal): Likewise.
70363         Based on a report from Greg Schafer.
70364
70365 2002-11-23  Jim Meyering  <jim@meyering.net>
70366
70367         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70368         Use `unsigned', not `int', as type of index.
70369
70370         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70371
70372         * lib/fsusage.c: Remove unneeded parentheses around operands of
70373         `defined'.
70374
70375 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70376
70377         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70378         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70379         so that we can be included first.
70380         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70381         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70382         No need to include stddef.h or sys/types.h any more.
70383         Surround local include files with "", not "<>".
70384         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70385         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70386         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70387         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70388         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70389         (ISPRINT): Remove; no longer needed now that we assume C89.
70390
70391         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70392         Preserve errno.
70393
70394         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70395         quotearg_char): Use SIZE_MAX rather than
70396         (size_t) -1 when we are talking about "infinity".
70397
70398         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70399
70400 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70401
70402         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70403         hint that one should use `if (! x) abort ();' rather than `assert
70404         (x);', and anyway it's one less thing to worry about configuring.
70405         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70406         hash_rehash, hash_insert): Use abort rather than assert.
70407
70408 2002-11-22  Bruno Haible  <bruno@clisp.org>
70409
70410         * lib/safe-read.h: Assume C89. Add comments.
70411         (safe_read): Change return type to size_t.
70412         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70413         byte counts > SSIZE_MAX correctly.
70414         * lib/safe-write.h: New file.
70415         * lib/safe-write.c: New file.
70416         * lib/full-read.h: New file.
70417         * lib/full-read.c: New file.
70418         * lib/full-write.h: Assume C89. Add comments.
70419         * lib/full-write.c: Include safe-write.h.
70420         (full_write): Rewritten to use safe_write.
70421         Suggested by Jim Meyering and Paul Eggert.
70422
70423 2002-11-21  Jim Meyering  <jim@meyering.net>
70424
70425         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70426
70427         Merge in changes from the coreutils.
70428
70429         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70430         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70431         <stdint.h>.
70432         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70433         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70434         int.  Work more efficiently if X is the same width as uintmax_t.
70435         Do not compare X to -1, to avoid bogus compiler warning.
70436         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70437         Don't assume that f_frsize and f_bsize are the same type.
70438
70439         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70440         warning on FreeBSD.
70441
70442         * lib/makepath.c (make_path): Restore umask *before* creating the final
70443         component.
70444         (make_path): Minor reformatting.
70445
70446         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70447         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70448         HAVE_MALLOC/HAVE_REALLOC.
70449
70450         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70451         dummy ones.  At least on GNU/Linux systems, `auto' means something
70452         else.
70453         From Michael Stone.
70454
70455 2002-11-21  Bruno Haible  <bruno@clisp.org>
70456
70457         Remove case insensitive option matching.
70458         * lib/argmatch.h (argcasematch): Remove declaration.
70459         (ARGCASEMATCH): Remove macro.
70460         (__xargmatch_internal): Remove case_sensitive argument.
70461         (XARGMATCH): Update.
70462         (XARGCASEMATCH): Remove macro.
70463         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70464         case_sensitive argument.
70465         (argcasematch): Remove function.
70466         (__xargmatch_internal): Remove case_sensitive argument.
70467         (main): Use XARGMATCH instead of XARGCASEMATCH.
70468
70469         * lib/xmalloc.c: Change compile-time error message. Add comment about
70470         required autoconf version.
70471
70472 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70473
70474         Merge argmatch cleanups from Bison.  Assume C89.
70475
70476         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70477         Include stdlib.h, for EXIT_FAILURE.
70478         Always include <string.h>, since we assume C89.
70479         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70480         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70481         Include <stddef.h> instead, since it's all we need for size_t.
70482         (PARAMS): Remove.  All uses removed.
70483         (ARRAY_CARDINALITY): Do not bother to #undef.
70484         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70485         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70486         Remove unnecessary parentheses.
70487         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70488         Insert necessary parentheses.
70489         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70490         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70491
70492 2002-11-19  Bruno Haible  <bruno@clisp.org>
70493
70494         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70495         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70496
70497         * lib/mbswidth.h (PARAMS): Remove macro.
70498         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70499         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70500
70501         * lib/gcd.h (PARAMS): Remove macro.
70502         (gcd): Use ANSI C function declarations.
70503         * lib/gcd.c (gcd): Likewise.
70504
70505 2002-11-15  Bruno Haible  <bruno@clisp.org>
70506
70507         * lib/strcspn.c: Include <stddef.h>.
70508         (strcspn): Use ANSI C function declaration. Change return type to
70509         size_t. Use NULL.
70510         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70511         (strpbrk): Use NULL.
70512         * lib/strpbrk.h (PARAMS): Remove macro.
70513         (strpbrk): Use ANSI C function declaration.
70514         * lib/strstr.c: Don't include <sys/types.h>.
70515         * lib/strstr.h (PARAMS): Remove macro.
70516         (strstr): Use ANSI C function declarations.
70517
70518 2002-11-14  Karl Berry  <karl@gnu.org>
70519
70520         * config/mkinstalldirs: `do' on separate line, instead of
70521         `for var; do'.
70522
70523 2002-11-06  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70526         * lib/gcd.c (gcd): Likewise.
70527
70528 2002-11-05  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/gcd.h: New file, from gettext-0.11.5.
70531         * lib/gcd.c: New file, from gettext-0.11.5.
70532
70533 2002-11-05  Bruno Haible  <bruno@clisp.org>
70534
70535         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70536         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70537         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70538         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70539
70540         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70541         <libintl.h>.
70542         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70543         <libintl.h>.
70544
70545         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70546         * lib/human.c: Include gettext.h instead of <libintl.h>.
70547         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70548         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70549         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70550         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70551         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70552         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70553         (textdomain): Remove definition.
70554         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70555
70556         * lib/long-options.c: Remove include of <libintl.h> and definition of
70557         _.
70558         * lib/same.c: Remove include of <libintl.h> and definition of _.
70559
70560 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70561
70562         * lib/config.charset: A few additions for Solaris.
70563
70564 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70565
70566         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70567         * lib/localcharset.c (locale_charset): Declare as extern "C".
70568
70569 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70570
70571         * lib/config.charset: msdos in uk_UA uses CP1125.
70572
70573 2002-11-04  Bruno Haible  <bruno@clisp.org>
70574
70575         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70576         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70577         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70578         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70579         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70580
70581 2002-11-04  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/localcharset.c (locale_charset): Don't return an empty string.
70584
70585 2002-11-04  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70588         aliases.
70589
70590 2002-11-04  Bruno Haible  <bruno@clisp.org>
70591
70592         * lib/config.charset: Update for newest glibc. Add canonical names
70593         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70594
70595 2002-11-04  Bruno Haible  <bruno@clisp.org>
70596
70597         * lib/config.charset: Add support for NetBSD.
70598
70599 2002-11-04  Bruno Haible  <bruno@clisp.org>
70600
70601         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70602
70603 2002-11-01  Bruno Haible  <bruno@clisp.org>
70604
70605         * configure.in: Add AC_CONFIG_AUX_DIR call.
70606         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70607         test/Makefile.
70608         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70609
70610 2002-09-28  Karl Berry  <karl@gnu.org>
70611
70612         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70613         installed automake until the next release, since changes have been
70614         made.
70615
70616 2002-09-25  Karl Berry  <karl@gnu.org>
70617
70618         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70619         * lib/getopt*: copy from libc/posix.
70620         * lib/gettext.h: copy from gettext.
70621         * lib/.cppi-disable: add strdup.c, gettext.h.
70622
70623 2002-09-25  Karl Berry  <karl@gnu.org>
70624
70625         * config/srclist.txt: enable gettext.h check.
70626         * config/config.{guess,sub}: update from prep.
70627         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70628                 from automake 1.6.3.
70629         See srclist*.
70630
70631 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70632
70633         * regex.c (PATFETCH): Remove the translating fetch.
70634         (PATFETCH_RAW): Rename to PATFETCH.
70635         (set_image_of_range): New fun.
70636         (SET_RANGE_TABLE_WORK_AREA): Use it.
70637         (regex_compile): Don't translate the pattern chars so eagerly.
70638         Only do it when inserting an `exactn' bytecode or when handling
70639         a char-range.
70640         (mutually_exclusive_p): Avoid empty statement.
70641
70642 2002-07-06  Jim Meyering  <meyering@lucent.com>
70643
70644         * m4/README: Don't mention Makefile.am.in.
70645         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70646
70647 2002-07-01  Jim Meyering  <meyering@lucent.com>
70648
70649         * lib/c-stack.c: Include sys/time.h.
70650         From Volker Borchert.
70651
70652 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70653
70654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70655
70656 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70657
70658         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70659         New macro.  Use it uniformly instead of
70660         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70661         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70662         reported by Vin Shelton.
70663
70664 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70665
70666         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70667         Do not assume SA_SIGINFO behavior.
70668         Bug reported by Jim Meyering on NetBSD 1.5.2.
70669
70670 2002-06-22  Jim Meyering  <meyering@lucent.com>
70671
70672         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70673         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70674
70675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70676         now that configure.ac uses AC_GNU_SOURCE.
70677         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70678         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70679
70680         Update to latest tools.  Suggestions from Paul Eggert.
70681         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70682         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70683         * m4/fnmatch.m4: Likewise.
70684         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70685         to AC_HEADER_STDBOOL
70686
70687 2002-06-22  Jim Meyering  <meyering@lucent.com>
70688
70689         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70690         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70691
70692 2002-06-22  Jim Meyering  <meyering@lucent.com>
70693
70694         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70695
70696         * lib/exitfail.c, exitfail.h: Likewise.
70697         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70698
70699         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70700         of fnmatch.h.
70701         (EXTRA_DIST): Add fnmatch_loop.c.
70702         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70703
70704         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70705         * lib/fnmatch.c: Update from diffutils-2.8.2.
70706         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70707         * lib/fnmatch.h: Remove file.
70708
70709 2002-06-21  Jim Meyering  <meyering@lucent.com>
70710
70711         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70712         * m4/mbrtowc.m4: Likewise.
70713
70714         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70715         * m4/mbswidth.m4: Reflect name change:
70716         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70717         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70718
70719         * m4/lib-link.m4: Update from gettext-0.11.2.
70720         * m4/gettext.m4: Likewise.
70721
70722         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70723         From Alfred M. Szmidt.
70724
70725 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70726
70727         * lib/file-type.h: Report an error if neither S_ISREG nor
70728         S_IFREG is defined, instead of using a test specific to glibc
70729         2.2.  This should be safe, since POSIX requires S_ISREG and
70730         Unix Version 7 had S_IFREG.  We don't need to check for
70731         <sys/types.h> since we don't use any symbols that it defines.
70732
70733 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70734
70735         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70736         $@-t, so that each temporary file name is unique and valid in the first
70737         8 characters, for operation under DOS.
70738
70739 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70740
70741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70742
70743 2002-06-15  Jim Meyering  <meyering@lucent.com>
70744
70745         Work even with DJGPP 2.03, which lacks support for symlinks.
70746         From Richard Dawe.
70747         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70748         is defined.
70749         * lib/lchown.c (S_ISLNK): Likewise.
70750
70751 2002-06-15  Jim Meyering  <meyering@lucent.com>
70752
70753         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70754         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70755         have been included before this file.
70756
70757 2002-06-14  Jim Meyering  <meyering@lucent.com>
70758
70759         * lib/file-type.h: Use the version from diffutils-2.8.2.
70760         * lib/file-type.c: Likewise.
70761
70762 2002-06-07  Jim Meyering  <meyering@lucent.com>
70763
70764         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70765         They're needed at least for NetBSD 1.5.2.
70766         ($statxfs_includes): Include those same headers.
70767         ($statxfs_includes): Include sys/vfs.h if available.
70768         ($statxfs_includes): Likewise for sys/statvfs.h.
70769         Check for the following members in both structs statfs and statvfs:
70770         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70771
70772 2002-06-01  Jim Meyering  <meyering@lucent.com>
70773
70774         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70775         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70776
70777 2002-05-28  Jim Meyering  <meyering@lucent.com>
70778
70779         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70780         Reported by Volker Borchert.
70781
70782 2002-05-27  Jim Meyering  <meyering@lucent.com>
70783
70784         Fix a problem seen only on nonconforming systems whereby ls.c's
70785         use of localtime, and then of gettimeofday would cause trouble:
70786         the localtime call used to initialize rpl_gettimeofday's save
70787         mechanism would clobber ls's current local time information so
70788         that in any long listing the first file would always be listed
70789         with date 1970-01-01.  Analysis by Volker Borchert.
70790
70791         * lib/gettimeofday.c (localtime): Undefine.
70792         (rpl_localtime): New function.
70793
70794 2002-05-27  Jim Meyering  <meyering@lucent.com>
70795
70796         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70797         localtime.
70798
70799         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70800         use the replacement function; it wouldn't resolve at link time.
70801         Reported by Volker Borchert.
70802
70803 2002-05-22  Jim Meyering  <meyering@lucent.com>
70804
70805         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70806         file-type.h.
70807         * lib/file-type.h: New file.
70808         * lib/file-type.c (file_type): New file/function.  Extracted from
70809         diffutils.
70810
70811 2002-04-30  Jim Meyering  <meyering@lucent.com>
70812
70813         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70814
70815 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70816
70817         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70818
70819 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70820
70821         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70822         Do not check for alloca.h (no longer used) or stdbool.h (was never
70823         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70824
70825 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70826
70827         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70828
70829 2002-04-29  Jim Meyering  <meyering@lucent.com>
70830
70831         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70832         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70833         Use AC_FUNC_STRNLEN here instead.
70834
70835         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70836         With autoconf-2.53a, it's part of AC_PROG_CC.
70837
70838 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70839
70840         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70841         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70842
70843 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70844
70845         * lib/sig2str.h, lib/sig2str.c: New files.
70846         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70847
70848 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70849
70850         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70851         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70852         of 127, since 64 is the largest conceivable number for ancient
70853         nonstandard hosts.
70854         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70855
70856 2002-04-28  Jim Meyering  <meyering@lucent.com>
70857
70858         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70859
70860 2002-04-24  Jim Meyering  <meyering@lucent.com>
70861
70862         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70863         (jm_PREREQ): Use it.
70864
70865         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70866         mach/mach.h fcntl.h.
70867         Check for this function: setlocale.
70868
70869 2002-04-24  Jim Meyering  <meyering@lucent.com>
70870
70871         * lib/gettext.h: New file, from Gettext.
70872         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70873         (libfetish_a_SOURCES): Add gettext.h.
70874
70875 2002-04-16  Jim Meyering  <meyering@lucent.com>
70876
70877         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70878         ut_pid, ut_id, ut_exit.
70879
70880 2002-04-16  Jim Meyering  <meyering@lucent.com>
70881
70882         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70883         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70884         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70885
70886 2002-04-12  Jim Meyering  <meyering@lucent.com>
70887
70888         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70889         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70890         existence of the getmntinfo function.  Needed for Darwin 5.3.
70891
70892         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70893         This is necessary at least on Darwin 5.3.
70894
70895         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70896         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70897         strnlen.o in the library, and that makes some versions of ranlib
70898         object.
70899
70900 2002-04-12  Jim Meyering  <meyering@lucent.com>
70901
70902         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70903
70904 2002-04-09  Jim Meyering  <meyering@lucent.com>
70905
70906         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70907         to be more precise.  Rather than saying we're checking whether the
70908         function `works', say what we're testing.
70909         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70910         Reported by Bruno Haible.
70911
70912 2002-03-10  Jim Meyering  <meyering@lucent.com>
70913
70914         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70915         Suggestion from Santiago Vila.
70916
70917 2002-03-08  Jim Meyering  <meyering@lucent.com>
70918
70919         * lib/rename.c: Mention that this wrapper is needed also on
70920         mips-dec-ultrix4.4 systems.
70921
70922 2002-03-02  Jim Meyering  <meyering@lucent.com>
70923
70924         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70925         not HAVE_CLOCK_SETTIME.
70926
70927 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70928
70929         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70930         Check for clock_settime.
70931
70932 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70933
70934         * lib/nanosleep.h: Rename to....
70935         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70936
70937         * lib/gettime.c: New file.
70938         * lib/settime.c: New file.
70939         * lib/stime.c: Remove.
70940
70941         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70942         timespec.h.  Remove nanosleep.h.
70943
70944 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70945
70946         * m4/acl.m4: New file.
70947         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70948         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70949
70950 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70951
70952         * lib/acl.c, lib/acl.h: New files.
70953         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70954
70955 2002-02-24  Jim Meyering  <meyering@lucent.com>
70956
70957         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70958         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70959         cause trouble.  Reported by Nelson Beebe.
70960
70961 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70962
70963         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70964         compilers that don't know that xalloc_die never returns.
70965
70966 2002-02-20  Jim Meyering  <meyering@lucent.com>
70967
70968         * lib/getdate.c: Regenerate using bison-1.33.
70969
70970 2002-02-17  Jim Meyering  <meyering@lucent.com>
70971
70972         * config/config.guess (main): Don't use `head -1'; it's no longer
70973         portable. Use `sed 1q' instead.
70974
70975 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70976
70977         * m4/codeset.m4: Upgrade to gettext-0.11.
70978         * m4/gettext.m4: Upgrade to gettext-0.11.
70979         * m4/glibc21.m4: Upgrade to gettext-0.11.
70980         * m4/iconv.m4: Upgrade to gettext-0.11.
70981         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70982         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70983         * m4/lib-ld.m4: New file, from gettext-0.11.
70984         * m4/lib-link.m4: New file, from gettext-0.11.
70985         * m4/lib-prefix.m4: New file, from gettext-0.11.
70986         * m4/progtest.m4: Upgrade to gettext-0.11.
70987
70988 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70989
70990         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70991         (jm_PREREQ): Use it.
70992
70993 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70994
70995         * lib/posixver.c, lib/posixver.h: New files.
70996         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70997
70998 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70999             Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
71002         (fwrite_success_callback): New declaration.
71003         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
71004         print_unicode_char. Call failure callback instead of error.
71005         (fwrite_success_callback): New function.
71006         (exit_failure_callback): New function.
71007         (fallback_failure_callback): New function.
71008         (print_unicode_char): Call unicode_to_mb.
71009
71010 2002-01-26  Jim Meyering  <meyering@lucent.com>
71011
71012         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
71013         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
71014
71015 2002-01-26  Jim Meyering  <meyering@lucent.com>
71016
71017         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
71018
71019 2002-01-22  Paul Eggert  <eggert@twinsun.com>
71020
71021         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
71022
71023 2002-01-22  Jim Meyering  <meyering@lucent.com>
71024
71025         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71026         Otherwise, some versions of automake would omit the rule that makes
71027         Makefile from Makefile.in.
71028
71029 2002-01-21  Paul Eggert  <eggert@twinsun.com>
71030
71031         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
71032         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71033         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
71034         (memcoll): Set errno to zero if there is no error.
71035
71036         * lib/quotearg.c (quotearg_buffer_restyled):
71037         Fix bug with quoting buffers containing NUL when backslashing escapes.
71038         This bug was exposed by the other changes in this patch.
71039         (quotearg_n_options): New arg ARGSIZE.
71040         All callers changed.
71041         (quoting_options_from_style): New function.
71042         (quotearg_n_style): Use it.
71043         (quotearg_n_style_mem): New function.
71044
71045         * lib/quotearg.h (quotearg_n_style_mem): New function.
71046
71047 2002-01-19  Jim Meyering  <meyering@lucent.com>
71048
71049         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
71050         Remove useless quotes: DF_PROG="df".
71051         * m4/strnlen.m4: New file.
71052
71053 2002-01-16  Paul Eggert  <eggert@twinsun.com>
71054
71055         * lib/backupfile.c (ISDIGIT): Comment fix.
71056         * lib/getdate.y (ISDIGIT): Likewise.
71057         * lib/posixtm.c (ISDIGIT, year): Likewise.
71058         * lib/strverscmp.c (ISDIGIT): Likewise.
71059         * lib/userspec.c (ISDIGIT): Likewise.
71060
71061 2002-01-16  Jim Meyering  <meyering@lucent.com>
71062
71063         * lib/getdate.y: Add three semicolons, each just before a closing
71064         brace. Bison (as of version 1.31) no longer papers over that mistake.
71065
71066 2002-01-05  Jim Meyering  <meyering@lucent.com>
71067
71068         * lib/version-etc.c (version_etc_copyright): Update copyright year.
71069
71070 2001-12-19  Paul Eggert  <eggert@twinsun.com>
71071
71072         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
71073         not silently exit merely because the output buffer happens to
71074         have nothing pending.
71075
71076 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71077
71078         See the big note in ../ChangeLog.
71079         * lib/human.c (suffixes): Prefer K to k for 1024.
71080         (generate_suffix_backwards): New function.
71081         (human_readable_inexact): Use it.
71082         * lib/xstrtol.c (__xstrtol): If there is no number but there
71083         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71084         Accept 'K' as well as 'k'.
71085
71086 2001-12-15  Jim Meyering  <meyering@lucent.com>
71087
71088         * lib/regex.h (__restrict_arr): Update from libc.
71089
71090         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71091         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71092         (STREQ): Define.
71093
71094 2001-12-14  Jim Meyering  <meyering@lucent.com>
71095
71096         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71097         Suggestion from Bruno Haible.
71098
71099 2001-12-10  Jim Meyering  <meyering@lucent.com>
71100
71101         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71102         xrealloc, Instead, include "xalloc.h".
71103         (initbuffer): Don't cast xmalloc return value to char*.
71104         (readline): Reword comment.
71105         Don't cast xrealloc return value to char*
71106         Return NULL, not 0.
71107
71108 2001-12-09  Jim Meyering  <meyering@lucent.com>
71109
71110         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71111         about `signed and unsigned type in conditional expression'.
71112         * lib/posixtm.c (posix_time_parse): Likewise.
71113
71114         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71115
71116         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71117         to avoid a pedantic warning.
71118
71119         * lib/getstr.c: Don't include assert.h.
71120         (getstr): Remove warning-evoking assertions.
71121         Return -1 if offset parameter is out of bounds.
71122         Change the type of a local from int to size_t.
71123
71124         * lib/strftime.c (my_strftime_localtime_r): Include this function
71125         definition in the `#if ! HAVE_TM_GMTOFF' block.
71126
71127         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71128         Include xalloc.h instead.
71129
71130 2001-12-02  Jim Meyering  <meyering@lucent.com>
71131
71132         * lib/tempname.c: Don't declare getenv, thus reverting the change of
71133         2001-11-18.  It's no longer necessary, now that stdlib.h is always
71134         included.
71135
71136         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
71137         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
71138
71139 2001-11-30  Akim Demaille  <akim@epita.fr>
71140
71141         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
71142         before being defined.
71143
71144 2001-11-27  Paul Eggert  <eggert@twinsun.com>
71145
71146         * lib/quotearg.h (quotearg_n, quotearg_n_style):
71147         First arg is int, not unsigned.
71148         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
71149         (SIZE_MAX, UINT_MAX): New macros.
71150         (quotearg_n_options): Abort if N is negative.
71151         Avoid overflow check on hosts where size_t is 64 bits and int
71152         is 32 bits, as overflow is impossible there.
71153         Fix off-by-one typo that caused unnecessary reallocation.
71154
71155 2001-11-27  Jim Meyering  <meyering@lucent.com>
71156
71157         * lib/tempname.c: Merge with version from libc.
71158         * lib/regex.c: Likewise.
71159
71160         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
71161         systems for which STDC_HEADERS is 0, it was not included, resulting in
71162         a warning about an integer-to-pointer conversion problem with getenv.
71163         Reported by Volker Borchert.
71164
71165 2001-11-26  Jim Meyering  <meyering@lucent.com>
71166
71167         * lib/gtod.h: Remove file.
71168         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
71169         * lib/gettimeofday.c: Don't include gtod.h.
71170         (GTOD_init): Remove function.
71171         (rpl_gettimeofday): Do its job here instead, rather than aborting.
71172         Suggestion from Volker Borchert.
71173
71174 2001-11-23  Jim Meyering  <meyering@lucent.com>
71175
71176         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
71177         it.
71178         * lib/hash.c (struct hash_table): Define it here instead.
71179
71180 2001-11-22  Jim Meyering  <meyering@lucent.com>
71181
71182         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
71183
71184 2001-11-20  Jim Meyering  <meyering@lucent.com>
71185
71186         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
71187         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
71188
71189 2001-11-19  Jim Meyering  <meyering@lucent.com>
71190
71191         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
71192         directory.  Use "conftestXXXXXX" as the template.
71193         Suggestion from Paul Eggert.
71194
71195         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
71196         immediately, so the test doesn't mistakenly hit the max-open-files
71197         limit.
71198
71199 2001-11-18  Paul Eggert  <eggert@twinsun.com>
71200
71201         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
71202         (TEMPORARIES): New macro.
71203         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
71204         removes an artificial limitation (e.g. HP-UX 10.20, where
71205         TMP_MAX is 17576).
71206
71207 2001-11-18  Jim Meyering  <meyering@lucent.com>
71208
71209         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
71210
71211 2001-11-18  Jim Meyering  <meyering@lucent.com>
71212
71213         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
71214         on SunOS 4.
71215
71216         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
71217         files will be created before anything else.
71218
71219 2001-11-17  Paul Eggert  <eggert@twinsun.com>
71220
71221         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
71222         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
71223
71224 2001-11-17  Jim Meyering  <meyering@lucent.com>
71225
71226         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
71227         Prompted by a report from Bob Proulx.
71228
71229         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
71230         Instead, require UTILS_FUNC_MKSTEMP.
71231
71232 2001-11-17  Jim Meyering  <meyering@lucent.com>
71233
71234         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
71235         Now, that's done as part of AC_FUNC_STRTOD.
71236
71237 2001-11-17  Jim Meyering  <meyering@lucent.com>
71238
71239         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
71240         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
71241         rather than group writable.  Patch by Juan F. Codagnone.
71242
71243         * lib/readtokens.c: Remove explicit declarations of xmalloc and
71244         xrealloc, Instead, include "xalloc.h".
71245
71246         * lib/mountlist.c: Include unlocked-io.h after all system headers.
71247         Remove explicit declarations of xmalloc, xrealloc,
71248         and xstrdup.  Instead, include "xalloc.h".
71249
71250         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
71251         unlocked-io.h.
71252         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
71253         Likewise.
71254         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71255
71256         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71257         Reported by Padraig Brady.
71258
71259         * lib/mkstemp.c: #undef mkstemp.
71260         Include config.h.
71261         (rpl_mkstemp): Rename from mkstemp.
71262         Protoize.
71263
71264 2001-11-16  Jim Meyering  <meyering@lucent.com>
71265
71266         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71267         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71268         determine the amount of total physical memory, use pstat_getstatic.
71269         HPUX-11 doesn't define _SC_PHYS_PAGES.
71270         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71271         If sysconf couldn't be used to determine the amount of available
71272         physical memory, use both pstat_getstatic and pstat_getdynamic.
71273         Based on a patch from Bob Proulx.
71274
71275 2001-11-10  Jim Meyering  <meyering@lucent.com>
71276
71277         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71278         (jm_PREREQ): Use it.
71279
71280 2001-11-09  Jim Meyering  <meyering@lucent.com>
71281
71282         * m4/jm-macros.m4: Require autoconf-2.52f.
71283         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71284         Use these AC_-prefixed names, not the AM_-prefixed ones.
71285
71286         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71287
71288 2001-11-05  Jim Meyering  <meyering@lucent.com>
71289
71290         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71291
71292 2001-11-04  Jim Meyering  <meyering@lucent.com>
71293
71294         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71295         $DEFS.
71296
71297 2001-11-03  Jim Meyering  <meyering@lucent.com>
71298
71299         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71300         of AC_DEFUN.
71301
71302         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71303         know the name of the variable in the macro definition.
71304
71305 2001-11-03  Jim Meyering  <meyering@lucent.com>
71306
71307         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71308         in argmatch_to_argument call.
71309
71310         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71311         argument.
71312
71313         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71314         e.g., a fault due to an attempt to free a NULL pointer.
71315
71316 2001-11-01  Jim Meyering  <meyering@lucent.com>
71317
71318         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71319         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71320
71321 2001-11-01  Jim Meyering  <meyering@lucent.com>
71322
71323         * lib/dirfd.c, lib/dirfd.h: New files.
71324         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71325
71326         * lib/hash.c (hash_print) [TESTING]: Clean up.
71327
71328 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71329
71330         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71331         to avoid a warning if -Wall.
71332
71333 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71334
71335         * README: New file
71336         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71337         (per RMS's instructions, this is now the canonical source)
71338         * lgpl/, gpl/: New directories.
71339
71340 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71341
71342         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71343
71344 2001-10-21  Jim Meyering  <meyering@lucent.com>
71345
71346         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71347         this code would end up calling gettext even in packages built
71348         with --disable-nls.
71349         * lib/getopt.c (_): Likewise.
71350         * lib/regex.c (_): Likewise.
71351
71352 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71353
71354         * m4/error.m4 (jm_PREREQ_ERROR):
71355         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71356         AC_FUNC_STRERROR_R does that.
71357         Check for strerror declaration.
71358
71359         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71360         are supposed to have them these days.
71361         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71362         Merge changes from latest Autoconf CVS.
71363         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71364         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71365         POSIX decided to standardize on the int flavor of strerror_r.
71366
71367 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71368
71369         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71370         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71371         Use strerror_r that is only a macro, even if it is not a function.
71372         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71373         (private_strerror): Use prototypes, not old-style function definition.
71374         (print_errno_message): New function.
71375         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71376         char*-flavored one.
71377         (error_tail, error, error_at_line): Use it.
71378
71379 2001-10-11  Jim Meyering  <meyering@lucent.com>
71380
71381         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71382         and quote_n (1, ... to avoid clobbering a buffer.
71383
71384 2001-10-05  Jim Meyering  <meyering@lucent.com>
71385
71386         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71387         hash-pjw.h.
71388         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71389         * lib/hash-pjw.h: New file.
71390
71391 2001-09-30  Jim Meyering  <meyering@lucent.com>
71392
71393         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71394         `struct fsstat' has the `f_fstypename' member.
71395         Use that to define FS_TYPE, which is now used to make
71396         the getfsstat link test tighter.
71397
71398 2001-09-30  Jim Meyering  <meyering@lucent.com>
71399
71400         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71401         Include <sys/ucred.h>, for Apple Darwin.
71402         Include sys/mount.h and sys/fs_types.h only if available.
71403         (FS_TYPE): Define.
71404         (read_filesystem_list): Use FS_TYPE.
71405
71406 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71407
71408         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71409         a boolean context.
71410
71411 2001-09-29  Jim Meyering  <meyering@lucent.com>
71412
71413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71414         [one-argument getmntent function]): Include stdio.h before mntent.h.
71415         SunOS 4.1.x needs it for the declaration of `FILE'.
71416         Patch by Volker Borchert.
71417
71418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71419         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71420         sys/fs_types.h, and make the link-test for getfsstat guard #include
71421         directives with appropriate #if HAVE_*_H tests so that we can
71422         detect getfsstat on Apple Darwin1.3.7 systems.
71423         Reported by Nelson Beebe.
71424         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71425
71426 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71427
71428         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71429         #defines strtoimax.  Also treat the other strto* functions
71430         like strtoimax.
71431
71432         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71433         Check for strtoul and strtoumax,
71434         as those declarations are made even in the signed case.
71435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71436         Likewise, for strtol and strtoimax.
71437
71438 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71439
71440         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71441         #defines strtoimax.  Also treat the other strto* functions
71442         like strtoimax.
71443
71444         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71445         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71446         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71447
71448 2001-09-26  Jim Meyering  <meyering@lucent.com>
71449
71450         Most macros in unlocked-io.h had the wrong number of arguments.
71451         * lib/gen-uio: New script.
71452         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71453         * lib/unlocked-io.hin: Remove file.
71454         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71455         rather than trying to embed it here.
71456         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71457         Reported by Padraig Brady.
71458
71459 2001-09-25  Volker Borchert  <bt@teknon.de>
71460
71461         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71462         `result'.
71463
71464 2001-09-24  Jim Meyering  <meyering@lucent.com>
71465
71466         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71467
71468 2001-09-23  Jim Meyering  <meyering@lucent.com>
71469
71470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71471         instead of the mere test for existence of mntent.h.  The latter
71472         would get a false-positive on AIX 3.4 systems.
71473         In the outer getmntent if-block, don't die if neither of the getmntent
71474         tests succeeds.  Instead, just fall through and continue with the
71475         remaining tests.
71476
71477 2001-09-23  Jim Meyering  <meyering@lucent.com>
71478
71479         * lib/mountlist.c: Remove useless parentheses in #if directives.
71480         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71481         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71482
71483 2001-09-22  Jim Meyering  <meyering@lucent.com>
71484
71485         * m4/gettext.m4: New file.  From gettext.
71486         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71487         * m4/progtest.m4: Likewise
71488         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71489         * m4/glibc21.m4: Likewise.
71490
71491         * m4/libintl.m4: Remove.  No longer used.
71492
71493 2001-09-22  Jim Meyering  <meyering@lucent.com>
71494
71495         * lib/localcharset.c: Update from latest gettext.
71496         * lib/config.charset: Likewise.
71497
71498 2001-09-20  Jim Meyering  <meyering@lucent.com>
71499
71500         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71501         strtoimax.
71502         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71503         strtoumax.
71504
71505 2001-09-20  Jim Meyering  <meyering@lucent.com>
71506
71507         * lib/xstrtol.c (strtoimax): Guard declaration with
71508         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71509         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71510         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71511         (strtoumax): Likewise, for completeness (it wasn't necessary).
71512
71513 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71514
71515         * lib/strtoimax.c (HAVE_LONG_LONG):
71516         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71517         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71518         to work around bug in IBM C compiler.
71519
71520 2001-09-17  Jim Meyering  <meyering@lucent.com>
71521
71522         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71523         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71524         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71525         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71526         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71527         whenever the right hand side need not be expanded by the shell.
71528
71529 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71530
71531         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71532         library.  It's not correct, as some older glibcs are buggy.
71533         fnmatch wasn't fixed until glibc 2.2.
71534
71535         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71536         special shell magic here.
71537
71538 2001-09-16  Jim Meyering  <meyering@lucent.com>
71539
71540         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71541         * m4/jm-macros.m4: Require it.
71542
71543 2001-09-16  Jim Meyering  <meyering@lucent.com>
71544
71545         * lib/mkdir.c: New file.
71546
71547 2001-09-15  Jim Meyering  <meyering@lucent.com>
71548
71549         * m4/jm-macros.m4: Check for help2man.
71550
71551 2001-09-11  Jim Meyering  <meyering@lucent.com>
71552
71553         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71554         The body, by Paul Eggert, was moved here from configure.in.
71555         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71556
71557 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71558
71559         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71560         (jm_PREREQ): Use it.
71561
71562 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71563
71564         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71565         Use ssize_t, not int, to store result of readlink.
71566         Check for ssize_t overflow as well as size_t overflow,
71567         as POSIX says the result of readlink is implementation-defined
71568         when ssize_t overflows.
71569         Remove unnecessary cast to char*.
71570         Use free+malloc instead of realloc, as the storage doesn't need
71571         to be preserved and it's clearer and can be more efficient that way.
71572         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71573         * lib/xreadlink.h (xreadlink): Update prototype.
71574
71575 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71576
71577         * lib/xgetcwd.c: Revert some of the previous change; intead,
71578         fix the HAVE_GETCWD_NULL code to behave more like the
71579         !HAVE_GETCWD_NULL code used to.
71580
71581         Include "xalloc.h".
71582         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71583         invoke xalloc_die.
71584
71585 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71586
71587         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71588         sys/param.h, as pathmax.h includes them.
71589
71590 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71591
71592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71593         (jm_PREREQ_XGETCWD): New macro.
71594
71595         * m4/getcwd.m4: New file.
71596
71597 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71598
71599         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71600         like the HAVE_GETCWD_NULL code.
71601         Include pathmax.h if not HAVE_GETCWD.
71602         Do not include xalloc.h.
71603         (INITIAL_BUFFER_SIZE): New symbol.
71604         Do not use xmalloc / xrealloc, since the caller is responsible for
71605         handling errors.  Preserve errno around `free' during failure.
71606         Do not overrun buffer when using getwd.
71607
71608 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71609
71610         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71611         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71612         getcwd (NULL, 0).
71613
71614 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71615
71616         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71617         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71618         spotted by Jim Meyering.
71619
71620 2001-09-03  Jim Meyering  <meyering@lucent.com>
71621
71622         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71623         failure.
71624
71625 2001-09-02  Jim Meyering  <meyering@lucent.com>
71626
71627         * lib/error.c: Update from GNU libc.
71628
71629 2001-09-01  Jim Meyering  <meyering@lucent.com>
71630
71631         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71632         Used by df.
71633
71634 2001-09-01  Jim Meyering  <meyering@lucent.com>
71635
71636         * lib/xreadlink.c: New file.
71637         * lib/xreadlink.h: New file.
71638         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71639         xreadlink.h.
71640
71641         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71642         doesn't conflict with sparc Solaris 7's definition in
71643         /usr/include/sys/int_types.h.
71644
71645         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71646         files.
71647         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71648         and strncasecmp as r-values.  Unixware didn't have declarations.
71649
71650 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71651
71652         * lib/xstrtol.h: Add copyright notice.
71653         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71654         LONGINT_INVALID_SUFFIX_CHAR.
71655
71656 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71657
71658         * lib/xstrtol.c (strtoimax): New decl.
71659
71660 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71661
71662         * lib/xgetcwd.c: Don't include pathmax.h.
71663         Include stdlib.h and unistd.h if available.
71664         Include xalloc.h.
71665         (xmalloc, xstrdup, free): Remove decls.
71666         (xgetcwd): Don't assume sizes fit in unsigned.
71667         Check for overflow when computing sizes.
71668         Simplify reallocation code.
71669
71670 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71671
71672         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71673         a directory's st_size can have an arbitrary value, so the old
71674         usage could waste an arbitrary amount of memory.  All uses
71675         changed.
71676         * lib/savedir.h: Update prototype.
71677
71678 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71679
71680         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71681
71682         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71683         old strtoimax.c.
71684
71685         Also, make the following further changes to make this file's
71686         configuration more similar to that of strtol.c:
71687         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71688         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71689         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71690         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71691         changed to signed values.
71692
71693         And make the following changes as well:
71694         Fix copyright notice, as 1999 was missing.
71695         (verify): New macro.
71696         (strtoimax): Check sizes at compile-time, not run-time.
71697         Prefer strtol to strtoll if both work.
71698         (main): Remove; it was not that useful and was a pain to maintain.
71699
71700         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71701
71702 2001-08-31  Jim Meyering  <meyering@lucent.com>
71703
71704         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71705         Use an initial, malloc'd, buffer of length 128 rather than
71706         a statically allocated one of length 1024.
71707
71708 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71709
71710         Simplify code, partly by assuming autoconf 2.52 semantics.
71711
71712         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71713
71714         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71715         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71716         All uses removed.
71717         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71718         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71719         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71720         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71721         jm_AC_HEADER_INTTYPES_H.
71722         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71723
71724         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71725
71726         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71727         Quote first arg of AC_DEFUN.
71728         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71729         since they are needed to parse the include file even if we need
71730         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71732         but with opposite signedness.
71733
71734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71735
71736         Merge 'exclude' changes from tar 1.13.22.
71737         This fixes one or two unlikely storage allocation overflow bugs,
71738         but doesn't change user-visible behavior otherwise.
71739
71740 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71741
71742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71743         (jm_PREREQ_EXCLUDE): New macro.
71744
71745 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71746
71747         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71748         tm to be declared.
71749
71750 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71751
71752         * lib/hash.c: Remove '2001' from copyright notice.
71753
71754 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71755
71756         * lib/full-write.h: New file.
71757         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71758         * lib/full-write.c: Correct credits, as cccp.c no longer
71759         exists and anyway it was so heavily changed from the old cccp
71760         code as to be unrecognizable.  Include full-write.h.
71761         (full_write) Return size_t, with short writes meaning failure.
71762         All callers changed.  This fixes a bug with large buffers
71763         on 64-bit hosts.
71764         * lib/utime.c: Include full-write.h.
71765
71766 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71767
71768         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71769         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71770         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71771         Include if available.
71772         (<xalloc.h>): Include
71773         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71774         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71775         collide with FNM macros.
71776         (struct patopts): New struct.
71777         (struct exclude): Use it, as exclude patterns now come with options.
71778         (new_exclude): Support above changes.
71779         (new_exclude, add_exclude_file):
71780         Initial size must now be a power of two to simplify overflow checking.
71781         (free_exclude, fnmatch_no_wildcards): New function.
71782         (excluded_filename): No longer requires options arg, as the options
71783         are determined by add_exclude.  Now returns bool, not int.
71784         (excluded_filename, add_exclude):
71785         Add support for the fancy new exclusion options.
71786         (add_exclude, add_exclude_file): Now takes int options arg.
71787         Check for arithmetic overflow when computing sizes.
71788         (add_exclude_file): xrealloc might modify errno, so don't
71789         realloc until after errno might be used.
71790
71791         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71792         New macros.
71793         (free_exclude): New decl.
71794         (add_exclude, add_exclude_file): Now takes int options arg.
71795         (excluded_filename): No longer requires options arg, as the options
71796         are determined by add_exclude.  Now returns bool, not int.
71797
71798 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71799
71800         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71801
71802 2001-08-27  Jim Meyering  <meyering@lucent.com>
71803
71804         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71805
71806         * lib/version-etc.c (N_): Remove definition.
71807         Revert most of last change.
71808         Instead, simply don't mark the `Copyright...' string for translation.
71809         Based on advice from Paul Eggert.
71810
71811         * lib/strtoxmax.c: Tweak comment.
71812
71813 2001-08-26  Jim Meyering  <meyering@lucent.com>
71814
71815         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71816
71817         * m4/xstrtoimax.m4: New file.
71818         * m4/xstrtoumax.m4: Add comments explaining why we
71819         AC_REPLACE_FUNCS(strtol).
71820
71821 2001-08-26  Jim Meyering  <meyering@lucent.com>
71822
71823         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71824         of copyright with `%s' so translators don't get an untranslated
71825         message in 2002.
71826         (COPYRIGHT_YEAR): Define.
71827         (version_etc): Use fprintf rather than fputs.
71828         Suggestion from Ulrich Drepper.
71829
71830         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71831
71832         * lib/strtoll.c: New file, from GNU libc.
71833         * lib/xstrtoimax.c: New file.
71834
71835         * lib/xstrtol.h: Add xstrtoimax.
71836         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71837         * lib/strtoimax.c: New file.  Likewise, but first define
71838         STRTOUXMAX_SIGNED.
71839
71840         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71841         ...
71842         * lib/strtoxmax.c: ... then renamed to this.
71843
71844 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71845
71846         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71847         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71848         (jm_AC_TYPE_INTMAX_T): New macro.
71849         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71850
71851         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71852
71853         * m4/longlong.m4: Renamed from ulonglong.m4.
71854         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71855         * m4/uintmax_t.m4: Removed.
71856
71857 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71858
71859         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71860         Port to Solaris 8, where 'sed' requires a space after the 'r'
71861         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71862         Redirect output to $tmp just once.
71863
71864 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71865
71866         * lib/addext.c (<errno.h>): Include.
71867         (errno): Declare if not defined.
71868         (addext): Work correctly when pathconf returns -1 and leaves
71869         errno alone because there is no limit.  Also, work even if
71870         pathconf returns a value greater than SIZE_MAX.
71871
71872 2001-08-12  Jim Meyering  <meyering@lucent.com>
71873
71874         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71875         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71876         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71877         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71878         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71879         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71880         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71881         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71882         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71883         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71884         utime.m4, utimes.m4, xstrtoumax.m4:
71885         Quote the first argument in each use of AC_DEFUN.
71886
71887 2001-08-12  Jim Meyering  <meyering@lucent.com>
71888
71889         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71890         Simply `return getcwd (NULL, 0);'.
71891         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71892         Use 1300 as initial value for length, not PATH_MAX.
71893
71894         * lib/pathmax.h: Clean up cpp syntax.
71895
71896 2001-08-12  Jim Meyering  <meyering@lucent.com>
71897
71898         * lib/gettimeofday.c: New file.
71899         * lib/gtod.h: New file.
71900         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71901
71902 2001-08-05  Jim Meyering  <meyering@lucent.com>
71903
71904         * m4/jm-macros.m4: Require autoconf-2.52.
71905
71906 2001-08-04  Jim Meyering  <meyering@lucent.com>
71907
71908         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71909         stmt, to get in sync with glibc.
71910
71911 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71912
71913         The following changes are from gettext 0.10.39 as maintained by
71914         Bruno Haible.
71915
71916         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71917         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71918         with inverted sense.  All uses changed.
71919
71920         * lib/mbswidth.c: Don't include <limits.h>.
71921         Include <stdlib.h> and <string.h> unconditionally.
71922         (iswcntrl, mbsinit, ISCNTRL): New macros.
71923         (mbsnwidth): Use K&R style function declarations.
71924         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71925         can optimize it when MB_CUR_MAX == 1.
71926         The width of control characters is zero, not 1.
71927
71928 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71929
71930         The following changes are from gettext 0.10.39 as maintained by
71931         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71932
71933         * m4/codeset.m4: Upgrade to serial AM1.
71934         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71935         all uses changed.  Quote first arg of AC_DEFUN.
71936         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71937
71938         * m4/iconv.m4: Upgrade to serial AM2.
71939         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71940         Add --with-libconv-prefix.
71941         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71942         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71943         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71944         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71945         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71946
71947         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71948         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71949         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71950         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71951         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71952         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71953         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71954         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71955         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71956
71957         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71958         string.h any more.
71959
71960         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71961         not the default value.
71962
71963         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71964         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71965         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71966         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71967         Also check for iswcntrl, used for wcwidth fallback.
71968         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71969         to Autoconf 2.13.
71970
71971 2001-08-03  Jim Meyering  <meyering@lucent.com>
71972
71973         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71974         as it was in the original.  Reported by Paul Eggert.
71975
71976 2001-07-16  Jim Meyering  <meyering@lucent.com>
71977
71978         * m4/gettimeofday.m4: New file.
71979         Prompted by a report from Bernhard Baehr.
71980
71981 2001-07-15  Jim Meyering  <meyering@lucent.com>
71982
71983         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71984         stuff. Now it's in ../Makefile.cfg.
71985
71986 2001-07-15  Jim Meyering  <meyering@lucent.com>
71987
71988         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71989         (BUILT_SOURCES): Add unlocked-io.h.
71990         (io_functions): Define.
71991         (unlocked-io.h): New rule.
71992         (DISTCLEANFILES): Add unlocked-io.h.
71993         (all-local): Depend on unlocked-io.h, to ensure it is created.
71994
71995         * lib/unlocked-io.hin: New file
71996
71997         * lib/regex.c: Update from glibc.
71998
71999 2001-07-05  Jim Meyering  <meyering@lucent.com>
72000
72001         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
72002         recommendation.
72003         (libfetish_a_SOURCES): Put all .h files here instead.
72004         Remove a thus-exposed (better checks in automake) duplicate and
72005         two unnecessary .h files.
72006
72007 2001-07-04  Jim Meyering  <meyering@lucent.com>
72008
72009         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
72010         that generates jm-glibc-io.m4 so that it doesn't trigger any make
72011         distcheck failure.
72012
72013 2001-07-02  Jim Meyering  <meyering@lucent.com>
72014
72015         The following changes were prompted by suggestions from Bruno Haible.
72016
72017         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
72018         is now generated.
72019         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
72020         definition of EXTRA_DIST.
72021         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
72022         ensure that the generated file is created/updated whenever the list
72023         of $(unlocked_functions) is changed.
72024         (jm-glibc-io.m4): New rule.
72025         (unlocked-io.h): New rule -- currently unused.
72026
72027 2001-06-24  Jim Meyering  <meyering@lucent.com>
72028
72029         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
72030         unmatched right bracket, rather than kludging it with an extra,
72031         falsely-matching quote in a comment.  Patch by Akim Demaille.
72032
72033 2001-06-11  Jim Meyering  <meyering@lucent.com>
72034
72035         * lib/regex.c: Update from GNU libc.
72036
72037 2001-05-27  Jim Meyering  <meyering@lucent.com>
72038
72039         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
72040         Check for ut_type in struct utmp.
72041
72042 2001-05-27  Jim Meyering  <meyering@lucent.com>
72043
72044         * lib/readutmp.h (UT_TYPE): Define.
72045
72046 2001-05-24  Jim Meyering  <meyering@lucent.com>
72047
72048         * lib/argmatch.c: Include "quote.h".
72049         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
72050         quote function.  Reported by Göran Uddeborg.
72051
72052 2001-05-22  Jim Meyering  <meyering@lucent.com>
72053
72054         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
72055         now that we use the package-supplied version unconditionally.
72056         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
72057
72058 2001-05-21  Jim Meyering  <meyering@lucent.com>
72059
72060         * m4/regex.m4: Change a couple backticks to single quotes to avoid
72061         shell syntax errors.
72062
72063 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72064
72065         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
72066
72067 2001-05-20  Paul Eggert  <eggert@twinsun.com>
72068
72069         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
72070         Don't bother to check library strftime, since
72071         we'll be using our own my_strftime function anyway.
72072         Define my_strftime instead of strftime.
72073
72074 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72075
72076         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72077         which is not yet declared.
72078
72079 2001-05-15  Jim Meyering  <meyering@lucent.com>
72080
72081         * m4/regex.m4: Use proper quoting so brackets appear in the test
72082         program.
72083         Reported by, and with help from, Bruno Haible.
72084
72085 2001-05-13  Jim Meyering  <meyering@lucent.com>
72086
72087         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72088         undefined.
72089
72090 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72091
72092         dirname code cleanup.  base_name now behaves more compatibly
72093         with POSIX basename when given file names that have trailing
72094         slashes, and similarly for dir_name.  Add new primitives
72095         base_len and dir_len.  Put the directory-name-related decls
72096         into dirname.h.
72097
72098         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72099         * lib/backupfile.c (base_name): Likewise.
72100         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72101         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72102         * lib/makepath.c (strip_trailing_slashes): Likewise.
72103         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72104         ISSLASH): Likewise.
72105         * lib/rename.c (strip_trailing_slashes): Likewise.
72106         * lib/same.c (base_name): Likewise.
72107         * lib/stripslash.c (ISSLASH): Likewise.
72108
72109         * lib/addext.c: Include <dirname.h> after size_t is defined.
72110         * lib/backupfile.c: Likewise.
72111
72112         * lib/addext.c (addext): Use base_len to trim redundant
72113         trailing slashes instead of doing it ourselves.
72114         But do not trim the last slash if it is not redundant.
72115
72116         * lib/backupfile.c (find_backup_file_name,
72117         max_backup_version): Use base_len instead of rolling it ourselves.
72118         Handle the case of "" and (on DOS) "C:" correctly.
72119
72120         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72121         needed. Include <string.h>, <dirname.h>.
72122         (base_name): Allow file names ending in slashes, other than names
72123         that are all slashes.  In this case, return the basename followed
72124         by the slashes.  This is more general, and can be used in places
72125         where the original base_name purposely had an assertion failure.
72126         (base_len): New function.
72127
72128         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72129         Do not include <assert.h>; no longer needed.
72130         Include xalloc.h.
72131         (memrchr): Remove decl.
72132         (dir_name_r): Remove.
72133         (dir_len): Renamed from dirlen.  All callers changed.
72134         Rewrite in terms of base_name, for simplicity and consistency.
72135         (dir_name): Never return NULL.  All callers changed.
72136         Do not include <stdlib.h> in test program; no longer needed.
72137         return 0; is fine for test program.
72138
72139         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
72140         New macros.
72141         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
72142
72143         * lib/path-concat.c (path_concat): Use base_len to compute
72144         base length, not strlen; this means we cannot rely on memcpy
72145         to null-terminate.
72146
72147         * lib/same.c (STREQ): Remove.
72148         (same_name): Handle the case where the basename ends in trailing '/'.
72149
72150         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
72151         a slash was stripped.  Do not strip the last slash after a
72152         file system prefix.
72153
72154 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72155
72156         * lib/Makefile.am (libfetish_a_SOURCES):
72157         Add strftime.c, since we now compile it on all hosts.
72158
72159         * lib/strftime.c (my_strftime):
72160         Define to nstrftime if emacs, but only if my_strftime is not defined.
72161         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
72162         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
72163         Add one more extra argument: a nanoseconds value.
72164         All uses changed.
72165         (ns): New macro.
72166         (my_strftime function): Add %N format.
72167         (emacs_strftimeu): Renamed from emacs_strftime,
72168         with extra ut argument.
72169
72170 2001-05-09  Paul Eggert  <eggert@twinsun.com>
72171
72172         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
72173
72174 2001-04-21  Jim Meyering  <meyering@lucent.com>
72175
72176         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
72177         doesn't interfere.
72178
72179 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72180
72181         * m4/ftruncate.m4: Check for chsize.
72182         Link with ftruncate.o unconditionally if ftruncate is missing.
72183         This was required when cross-compiling to i586-mingw32msvc.
72184
72185 2001-04-08  Jim Meyering  <meyering@lucent.com>
72186
72187         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
72188         recomputed; that's necessary when the offset spans a DST transition.
72189         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
72190
72191 2001-04-02  Jim Meyering  <meyering@lucent.com>
72192
72193         * lib/regex.h, regex.c: Update from GNU libc.
72194
72195 2001-03-24  Jim Meyering  <meyering@lucent.com>
72196
72197         * m4/jm-macros.m4: Require autoconf-2.49d.
72198
72199 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
72200
72201         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
72202
72203 2001-03-19  Paul Eggert  <eggert@twinsun.com>
72204
72205         * lib/version-etc.c (version_etc_copyright): Update to 2001.
72206
72207 2001-03-17  Jim Meyering  <meyering@lucent.com>
72208
72209         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
72210         now that the version in autoconf is equivalent.
72211         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
72212
72213         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
72214         Suggestion from Akim Demaille.
72215
72216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
72217         (jm_PREREQ_TEMPNAME): New function.
72218
72219 2001-03-16  Paul Eggert  <eggert@twinsun.com>
72220
72221         * lib/tempname.c (uint64_t): Define to uintmax_t if
72222         not defined, and if UINT64_MAX is not defined.
72223         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
72224         Reported by John David Anglin.
72225
72226 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
72227
72228         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
72229         resolve alias if codeset is empty.
72230         * lib/config.charset (BeOS): Use wildcard syntax.
72231
72232 2001-03-13  Jim Meyering  <meyering@lucent.com>
72233
72234         * lib/path-concat.c (path_concat)
72235         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
72236         concatenating e.g., `C:' and `foo'.
72237         From Bruno Haible.
72238
72239 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72240
72241         * lib/localcharset.c (locale_charset): Don't use
72242         setlocale(LC_CTYPE,NULL). Don't return NULL.
72243         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
72244
72245 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
72246
72247         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
72248         support for DOS/DJGPP.
72249
72250 2001-03-01  Paul Eggert  <eggert@twinsun.com>
72251
72252         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
72253         lacks mkstemp.  Compile our own tempname.c if we compile our own
72254         mkstemp.c, as mkstemp relies on tempname.
72255
72256 2001-03-01  Jim Meyering  <meyering@lucent.com>
72257
72258         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72259         AH_VERBATIM really does output its argument verbatim.
72260
72261 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72262
72263         * lib/Makefile.am (libfetish_a_SOURCES):
72264         Add dup-safer.c, fopen-safer.c.
72265         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72266
72267         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72268         * lib/unistd-safer.h: New files.
72269
72270 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72271
72272         The mkstemp replacement is taken from glibc 2.2.2, with some
72273         portability fixes for use outside glibc, as follows:
72274
72275         * lib/tempname.c (struct_stat64): New macro.
72276         (direxists, __gen_tempname): Use it.
72277         This avoids a portability problem with Solaris 8.
72278
72279         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72280         (<stddef.h>, <stdint.h>, <string.h>):
72281         Include only if STDC_HEADERS || _LIBC.
72282         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72283         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72284         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72285         (__set_errno): Define this macro if <errno.h> doesn't.
72286         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72287         Define these macros if <stdio.h> doesn't.
72288         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72289         Define these macros if <sys/stat.h>
72290         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72291         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72292         __xstat64): Define if not _LIBC.
72293         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72294         (__gen_tempname): Invoke gettimeofday only if
72295         HAVE_GETTIMEOFDAY || _LIBC;
72296         otherwise, fall back on plain "time".
72297         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72298
72299         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72300
72301         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72302
72303 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72304
72305         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72306
72307 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72308
72309         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72310         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72311         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72312         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72313
72314 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72315
72316         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72317         Remove workaround macros for hosts that have mbrtowc but not
72318         mbstate_t, as we now insist on proper declarations for both
72319         before using mbrtowc.
72320
72321 2001-02-17  Jim Meyering  <meyering@lucent.com>
72322
72323         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72324         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72325         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72326         UnixWare 7.1.1.
72327
72328         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72329         rather than AC_CACHE_VAL.
72330
72331 2001-02-17  Jim Meyering  <meyering@lucent.com>
72332
72333         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72334         around included file name.
72335
72336         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72337
72338         * lib/strftime.c: Update from GNU libc (the only changes were to
72339         comments).
72340
72341 2001-02-17  Jim Meyering  <meyering@lucent.com>
72342
72343         * lib/regex.c: Update from libc.
72344
72345 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72346
72347         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72348         clash.
72349
72350 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72351
72352         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72353         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72354         Reported by Mark Hounschell via Paul Eggert.
72355
72356 2001-02-07  Jim Meyering  <meyering@lucent.com>
72357
72358         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72359
72360 2001-02-05  Jim Meyering  <meyering@lucent.com>
72361
72362         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72363         it includes the patch required for `large file' support with at least
72364         HP-UX's 10.20 /bin/cc.
72365
72366 2001-02-03  Jim Meyering  <meyering@lucent.com>
72367
72368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72369         AS_IF, now that it works once again (mysteriously).
72370         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72371
72372 2001-01-30  Jim Meyering  <meyering@lucent.com>
72373
72374         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72375         * m4/chown.m4: Rename conftestchown to conftest.chown.
72376         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72377         s/conftestdir2/conftest.d2/.
72378         * m4/utimes.m4: s/conftestdata/conftest.data/
72379         Inspired by Pavel Roskin's change in autoconf.
72380
72381 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72382
72383         * lib/config.charset: Update for FreeBSD 4.2.
72384
72385 2001-01-27  Jim Meyering  <meyering@lucent.com>
72386
72387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72388         a use of AS_IF.
72389         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72390
72391 2001-01-26  Jim Meyering  <meyering@lucent.com>
72392
72393         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72394         quotearg.c includes it.
72395
72396 2001-01-26  Jim Meyering  <meyering@lucent.com>
72397
72398         * lib/quotearg.c: Include stddef.h.
72399         * lib/quote.c: Include stddef.h.
72400         Reported by Axel Kittenberger.
72401
72402         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72403         line in double quotes so that it evokes a better diagnostic.
72404         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72405         Reported by Axel Kittenberger.
72406
72407 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72408
72409         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72410         as if it was a `charset'.
72411
72412 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72413
72414         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72415         has const.
72416
72417 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72418
72419         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72420         to avoid a warning.  Add back 'const' to inptr.
72421
72422 2001-01-20  Jim Meyering  <meyering@lucent.com>
72423
72424         Be sure that headers are checked before used in code compiled
72425         for the type checks.
72426         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72427         In place of that, invoke jm_CHECK_ALL_TYPES.
72428         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72429         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72430         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72431         The check for ssize_t was mistakenly run before the test for unistd.h.
72432
72433         The configure-time check for stdbool.h was missing.
72434         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72435         (jm_PREREQ_HASH): New function.
72436
72437 2001-01-17  Jim Meyering  <meyering@lucent.com>
72438
72439         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72440         for autoconf-2.49c.
72441         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72442
72443 2001-01-16  Jim Meyering  <meyering@lucent.com>
72444
72445         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72446         From Bruno Haible.
72447
72448 2001-01-14  Jim Meyering  <meyering@lucent.com>
72449
72450         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72451         foo and bar.  Create conftestdir/ in the script, not in the C code.
72452         Remove directories in the script, not in the C code.
72453         Remove conftestdir{,2} before trying to create the directory.
72454         Make the entire configure script fail if the mkdir fails.
72455
72456 2001-01-14  Jim Meyering  <meyering@lucent.com>
72457
72458         * lib/rename.c: New file.  From Volker Borchert.
72459         Include stdlib.h, string.h or strings.h, and xalloc.h.
72460         Use strip_trailing_slashes rather than open-coding it.
72461
72462 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72463
72464         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72465
72466 2001-01-03  Jim Meyering  <meyering@lucent.com>
72467
72468         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72469         of local `inptr' to avoid warning with some system declarations of
72470         iconv.
72471
72472 2001-01-02  Volker Borchert  <bt@teknon.de>
72473
72474         * m4/rename.m4: New file.
72475         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72476
72477 2001-01-01  Jim Meyering  <meyering@lucent.com>
72478
72479         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72480         even on systems with utmpx.h.  It's necessary for the declaration of
72481         utmp's ut_user member.  Reported by Andreas Jaeger.
72482
72483         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72484         available. They are required for the declarations of getgrgid and
72485         getpwuid resp.
72486         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72487         Reported by Andreas Jaeger.
72488
72489 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72490
72491         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72492         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72493         so `make install' also works in VPATH builds.
72494
72495 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72496
72497         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72498         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72499         can be used in subdirectories.
72500
72501 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72502
72503         * lib/modechange.c: Do not assume that mode_t uses the
72504         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72505         the other-execute bit of FOO even if S_IXOTH != 1.
72506
72507         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72508         WOTH, XOTH, ALLM): New macros.
72509         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72510          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72511         Use them.
72512         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72513         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72514         (mode_compile):
72515         No need to use uintmax_t; unsigned long is long enough.
72516         Don't bother to get suffix since we don't use it.
72517
72518 2000-12-26  Jim Meyering  <meyering@lucent.com>
72519
72520         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72521         better with autoheader.
72522
72523 2000-12-24  Jim Meyering  <meyering@lucent.com>
72524
72525         * lib/hash.c (is_prime): Return explicit boolean values.
72526         (hash_get_first): Return NULL to appease Irix5.6's 89.
72527         Reported by Nelson Beebe.
72528
72529 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72530
72531         * lib/localcharset.c (locale_charset): Add support for Win32.
72532
72533 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72534
72535         * lib/physmem.h, lib/physmem.c: New files.
72536
72537         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72538         (noinst_HEADERS): Add physmem.h.
72539
72540         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72541         't' for compatibility with Solaris 8 sort.
72542
72543 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72544
72545         * lib/config.charset: Add support for BeOS.
72546
72547 2000-12-17  Jim Meyering  <meyering@lucent.com>
72548
72549         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72550         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72551
72552 2000-12-16  Jim Meyering  <meyering@lucent.com>
72553
72554         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72555         N and M) would have treated it like `chown N:N FILE'.
72556
72557         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72558
72559 2000-12-16  Jim Meyering  <meyering@lucent.com>
72560
72561         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72562         SHELLS_FILE to a file name that's useful on djgpp systems.
72563         Include stdlib.h.
72564         (ADDITIONAL_DEFAULT_SHELLS): Define.
72565         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72566         Based mostly on a patch from Prashant TR.
72567
72568 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72569
72570         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72571         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72572         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72573
72574 2000-12-08  Andreas Schwab  <schwab@suse.de>
72575
72576         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72577         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72578
72579 2000-12-07  Jim Meyering  <meyering@lucent.com>
72580
72581         * lib/stripslash.c (ISSLASH): Define.
72582         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72583         `/'.
72584         From Prashant TR.
72585
72586         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72587         (dir_name_r): Declare this function as static.
72588         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72589         manifest itself on a name containing a mix of slashes and
72590         backslashes.
72591         Make this function work with names starting with a DOS-style
72592         drive letter and colon prefix.
72593         (dir_name): Append `.' if necessary.
72594         Based mostly on patches from Prashant TR and Eli Zaretskii.
72595
72596         * lib/dirname.h (dir_name_r): Remove prototype.
72597
72598 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72599
72600         * m4/off_t-format.m4: Remove this file.
72601         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72602
72603 2000-12-06  Jim Meyering  <meyering@lucent.com>
72604
72605         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72606         replacement strtoull, we may well need the replacement strtoul, too.
72607         Check for declarations of strtoul and strtoull.
72608         Check for strtol.  Mainly as a cue to cause automake to include
72609         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72610         Check for limits.h -- strtol.c needs it.
72611
72612 2000-12-05  Jim Meyering  <meyering@lucent.com>
72613
72614         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72615
72616 2000-12-04  Jim Meyering  <meyering@lucent.com>
72617
72618         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72619         Also include memory.h, stdlib.h, unistd.h if appropriate.
72620         Reported by Andreas Jaeger (conflicting declaration of malloc).
72621
72622 2000-12-02  Jim Meyering  <meyering@lucent.com>
72623
72624         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72625         * m4/jm-macros.m4 (jm_MACROS): require it.
72626
72627 2000-12-02  Jim Meyering  <meyering@lucent.com>
72628
72629         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72630
72631 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72632
72633         * lib/memrchr.c: Include <config.h> before any system include file.
72634
72635 2000-11-30  Jim Meyering  <meyering@lucent.com>
72636
72637         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72638
72639 2000-11-30  Jim Meyering  <meyering@lucent.com>
72640
72641         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72642
72643 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72644
72645         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72646
72647 2000-11-26  Jim Meyering  <meyering@lucent.com>
72648
72649         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72650
72651 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72654         size of (size_t) -1; it's not portable.
72655
72656 2000-11-17  Jim Meyering  <meyering@lucent.com>
72657
72658         * lib/strstr.c: Update from GNU libc.
72659
72660 2000-11-17  Akim Demaille  <akim@epita.fr>
72661
72662         * lib/obstack.h: Formatting changes.
72663         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72664         prevent type checking.
72665         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72666         cast the value to (void *): assigning a `foo *' to a `void *'
72667         variable is valid.
72668         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72669
72670 2000-11-16  Jim Meyering  <meyering@lucent.com>
72671
72672         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72673
72674 2000-11-11  Jim Meyering  <meyering@lucent.com>
72675
72676         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72677
72678 2000-11-10  Jim Meyering  <meyering@lucent.com>
72679
72680         * lib/obstack.h: Update from GNU libc.
72681         * lib/obstack.c: Likewise.
72682
72683 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72684
72685         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72686
72687 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72688
72689         * lib/getusershell.c (setusershell): Use rewind rather than
72690         fseek/fseeko, to avoid configuration hassles with fseeko.
72691         Don't bother opening SHELLS_FILE if shellstream is NULL;
72692         it's not necessary.
72693
72694 2000-11-05  Jim Meyering  <meyering@lucent.com>
72695
72696         * lib/makepath.h (make_dir): Declare.
72697         * lib/makepath.c (make_dir): Remove `static' attribute.
72698         Tweak a comment.
72699
72700 2000-11-04  Jim Meyering  <meyering@lucent.com>
72701
72702         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72703
72704 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72705
72706         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72707         last one in a bucket, advance to the next bucket.
72708
72709 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72710
72711         * lib/fnmatch.c: Do not comment out all the code if we are using
72712         the GNU C library, because in some cases we are replacing buggy
72713         code in the GNU C library itself.
72714
72715 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72716
72717         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72718         (regex_compile): Catch bogus \(\1\).
72719
72720 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72721
72722         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72723         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72724         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72725
72726 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72727
72728         * lib/error.h, getline.h, modechange.h:
72729         Remove "2000" from Copyright line, as the file hasn't been
72730         changed this year other than in the copyright notice.
72731
72732         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72733         was changed this year.
72734
72735 2000-10-29  Jim Meyering  <meyering@lucent.com>
72736
72737         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72738         renaming.
72739         * m4/ls-mntd-fs.m4: Likewise
72740
72741 2000-10-29  Jim Meyering  <meyering@lucent.com>
72742
72743         * lib/xstat.in: Fix grammar in comment.
72744
72745 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72746
72747         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72748         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72749         doesn't define __restrict_arr.
72750
72751 2000-10-28  Jim Meyering  <meyering@lucent.com>
72752
72753         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72754         (jm_PREREQ_MEMCHR): New function.
72755
72756 2000-10-28  Jim Meyering  <meyering@lucent.com>
72757
72758         * lib/memchr.c: Update from libc.
72759         Adjust for portability:
72760         [HAVE_STDLIB_H]: Include stdlib.h.
72761         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72762         Undef __memchr, too.
72763         [!weak_alias]: Define __memchr to memchr.
72764
72765         * lib/regex.c: Update from libc.
72766         * lib/regex.h: Likewise.
72767         * lib/getopt1.c: Likewise.
72768         * lib/memcmp.c: Likewise.
72769
72770         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72771         Avoid using fseek, when possible -- it's broken by design.
72772         Patch by Ulrich Drepper.
72773
72774 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72775
72776         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72777         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72778         Giving in to popular pressure to shut up the compiler with casts.
72779
72780 2000-10-26  Jim Meyering  <meyering@lucent.com>
72781
72782         * lib/strftime.c: Update from libc.
72783
72784 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72785
72786         * regex.c: More `unsigned char' -> `re_char' changes.
72787         Also change several `int' into `re_wchar_t'.
72788         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72789         (PUSH_FAILURE_POINTER): Don't cast any more.
72790         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72791         We want GCC to complain, since this piece of code makes
72792         re_match non-reentrant, which *should* be fixed.
72793         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72794         (EXTEND_BUFFER): Use RETALLOC.
72795         (SET_LIST_BIT): Don't cast.
72796         (re_wchar_t): New type.
72797         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72798         that those two functions will always properly return.
72799         (IMMEDIATE_QUIT_CHECK): Cast to void.
72800         (analyse_first): Use recursion rather than an explicit stack.
72801         (re_compile_fastmap): Can't fail anymore.
72802         (re_search_2): Don't check re_compile_fastmap for failure.
72803         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72804         Now also sets the new value (passed in a new argument).
72805         (re_match_2_internal): Use it.
72806         Also, use a new var `reg' of type size_t when looping through regs
72807         rather than reuse the inappropriate `mcnt'.
72808
72809 2000-10-25  Jim Meyering  <meyering@lucent.com>
72810
72811         * lib/obstack.c: Update from libc.
72812
72813 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72814
72815         * regex.c (regex_compile): Change the way of handling a range from
72816         a char less than 256 to a char not less than 256.
72817
72818 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72819
72820         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72821         NT-Emacs only.
72822         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72823         so that re_search functions only quit when callers expect them to.
72824
72825 2000-10-23  Jim Meyering  <meyering@lucent.com>
72826
72827         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72828         wrong.  That set_locale call must not have any side effects.
72829         From Paul Eggert.
72830
72831 2000-10-22  Jim Meyering  <meyering@lucent.com>
72832
72833         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72834         [CYCLIC]: Remove now-unused definition.
72835
72836         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72837         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72838         Suggestion from Ulrich Drepper.
72839
72840 2000-10-21  Jim Meyering  <meyering@lucent.com>
72841
72842         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72843         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72844         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72845
72846 2000-10-21  Jim Meyering  <meyering@lucent.com>
72847
72848         * lib/dirname.c (memrchr): Declare if necessary.
72849         (dir_name): Remove the restriction that there be no
72850         trailing slashes.  Now, this code skips past them, effectively
72851         ignoring them.
72852         [TEST_DIRNAME] (main): New unit tests.
72853
72854         * lib/memrchr.c: New file from GNU libc.
72855         Undef __memrchr, too.
72856         [!weak_alias]: Define __memrchr to memrchr.
72857         Guard weak_alias use with `#ifdef weak_alias'.
72858
72859 2000-10-21  Jim Meyering  <meyering@lucent.com>
72860
72861         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72862         (dir_name): Use dir_name_r.
72863         * lib/dirname.h (dir_name_r): Declare it.
72864
72865 2000-10-17  Jim Meyering  <meyering@lucent.com>
72866
72867         * lib/quote.h (PARAMS): Define and use.
72868         Reported by Akim Demaille.
72869
72870         * lib/getopt.c: Update from libc.
72871
72872 2000-10-16  Jim Meyering  <meyering@lucent.com>
72873
72874         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72875         setlocale.
72876         From Jan Fedak.
72877
72878 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72879
72880         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72881
72882 2000-09-25  Jim Meyering  <meyering@lucent.com>
72883
72884         * lib/md5.h (rol): Define (from GnuPG).
72885
72886         * lib/sha.c: Give credit (GnuPG) where due.
72887         (M): Use rol rather than open-coding it.
72888         Add a FIXME comment.
72889
72890 2000-09-21  Jim Meyering  <meyering@lucent.com>
72891
72892         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72893         Reported by Michael Stone.
72894
72895 2000-09-20  Jim Meyering  <meyering@lucent.com>
72896
72897         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72898         (noinst_HEADERS): Add sha.h.
72899         Based on code from Scott G. Miller and from GnuPG.
72900
72901 2000-09-18  Jim Meyering  <meyering@lucent.com>
72902
72903         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72904         LIBS. Otherwise, everyone ends up linking with -lelf for some
72905         configurations.
72906         Reported by Mike Stone.
72907
72908 2000-09-15  Jim Meyering  <meyering@lucent.com>
72909
72910         * lib/regex.c: Update from libc.
72911
72912 2000-09-10  Jim Meyering  <meyering@lucent.com>
72913
72914         * lib/getopt.c (_getopt_internal): Update from glibc.
72915
72916 2000-09-09  Jim Meyering  <meyering@lucent.com>
72917
72918         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72919         think it should be used as a general replacement for isascii.
72920         * lib/fnmatch.c: Likewise.
72921         * lib/mbswidth.c: Likewise
72922         * lib/regex.c: Likewise.
72923
72924         Don't use atoi.
72925         * lib/userspec.c: Include sys/param.h and limits.h.
72926         Include xstrtol.h.
72927         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72928         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72929         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72930         UID, GID.  Check range.
72931
72932 2000-09-06  Jim Meyering  <meyering@lucent.com>
72933
72934         * lib/getopt.c (_getopt_internal): Update from glibc.
72935
72936 2000-08-30  Jim Meyering  <meyering@lucent.com>
72937
72938         * lib/strftime.c: Merge in changes from GNU libc.
72939
72940 2000-08-26  Jim Meyering  <meyering@lucent.com>
72941
72942         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72943         * m4/fpending.m4: New file.
72944
72945 2000-08-26  Jim Meyering  <meyering@lucent.com>
72946
72947         * lib/closeout.c: Include "__fpending.h".
72948         (close_stdout_status): Return right away if there's nothing to flush.
72949
72950         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72951         * lib/__fpending.c: New file.
72952         * lib/__fpending.h: New file.
72953
72954 2000-08-20  Jim Meyering  <meyering@lucent.com>
72955
72956         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72957         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72958         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72959
72960 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72961
72962         Improve fileutils installation on systems where running
72963         programs (like install) can't be unlinked.
72964         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72965         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72966
72967 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72968
72969         Standardize on "memory exhausted" instead of "Memory exhausted"
72970         or "virtual memory exhausted".
72971         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72972         "virtual memory exhausted".
72973         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72974         our own message.
72975         * lib/userspec.c (parse_user_spec): Likewise.
72976         * lib/bumpalloc.h: comment fix
72977         * lib/same.c, userspec.c: Include xalloc.h.
72978
72979         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72980         not char *const and pointing to a constant array.
72981         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72982         (xrealloc): Comment fix.
72983
72984         * lib/userspec.c (parse_user_spec):
72985         Don't translate a message until just before returning,
72986         to avoid unnecessary translation.
72987
72988 2000-08-07  Jim Meyering  <meyering@lucent.com>
72989
72990         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72991         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72992         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72993         getgroups.c, gethostname.c, getopt.h, group-member.c,
72994         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72995         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72996         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72997         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72998         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72999         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
73000         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
73001         yesno.c: Back out Copyright date changes for each file with no change
73002         this year.  This eases coordination with other programs using the same
73003         source code modules.  From Paul Eggert.
73004
73005 2000-08-06  Paul Eggert  <eggert@twinsun.com>
73006
73007         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
73008         not char, for compatibility with glibc 2.1.3 strftime.c.
73009
73010 2000-08-03  Greg McGary  <greg@mcgary.org>
73011
73012         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
73013         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
73014         (EXTEND_BUFFER): Use them.
73015
73016 2000-08-01  Jim Meyering  <meyering@lucent.com>
73017
73018         * lib/dirname.c (ISSLASH): Define.
73019         (BACKSLASH_IS_PATH_SEPARATOR): Define.
73020         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
73021         both `\' and `/' may be use as path separators.
73022         Based on a patch from Prashant TR.
73023
73024 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73025
73026         * lib/quotearg.c (quotearg_n_options): Don't make the initial
73027         slot vector a constant, since it might get modified.
73028
73029 2000-07-31  Jim Meyering  <meyering@lucent.com>
73030
73031         * lib/xmalloc.c: Use `virtual memory exhausted', not
73032         `Memory exhausted'.
73033         * lib/obstack.c (print_and_abort): Likewise.
73034
73035 2000-07-30  Paul Eggert  <eggert@twinsun.com>
73036
73037         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
73038         buffer, so that the caller can always quote one small
73039         component of a "memory exhausted" message in slot 0.
73040         From a suggestion by Jim Meyering.
73041
73042 2000-07-30  Jim Meyering  <meyering@lucent.com>
73043
73044         * lib/makepath.c (make_path): Quote the other instance, too.
73045
73046         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
73047         (STATIC_BUF_SIZE): Define.
73048         (quotearg_n_options): Use only statically allocated storage when
73049         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
73050         than STATIC_BUF_SIZE.
73051
73052 2000-07-29  Jim Meyering  <meyering@lucent.com>
73053
73054         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
73055         * lib/dirname.c (dir_name): Likewise.
73056
73057         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
73058         `/'.
73059
73060         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
73061         (dir_name): Assert that there are no trailing slashes.
73062
73063 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
73064
73065         * lib/mbswidth.h (mbswidth): Add a flags argument.
73066         (mbswidth): New declaration.
73067         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
73068         * lib/mbswidth.c (mbswidth): Add a flags argument.
73069         (mbsnwidth): New function.
73070
73071 2000-07-24  Jim Meyering  <meyering@lucent.com>
73072
73073         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
73074
73075 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73076
73077         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73078
73079 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73080
73081         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73082         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73083         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73084         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73085         invoke multibyte primitives.
73086
73087 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73088
73089         * lib/quotearg.c:
73090         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73091         so that mbstate_t is always defined.
73092
73093         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73094         be 1 in at least one GCC installation, and this configuration
73095         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73096         performance on hosts that have mbrtowc but have only unibyte
73097         locales, but I assume these hosts are rare.
73098
73099 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73100
73101         * lib/mbswidth.c (_XOPEN_SOURCE):
73102         Don't define; this causes problems on Solaris 7.
73103         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73104
73105 2000-07-23  Jim Meyering  <meyering@lucent.com>
73106
73107         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73108         too: getgrgid, getpwuid, getuid.
73109
73110 2000-07-23  Jim Meyering  <meyering@lucent.com>
73111
73112         * lib/basename.c (base_name): Add an assertion.
73113
73114 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73115
73116         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73117         shadow its mbsinit function.
73118
73119 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73120
73121         * lib/mbswidth.h: New file.
73122         * lib/mbswidth.c: New file.
73123         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73124         (noinst_HEADERS): Add mbswidth.h.
73125
73126 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73127
73128         * lib/config.charset: Add support for FreeBSD. Improve support for
73129         HP-UX and IRIX 6.
73130
73131 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
73132
73133         * m4/mbswidth.m4: New file.
73134         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
73135
73136 2000-07-15  Jim Meyering  <meyering@lucent.com>
73137
73138         * lib/makepath.c: Include quote.h.
73139         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
73140         corresponding argument in a `quote (...)' call.
73141         Give better diagnostics.
73142
73143         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
73144         (noinst_HEADERS): Add quote.h.
73145
73146         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
73147         from tar's src/misc.c.
73148         * lib/quote.h: New file.  Prototypes for same.
73149
73150 2000-07-14  Paul Eggert  <eggert@twinsun.com>
73151
73152         From a suggestion by Bruno Haible.
73153         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
73154         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
73155         to decide whether to define the BeOS workaround macro;
73156         this adjusts to the change to AC_MBSTATE_T.
73157
73158 2000-07-14  Jim Meyering  <meyering@lucent.com>
73159
73160         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
73161         jm_AC_TYPE_UINTMAX_T.
73162
73163 2000-07-13  Paul Eggert  <eggert@twinsun.com>
73164
73165         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
73166
73167         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
73168         quotearg_buffer_restyled): Add support for
73169         clocale_quoting_style.  Undo previous change to
73170         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
73171         and "{RIGHT QUOTATION MARK}" msgids.
73172
73173 2000-07-10  Paul Eggert  <eggert@twinsun.com>
73174
73175         From a suggestion by Bruno Haible.
73176         * m4/mbstate_t.m4 (AC_MBSTATE_T):
73177         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
73178         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
73179         and mbstate_t, to a single-part test that simply defines mbstate_t.
73180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
73181         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
73182
73183 2000-07-10  Jim Meyering  <meyering@lucent.com>
73184
73185         * m4/strerror_r.m4: Mirror the correction made in autoconf.
73186
73187         * m4/gnu-source.m4: Output to confdefs.h directly.
73188         Suggestion from Akim Demaille.
73189
73190 2000-07-09  Paul Eggert  <eggert@twinsun.com>
73191
73192         The old behavior of quoting `like this' doesn't look good with
73193         newer, ISO-style fonts.  See:
73194         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
73195
73196         Instead, quote "like this" by default.  Let the translator
73197         tailor the locale-specific quoting behavior by providing
73198         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
73199
73200         * lib/quotearg.c (N_): New macro.
73201         (gettext_default): New function.
73202         (quotearg_buffer_restyled): Use
73203         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
73204         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
73205
73206 2000-07-09  Jim Meyering  <meyering@lucent.com>
73207
73208         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
73209         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
73210
73211         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
73212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
73213
73214 2000-07-09  Jim Meyering  <meyering@lucent.com>
73215
73216         * lib/Most files: Update copyright dates to include 2000.
73217
73218 2000-07-08  Jim Meyering  <meyering@lucent.com>
73219
73220         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
73221         if not defined.
73222         (xgethostname): Remove now-unnecessary #ifdef.
73223         Move declaration of `err' into loop where it's used.
73224
73225 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73226         and Bruno Haible  <haible@clisp.cons.org>
73227
73228         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
73229         only if the test for an object-type mbstate_t fails.  This
73230         prevents us from mistakenly reporting that mbstate_t is a
73231         system object type after we "#define mbstate_t int" to work
73232         around its lack.
73233
73234 2000-07-05  Paul Eggert  <eggert@twinsun.com>
73235         and Bruno Haible  <haible@clisp.cons.org>
73236
73237         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
73238
73239 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73240
73241         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
73242         to strerror_r.
73243         Include <ctype.h> for use of isalpha.
73244
73245 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73246
73247         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
73248         by allocating a larger buffer. Test the gethostname return value for
73249         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
73250         returns an error and ENAMETOOLONG isn't defined.
73251
73252 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
73253
73254         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73255         dimension.
73256
73257 2000-07-04  Jim Meyering  <meyering@lucent.com>
73258
73259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73260         of the deprecated AC_CHECKING.
73261
73262 2000-07-04  Jim Meyering  <meyering@lucent.com>
73263
73264         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73265         Reported by Bruno Haible.
73266
73267 2000-07-04  Jim Meyering  <meyering@lucent.com>
73268
73269         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73270         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73271         lacks mbrtowc.
73272
73273 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73274
73275         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73276         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73277
73278 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73279         and Bruno Haible  <haible@clisp.cons.org>
73280
73281         * lib/quotearg.c (mbrtowc):
73282         Assign to *pwc, and return 1 only if result is nonzero.
73283         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73284
73285 2000-07-03  Jim Meyering  <meyering@lucent.com>
73286
73287         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73288
73289 2000-07-03  Jim Meyering  <meyering@lucent.com>
73290
73291         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73292         This is necessary to get a definition of e.g., UTMP_FILE on
73293         HP-UX 10.20.
73294         From Bob Proulx.
73295
73296 2000-07-02  Jim Meyering  <meyering@lucent.com>
73297
73298         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73299
73300         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73301         AC_LIBOBJ(function_name).
73302         * m4/chown.m4: Likewise.
73303         * m4/fnmatch.m4: Likewise.
73304         * m4/ftruncate.m4: Likewise.
73305         * m4/getgroups.m4: Likewise.
73306         * m4/getline.m4: Likewise.
73307         * m4/group-member.m4: Likewise.
73308         * m4/jm-macros.m4: Likewise.
73309         * m4/lstat.m4: Likewise.
73310         * m4/malloc.m4: Likewise.
73311         * m4/memcmp.m4: Likewise.
73312         * m4/nanosleep.m4: Likewise.
73313         * m4/putenv.m4: Likewise.
73314         * m4/realloc.m4: Likewise.
73315         * m4/regex.m4: Likewise.
73316         * m4/stat.m4: Likewise.
73317         * m4/strftime.m4: Likewise.
73318
73319 2000-07-02  Jim Meyering  <meyering@lucent.com>
73320
73321         * lib/quotearg.c (mbstate_t): Don't define here.
73322
73323 2000-07-02  Jim Meyering  <meyering@lucent.com>
73324
73325         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73326
73327 2000-07-01  Jim Meyering  <meyering@lucent.com>
73328
73329         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73330
73331 2000-07-01  Jim Meyering  <meyering@lucent.com>
73332
73333         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73334         problem.
73335
73336 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73337
73338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73339         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73340
73341 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73342
73343         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73344         per change in ../m4/ls-mntd-fs.m4.
73345         (read_filesystem_list): Ignore symbolic links.
73346
73347 2000-06-29  Jim Meyering  <meyering@lucent.com>
73348
73349         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73350         for declaration of strcmp.
73351
73352         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73353
73354         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73355         Avoid warning by casting result to `char *' to remove `const'.
73356
73357 2000-06-28  Jim Meyering  <meyering@lucent.com>
73358
73359         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73360         included by quotearg.c, for which we perform this test.  From
73361         Bruno Haible.
73362
73363 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73364
73365         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73366         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73367         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73368
73369 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73370
73371         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73372
73373 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73374
73375         savedir now sets errno on failure and invokes xmalloc to get memory.
73376         Fix a couple of other minor bugs while we're at it.
73377
73378         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73379         (NAMLEN): Remove macro.
73380         (malloc, realloc): Remove decls.
73381         (stpcpy): Likewise.
73382         ("xalloc.h"): Include.
73383         (NAME_SIZE_DEFAULT): New macro.
73384         (savedir): Use xmalloc / xrealloc to allocate memory.
73385         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73386         Skip "" directory entries.
73387         Use strlen to calculate directory entry length, since the old method
73388         is rarely used these days and isn't worth supporting.
73389         Don't use a pointer after freeing it.
73390         Check for integer overflow when calculating allocation size.
73391         Use memcpy to copy entries, instead of stpcpy.
73392         Set errno properly when returning NULL.
73393         Check for readdir error.
73394
73395 2000-06-26  Jim Meyering  <meyering@lucent.com>
73396
73397         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73398
73399 2000-06-25  Jim Meyering  <meyering@lucent.com>
73400
73401         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73402         Linux header bug when _XOPEN_SOURCE is defined to 500.
73403
73404 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73405
73406         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73407         deficiency.
73408
73409 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73410
73411         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73412         Include xalloc.h.
73413         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73414
73415 2000-06-24  Jim Meyering  <meyering@lucent.com>
73416
73417         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73418         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73419         for which strerror does return char*, but which lacks a conveniently
73420         accessible declaration of the function.  If the compile-test says
73421         strerror_r doesn't work, then resort to a `run'-test that works on
73422         BeOS and segfaults on DEC Unix.
73423
73424 2000-06-24  Jim Meyering  <meyering@lucent.com>
73425
73426         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73427
73428 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73429
73430         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73431         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73432
73433 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73434
73435         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73436         (mbrtowc, mbstate_t): Define substitutes if
73437         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73438         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73439         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73440
73441 2000-06-23  Jim Meyering  <meyering@lucent.com>
73442
73443         * m4/afs.m4: Add missing AC_MSG_RESULT.
73444         Reported by Bruno Haible.
73445
73446         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73447         Suggestion from Bruno Haible.
73448
73449 2000-06-23  Jim Meyering  <meyering@lucent.com>
73450
73451         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73452
73453 2000-06-21  Jim Meyering  <meyering@lucent.com>
73454
73455         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73456
73457 2000-06-21  Jim Meyering  <meyering@lucent.com>
73458
73459         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73460         (noinst_HEADERS): Add getstr.h.
73461
73462         * lib/getline.c (getstr): Move into a separate file.
73463         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73464         the following changes: new parameter, delim2; both delim[12]
73465         parameters have type `int', not `char'.  The latter would lose
73466         with 8-bit delimiters.
73467         * lib/getstr.h: New file.
73468
73469 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73470
73471         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73472         than 1024, return a memory chunk of least possible size, instead
73473         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73474         Use free/xmalloc instead of xrealloc to avoid copying for very long
73475         paths.
73476
73477 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73478
73479         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73480         the empty string.
73481
73482 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73483
73484         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73485         address, not strdup.  Include <stdlib.h> and don't declare free().
73486
73487 2000-06-19  Jim Meyering  <meyering@lucent.com>
73488
73489         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73490
73491 2000-06-18  Jim Meyering  <meyering@lucent.com>
73492
73493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73494
73495         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73496         `checking whether...' message to be consistent with that of the
73497         lstat test.
73498
73499 2000-06-18  Jim Meyering  <meyering@lucent.com>
73500
73501         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73502         Besides, these days every porting target provides a mkdir function.
73503
73504         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73505         needed. (this snippet comes from src/system.h).
73506
73507 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73508
73509         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73510
73511 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73512
73513         * lib/human.c (adjust_value): New function.
73514         (human_readable_inexact): Apply rounding style even when
73515         printing approximate values.
73516
73517 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73518
73519         * lib/human.c (human_readable_inexact): Allow an input block
73520         size that is not a multiple of the output block size, and vice versa.
73521         Reported by Piergiorgio Sartor.
73522
73523 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73524
73525         * lib/getdate.y (get_date): Apply relative times after time
73526         zone indicator, not before.  Reported by Todd A. Jacobs.
73527
73528 2000-06-13  Jim Meyering  <meyering@lucent.com>
73529
73530         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73531
73532         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73533
73534 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73535
73536         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73537
73538 2000-06-12  Jim Meyering  <meyering@lucent.com>
73539
73540         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73541         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73542         optional argument.
73543         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73544         the optional argument, `lib'.
73545
73546 2000-06-08  Jim Meyering  <meyering@lucent.com>
73547
73548         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73549
73550 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73551
73552         Rewrite largefile configuration so that we don't need to run
73553         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73554         AC_CANONICAL_HOST in configure.in -- jmm]
73555
73556         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73557         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73558         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73559         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73560         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73561         All uses changed.
73562         Instead of inspecting the output of getconf, try to compile the
73563         test program without and with the macro definition.
73564         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73565         for getconf.  Instead, check for the needed flags by compiling
73566         test programs.
73567
73568 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73569
73570         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73571
73572 2000-06-04  Jim Meyering  <meyering@lucent.com>
73573
73574         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73575         SunOS 4.1.4 for which gid_t is an unsigned type.
73576
73577 2000-06-03  Jim Meyering  <meyering@lucent.com>
73578
73579         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73580         now that autoconf requires that.
73581
73582         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73583         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73584         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73585
73586 2000-06-03  Jim Meyering  <meyering@lucent.com>
73587
73588         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73589
73590 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73591
73592         * m4/glibc21.m4: New file.
73593         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73594
73595 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73596
73597         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73598         newer, don't install charset.alias.
73599         * lib/config.charset: Change the Linux/glibc rules so they become empty
73600         on glibc-2.1 or newer.
73601
73602 2000-06-02  Jim Meyering  <meyering@lucent.com>
73603
73604         * lib/mountlist.c: Back out last change.  Instead, do this...
73605         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73606         me_dummy member using the same `ignore'-testing code.
73607         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73608         fs_type strings.
73609         From Mark D. Roth.
73610
73611 2000-05-29  Jim Meyering  <meyering@lucent.com>
73612
73613         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73614         mounts with the `ignore' attribute.  Based on a patch from
73615         Mark D. Roth.
73616
73617 2000-05-28  Jim Meyering  <meyering@lucent.com>
73618
73619         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73620         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73621         * m4/stat.m4: Likewise.
73622         * m4/lstat.m4: Likewise.
73623         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73624
73625         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73626         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73627
73628 2000-05-26  Jim Meyering  <meyering@lucent.com>
73629
73630         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73631
73632 2000-05-24  Jim Meyering  <meyering@lucent.com>
73633
73634         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73635         autoconf requires that.
73636         * m4/lib-check.m4: Likewise.
73637         * m4/jm-macros.m4: Likewise.
73638         * m4/strftime.m4: Likewise.
73639
73640         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73641         AC_CHECK_DECLS, now that autoconf requires that.
73642
73643 2000-05-22  Jim Meyering  <meyering@lucent.com>
73644
73645         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73646         * m4/lstat.m4: Likewise.
73647
73648 2000-05-22  Jim Meyering  <meyering@lucent.com>
73649
73650         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73651
73652 2000-05-20  Jim Meyering  <meyering@lucent.com>
73653
73654         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73655         (jm_PREREQ): Use it.
73656
73657 2000-05-18  Jim Meyering  <meyering@lucent.com>
73658
73659         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73660         back, too, since it may have been modified by allocate_entry.
73661         (hash_delete): Rewrite to use neither the assignment operator
73662         nor the comma operator in an if-expression.
73663
73664 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73665
73666         * lib/closeout.c:
73667         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73668         Remove; no longer needed.
73669         "quotearg.h": Add include.
73670         (file_name): Do not bother to explicitly initialize to NULL; it's less
73671         efficient on some hosts.
73672         (close_stdout_status): Remove test as to whether stdout was already
73673         closed; it breaks for the case "echo x | sort >&-".
73674         Quote file name colons.
73675         Do not assume that _("write error") lacks format strings.
73676
73677 2000-05-15  Jim Meyering  <meyering@lucent.com>
73678
73679         * lib/version-etc.c (version_etc_copyright): Update the copyright
73680         string used in all --version output.
73681
73682 2000-05-14  Jim Meyering  <meyering@lucent.com>
73683
73684         * lib/closeout.c (close_stdout_set_file_name): New function.
73685         (close_stdout_status): Use new file-scoped global.
73686         Return right away if fstat says the stdout file descriptor is invalid.
73687         * lib/closeout.h (close_stdout_set_file_name): Declare.
73688
73689 2000-05-10  Jim Meyering  <meyering@lucent.com>
73690
73691         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73692         (close_stdout_set_status): New function.
73693         * lib/closeout.h (close_stdout_set_status): Declare.
73694
73695 2000-05-09  Jim Meyering  <meyering@lucent.com>
73696
73697         * m4/gettext.m4: Rename this...
73698         * m4/libintl.m4: ...to this.
73699
73700 2000-05-08  Jim Meyering  <meyering@lucent.com>
73701
73702         * lib/long-options.c: Don't include closeout.h.
73703         (parse_long_options): Don't call close_stdout for --version.
73704
73705 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73706
73707         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73708         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73709         2.1.3 bug.  This avoids a clash when files like regex.c define
73710         _GNU_SOURCE.
73711
73712 2000-05-06  Jim Meyering  <meyering@lucent.com>
73713
73714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73715         (AC_REPLACE_FUNCS): Add strnlen.
73716
73717         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73718         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73719
73720         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73721         AC_SEARCH_LIBS call for nanosleep.
73722         (LIB_NANOSLEEP): Set and AC_SUBST.
73723
73724 2000-05-06  Jim Meyering  <meyering@lucent.com>
73725
73726         * lib/strnlen.c: Undefine __strnlen and strnlen.
73727         [!weak_alias]: Define __strnlen to strnlen.
73728
73729         * lib/atexit.c: New file, from libiberty.
73730
73731 2000-05-06  Jim Meyering  <meyering@lucent.com>
73732
73733         * lib/closeout.c (close_stdout_status): Also check for errors on the
73734         stderr stream.
73735
73736 2000-05-05  Jim Meyering  <meyering@lucent.com>
73737
73738         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73739         AC_SEARCH_LIBS call for clock_gettime.
73740         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73741
73742         * m4/search-libs.m4: Update from autoconf.
73743
73744         su doesn't work on Solaris 2.6.
73745         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73746         <shadow.h>.  Reported by Dragos Harabor.
73747
73748 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73749
73750         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73751         memcpy instead of xmalloc, xrealloc, path_concat.
73752         (locale_charset): Treat empty environment variables as absent.
73753         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73754
73755 2000-05-04  Jim Meyering  <meyering@lucent.com>
73756
73757         * lib/getopt.c: Update from glibc.
73758         * lib/obstack.c: Likewise.
73759         * lib/obstack.h: Likewise.
73760         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73761         file
73762
73763         * lib/regex.h: Likewise.
73764         * lib/strndup.c: Likewise.
73765         * lib/strnlen.c: New file, from glibc.
73766
73767 2000-05-03  Jim Meyering  <meyering@lucent.com>
73768
73769         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73770
73771 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73772
73773         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73774         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73775         compile-time test, rather than inspecting host and OS, to
73776         decide whether to define _LARGEFILE_SOURCE.
73777
73778 2000-05-01  Jim Meyering  <meyering@lucent.com>
73779
73780         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73781
73782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73783         Based on a patch from Bruno Haible.
73784
73785 2000-05-01  Jim Meyering  <meyering@lucent.com>
73786
73787         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73788
73789 2000-04-29  Jim Meyering  <meyering@lucent.com>
73790
73791         * lib/path-concat.c: Declare strdup only if it's not defined.
73792         * lib/canon-host.c: Likewise.
73793
73794 2000-04-28  Jim Meyering  <meyering@lucent.com>
73795
73796         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73797         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73798         is included first, then limits.h is included by locale.h by libintl.h.
73799         From John David Anglin.
73800
73801 2000-04-25  Jim Meyering  <meyering@lucent.com>
73802
73803         * lib/makepath.c (S_IRWXUGO): Define.
73804         (make_path): Always perform explicit chmod if MODE specifies any
73805         of the `special' permission bits.  Prompted by a bug report against
73806         install from Mate Wierdl and Joost van Baal.
73807
73808 2000-04-18  Jim Meyering  <meyering@lucent.com>
73809
73810         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73811         (jm_PREREQ): Use it.
73812
73813 2000-04-18  Jim Meyering  <meyering@lucent.com>
73814
73815         * lib/README: New file.
73816
73817         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73818         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73819
73820 2000-04-17  Jim Meyering  <meyering@lucent.com>
73821
73822         Get it right :-)
73823         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73824         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73825         Suggestion from Akim Demaille.
73826
73827 2000-04-17  Jim Meyering  <meyering@lucent.com>
73828
73829         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73830         the definition of it to rpl_strftime also defined-away the system's
73831         declaration.
73832
73833 2000-04-15  Jim Meyering  <meyering@lucent.com>
73834
73835         Use `C' to denote so-called `contiguous' files, the same way
73836         that tar does.
73837         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73838         (ftypelet): Use S_ISCTG.
73839         From Michael Deutschmann.
73840
73841 2000-04-14  Jim Meyering  <meyering@lucent.com>
73842
73843         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73844         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73845         clobbered.
73846
73847 2000-04-14  Jim Meyering  <meyering@lucent.com>
73848
73849         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73850
73851 2000-04-13  Jim Meyering  <meyering@lucent.com>
73852
73853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73854         AH_VERBATIM to insert required #ifndef into config.h.in.
73855         Suggestion from Akim Demaille.
73856
73857 2000-04-12  Jim Meyering  <meyering@lucent.com>
73858
73859         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73860         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73861         Christian Krackowizer.
73862
73863         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73864         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73865         (AC_SYS_LARGEFILE): Require.
73866         (AM_C_PROTOTYPES): Require.
73867
73868 2000-04-08  Jim Meyering  <meyering@lucent.com>
73869
73870         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73871         names don't conflict.  Reported by Eli Zaretskii.
73872
73873 2000-04-07  Jim Meyering  <meyering@lucent.com>
73874
73875         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73876         sys/types.h, to work around system header problems on AIX 3.2.5.
73877         From Bruno Haible.
73878
73879 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73880
73881         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73882         bug.  Deal with the different error behavior of Irix iconv.
73883
73884 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73885
73886         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73887         IRIX if the installer said otherwise.
73888
73889 2000-04-05  Jim Meyering  <meyering@lucent.com>
73890
73891         Portability tweaks required for ultrix4.3.
73892         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73893         (jm_CHECK_DECLS): Add getutent to the list of functions.
73894         (_jm_DECL_HEADERS): Add utmpx.h.
73895         From John David Anglin.
73896
73897         * m4/strftime.m4: Back out the 2000-04-02 change.
73898         Instead of that change, simply undefine putenv in the test program.
73899
73900 2000-04-05  Jim Meyering  <meyering@lucent.com>
73901
73902         Portability tweaks required for ultrix4.3.
73903         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73904         getutent.
73905         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73906         * lib/canon-host.c: Declare strdup.
73907         * lib/path-concat.c: Likewise.
73908         From John David Anglin.
73909
73910 2000-04-04  Jim Meyering  <meyering@lucent.com>
73911
73912         Be more DOS 8.3-friendly.
73913         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73914         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73915         * lib/Makefile.am: Reflect renaming.
73916         Reported by Eli Zaretskii.
73917
73918         Use a temporary file name that won't clash with `charset.alias'
73919         in the DOS 8.3 name space.
73920         * lib/Makefile.am (charset_tmp): Define.
73921         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73922         (uninstall-local): Likewise.
73923         Reported by Eli Zaretskii.
73924
73925 2000-04-03  Jim Meyering  <meyering@lucent.com>
73926
73927         * m4/gettext.m4: Fix typo in comment.
73928
73929         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73930         textutils/configure.in).  Suggestion from Paul Eggert.
73931         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73932
73933 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73934
73935         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73936         variable in the shell rather than using putenv, which isn't
73937         portable.  This avoids the configure-time inter-test dependency
73938         on the potentially-renamed putenv function.
73939
73940 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73941
73942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73943         before checking struct stat.st_blksize, so that
73944         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73945
73946 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73947
73948         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73949         since strftime.c uses HAVE_STRFTIME to decide whether to use
73950         the underlying strftime.
73951
73952 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73953
73954         * lib/time/strftime.c (my_strftime): Make sure we call the system
73955         strftime, not ourselves, when invoking the underlying strftime.
73956
73957 2000-03-24  Jim Meyering  <meyering@lucent.com>
73958
73959         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73960         (charset_alias): Define.
73961         (install-exec-local): Factor out common code.
73962         (uninstall-local): Split lines longer than 80.
73963         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73964         (SUFFIXES): Define.
73965         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73966         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73967
73968 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73969
73970         * lib/config.charset: Output a line containing "Packages using this
73971         file".
73972         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73973         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73974         ref-del.sed): New rules.
73975
73976 2000-03-17  Jim Meyering  <meyering@lucent.com>
73977
73978         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73979         Otherwise, include <strings.h>
73980
73981 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73982
73983         * lib/unicodeio.c (utf8_wctomb): New function.
73984         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73985         format instead of in UCS-4 with platform dependent endianness.
73986
73987 2000-03-10  Jim Meyering  <meyering@lucent.com>
73988
73989         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73990         From Marco Franzen.
73991
73992 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73993
73994         * lib/savedir.c (savedir): Work even if directory size is
73995         negative; this can happen with some screwy NFS configurations.
73996
73997 2000-03-06  Jim Meyering  <meyering@lucent.com>
73998
73999         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
74000         if it's NULL (because we ran out of memory).  From Bruno Haible.
74001
74002 2000-03-05  Jim Meyering  <meyering@lucent.com>
74003
74004         * lib/localcharset.c ("path-concat.h"): Include.
74005         (get_charset_aliases): Use path_concat instead of ANSI string
74006         concatenation.
74007
74008         * lib/unicodeio.h (PARAMS): Define.
74009         Use it to guard prototype.
74010
74011 2000-03-04  Jim Meyering  <meyering@lucent.com>
74012
74013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
74014         for lib/localcharset.c.
74015
74016 2000-03-04  Jim Meyering  <meyering@lucent.com>
74017
74018         * lib/Makefile.am (install-exec-local): Create $(libdir) before
74019         installing into it.
74020         (uninstall-local): Uncomment this rule so `make distcheck' works
74021         once again.
74022
74023         * lib/unicodeio.c (<errno.h>): Include it.
74024         (errno): Declare if not defined.
74025
74026         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
74027
74028         * lib/config.charset: New version, incorporating remarks from a linux
74029         i18n mailing list.  From Bruno Haible.
74030
74031 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
74032
74033         * m4/codeset.m4: New file.
74034         * m4/iconv.m4: New file.
74035         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
74036
74037 2000-03-03  Jim Meyering  <meyering@lucent.com>
74038
74039         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
74040
74041 2000-03-02  Jim Meyering  <meyering@lucent.com>
74042
74043         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
74044         the messages come out on separate lines.
74045
74046         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
74047         rather than jm_CHECK_DECLARATIONS.
74048         * m4/decl.m4: Remove now-unused file.
74049
74050         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
74051         geteuid.
74052
74053 2000-03-02  Jim Meyering  <meyering@lucent.com>
74054
74055         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
74056
74057 2000-03-01  Jim Meyering  <meyering@lucent.com>
74058
74059         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
74060         * lib/unicodeio.c: Likewise.
74061
74062 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
74063
74064         * lib/config.charset: New file.
74065         * lib/localcharset.c: New file.
74066         * lib/unicodeio.h, lib/unicodeio.c: New files.
74067         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
74068         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
74069         (noinst_HEADERS): Add unicodeio.h.
74070         (all-local, install-exec-local, charset.alias): New targets.
74071
74072 2000-02-28  Paul Eggert  <eggert@twinsun.com>
74073
74074         * lib/quotearg.c (ALERT_CHAR): New macro.
74075         (quotearg_buffer_restyled): Use it.
74076
74077 2000-02-27  Jim Meyering  <meyering@lucent.com>
74078
74079         * m4/check-decl.m4: Add getenv to the list.
74080
74081 2000-02-27  Jim Meyering  <meyering@lucent.com>
74082
74083         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74084         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74085
74086         * lib/backupfile.c: Guard inclusion of stdlib.h with
74087         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74088         Declare malloc if needed.
74089
74090         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74091         `#ifndef HAVE_DECL..'
74092         now that autoconf always defines the HAVE_DECL_ symbols.
74093         * lib/human.c: Likewise.
74094         * lib/same.c: Likewise.
74095         * lib/strtoumax.c: Likewise.
74096
74097         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74098         declaration check was not run.
74099         * lib/hash.c: Likewise.
74100         * lib/human.c: Likewise.
74101         * lib/same.c: Likewise.
74102         * lib/strtoumax.c: Likewise.
74103
74104         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74105         `.', then first look up the entire `.'-containing string as a login
74106         name.
74107
74108 2000-02-23  Jim Meyering  <meyering@lucent.com>
74109
74110         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74111         in place of my hack.
74112
74113 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74114
74115         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74116         (textint): New typedef.
74117         (parser_control): Member year changed from int to textint.
74118         All uses changed.
74119         (YYSTYPE): Removed; replaced by %union with int and textint members.
74120         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74121         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74122         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74123         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74124         (date, number, to_year): Use width of number in digits, not its value,
74125         to determine whether it's a 2-digit year, or a 2-digit time.
74126         (yylex): Store number of digits of numeric tokens.
74127         Reported by John Kendall.
74128
74129         (parser_control): Changed from struct parser_control to typedef (for
74130         consistency).  All uses changed.
74131
74132         (tID): Removed; not used.
74133         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
74134
74135 2000-02-14  Paul Eggert  <eggert@twinsun.com>
74136
74137         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
74138         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
74139
74140 2000-02-12  Jim Meyering  <meyering@lucent.com>
74141
74142         * lib/userspec.c (ISDIGIT): Define it.
74143         (isdigit): Remove definition.
74144         (is_number): Use ISDIGIT, not isdigit.
74145         <libintl.h>: Include.
74146         (_ and N_): Define.
74147         (parse_user_spec): Mark translatable strings.
74148
74149 2000-02-10  Jim Meyering  <meyering@lucent.com>
74150
74151         With these changes, nanosleep.[ch] are finally enough like the other
74152         lib/* replacement files to compile on a few more losing systems.
74153
74154         * lib/nanosleep.h: Don't include config.h.
74155         Remove prototype from declaration of nanosleep.
74156         (PARAMS): Remove now-unneeded definition.
74157         * lib/nanosleep.c: #undef nanosleep.
74158         (rpl_nanosleep): Rename from nanosleep.
74159
74160 2000-02-10  Jim Meyering  <meyering@lucent.com>
74161
74162         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
74163         gnu_nanosleep to rpl_nanosleep.
74164
74165 2000-02-09  Jim Meyering  <meyering@lucent.com>
74166
74167         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
74168         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
74169
74170 2000-02-08  Akim Demaille  <akim@epita.fr>
74171
74172         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
74173         `[' and `]' and remove uses of `changequote'.
74174         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
74175         (AC_SYS_LARGEFILE): Likewise.
74176         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
74177         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
74178         of changequote.
74179         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
74180         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
74181         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
74182         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
74183
74184 2000-02-05  Jim Meyering  <meyering@lucent.com>
74185
74186         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
74187         Remove explicit use of AC_HEADER_TIME.  It is required by
74188         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
74189         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
74190         in autoconf whereby the expansion of the latter ended up preceding
74191         the expansion of its prerequisite, AC_HEADER_TIME.
74192         Reported by Volker Borchert.
74193
74194 2000-02-03  Jim Meyering  <meyering@lucent.com>
74195
74196         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
74197
74198 2000-02-03  Jim Meyering  <meyering@lucent.com>
74199
74200         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
74201         rather than with `#if HAVE_UTMPNAME'.
74202
74203 2000-02-02  Jim Meyering  <meyering@lucent.com>
74204
74205         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
74206         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
74207         Reported by Eli Zaretskii.
74208
74209 2000-02-01  Jim Meyering  <meyering@lucent.com>
74210
74211         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
74212
74213 2000-01-31  Jim Meyering  <meyering@lucent.com>
74214
74215         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
74216         functions.  Add the time.h and sys/time.h headers along with the
74217         AC_REQUIRE'ment of AC_HEADER_TIME.
74218
74219 2000-01-31  Jim Meyering  <meyering@lucent.com>
74220
74221         * lib/nanosleep.h (nanosleep): Guard declaration with
74222         `#if ! HAVE_DECL_NANOSLEEP'.
74223         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
74224         the declaration in that vendor's sys/timers.h.
74225         Reported by Christian Krackowizer.
74226
74227         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
74228         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
74229         (ISPRINT): Likewise.
74230         Reported by Tom Tromey.
74231
74232 2000-01-30  Jim Meyering  <meyering@lucent.com>
74233
74234         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
74235
74236         * m4/prereq.m4 (utmp_includes): Define.
74237         Check for ut_user and ut_name members in both struct utmpx
74238         and struct utmp.
74239
74240 2000-01-30  Jim Meyering  <meyering@lucent.com>
74241
74242         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
74243         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
74244         header files where only utmpx.ut_user is declared.
74245
74246         * lib/readutmp.h (UT_USER): Define.
74247
74248 2000-01-29  Jim Meyering  <meyering@lucent.com>
74249
74250         * m4/lib-check.m4: New file containing library-related checks from
74251         fileutils and sh-utils (textutils had none).
74252
74253 2000-01-28  Jim Meyering  <meyering@lucent.com>
74254
74255         * m4/perl.m4: Change format of warning message to look more like that
74256         from the missing script.  Suggestion from François Pinard.
74257
74258 2000-01-25  Jim Meyering  <meyering@lucent.com>
74259
74260         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74261         well as time.h in the compile check.
74262         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74263         Fix typo in cross-compiling case: s/yes/no/.
74264
74265 2000-01-23  Jim Meyering  <meyering@lucent.com>
74266
74267         * m4/jm-macros.m4: Move df-related tests here from
74268         fileutils/configure.in
74269
74270         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74271         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74272
74273         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74274         s/space/ac_fsusage_space/.
74275         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74276
74277         * m4/ftruncate.m4: New file (derived from part of
74278         fileutils/configure.in).
74279         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74280         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74281
74282         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74283         AC_SUBST these here, rather than just in sh-util/configure.in, so
74284         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74285         all the same.
74286         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74287         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74288         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74289         (AC_SUBST(POW_LIBM)): Likewise.
74290         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74291
74292 2000-01-23  Jim Meyering  <meyering@lucent.com>
74293
74294         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74295         obstack.c.
74296
74297 2000-01-22  Jim Meyering  <meyering@lucent.com>
74298
74299         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74300
74301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74302
74303         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74304         configure.in
74305         (AC_CHECK_HEADERS): Likewise for sh-utils.
74306         (AC_CHECK_HEADERS): Likewise for textutils.
74307         Merge the three lists of headers.
74308
74309         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74310         from fileutils' configure.in.
74311
74312         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74313         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74314         check-decl.m4.
74315
74316         * m4/check-decl.m4: Use #if rather than #ifdef.
74317         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74318         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74319         (_jm_DECL_HEADERS): Define new function.
74320         (jm_CHECK_DECLARATIONS): Require it.
74321
74322 2000-01-22  Jim Meyering  <meyering@lucent.com>
74323
74324         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74325         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74326         Required for some AIX systems.  Reported by Christian Krackowizer.
74327         [TESTING] (main): New function.
74328
74329         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74330         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74331         letters.
74332
74333         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74334         iswprint.
74335
74336         * lib/strverscmp.c (ISDIGIT): Define.
74337         (strverscmp): Use ISDIGIT, not isdigit.
74338
74339 2000-01-19  Jim Meyering  <meyering@lucent.com>
74340
74341         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74342         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74343         defines `struct timespec' in <sys/time.h>
74344
74345         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74346         Thanks to Akim for explaining.
74347
74348 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74349
74350         * lib/nanosleep.c (nanosleep):
74351         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74352         POSIX.1 doesn't require SA_INTERRUPT and some systems
74353         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74354         it's been part of POSIX.1 since day 1 (in 1988).
74355
74356 2000-01-17  Jim Meyering  <meyering@lucent.com>
74357
74358         * lib/interlock: Remove unused file.  Reported by François Pinard.
74359
74360 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74361
74362         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74363         alert, backslash, formfeed, and vertical tab unnecessarily in
74364         shell quoting style.
74365
74366 2000-01-16  Jim Meyering  <meyering@lucent.com>
74367
74368         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74369         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74370         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74371         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74372
74373 2000-01-16  Jim Meyering  <meyering@lucent.com>
74374
74375         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74376         because the latter didn't work.
74377
74378 2000-01-15  Jim Meyering  <meyering@lucent.com>
74379
74380         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74381         (AC_REPLACE_FUNCS): Add memcpy and memset.
74382         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74383         Add strpbrk.
74384         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74385
74386 2000-01-12  Jim Meyering  <meyering@lucent.com>
74387
74388         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74389         (jm_PREREQ): Use it.
74390         (jm_PREREQ_READUTMP): New macro.
74391         (jm_PREREQ): Use it.
74392
74393 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74394
74395         Quote multibyte characters correctly.
74396         * m4/c-bs-a.m4: New file.
74397         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74398         (jm_PREREQ): Use it.
74399
74400 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74401
74402         * m4/uintmax_t.m4: Port to autoconf 2.13.
74403
74404 2000-01-08  Jim Meyering  <meyering@ascend.com>
74405
74406         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74407         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74408
74409 2000-01-04  Jim Meyering  <meyering@ascend.com>
74410
74411         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74412         jm_STRUCT_DIRENT_D_TYPE.
74413         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74414         jm_STRUCT_DIRENT_D_INO.
74415         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74416         jm_STRUCT_UTIMBUF.
74417         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74418         renamings.
74419         * m4/utime.m4: Likewise.
74420
74421         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74422         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74423
74424 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74425
74426         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74427         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74428
74429 2000-01-02  Jim Meyering  <meyering@ascend.com>
74430
74431         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74432         remember if this is necessary.
74433
74434 1999-12-26  Jim Meyering  <meyering@ascend.com>
74435
74436         * m4/jm-macros.m4: Use it here.
74437         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74438
74439 1999-12-23  Jim Meyering  <meyering@ascend.com>
74440
74441         * m4/jm-macros.m4: Check for clock_gettime (moved from
74442         fileutils/configure.in)
74443         Check for gettimeofday.
74444
74445 1999-12-20  Jim Meyering  <meyering@ascend.com>
74446
74447         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74448         autoconf-2.14a-1999-12-20.
74449
74450 1999-12-19  Jim Meyering  <meyering@ascend.com>
74451
74452         * m4/lstat-slash.m4: New file.
74453         * m4/jm-macros.m4: Use the new macro:
74454         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74455
74456 1999-12-07  Jim Meyering  <meyering@ascend.com>
74457
74458         * m4/perl.m4: Require that File::Compare be available, too.
74459         Too many systems seem to lack it.
74460
74461         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74462         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74463
74464 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74465
74466         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74467         problem with the QNX 4.25 shell, which doesn't propagate exit
74468         status of failed commands inside shell assignments.
74469
74470 1999-11-17  Jim Meyering  <meyering@ascend.com>
74471
74472         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74473
74474 1999-11-07  Jim Meyering  <meyering@ascend.com>
74475
74476         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74477
74478 1999-11-06  Jim Meyering  <meyering@ascend.com>
74479
74480         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74481         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74482
74483 1999-11-05  Jim Meyering  <meyering@ascend.com>
74484
74485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74486         configure.in of textutils, fileutils, and sh-utils into this one
74487         (shared between those packages) file.
74488         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74489         AC_STRUCT_ST_BLKSIZE.
74490
74491 1999-11-03  Jim Meyering  <meyering@ascend.com>
74492
74493         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74494         of AC_CHECK_TYPE checks includes unistd.h.
74495         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74496         Suggestion from Akim Demaille.
74497
74498 1999-10-30  Jim Meyering  <meyering@ascend.com>
74499
74500         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74501         m4-quoted string.
74502         * m4/ls-mntd-fs.m4: Likewise.
74503         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74504         * m4/jm-winsz1.m4: Likewise.
74505
74506         * m4/const.m4: Remove file, since the fix made it into the experimental
74507         version of autoconf.
74508         * m4/mktime.m4: Likewise.
74509
74510         * m4/check-type.m4: Remove file, now that the latest version of
74511         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74512
74513         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74514         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74515         AC_CHECK_TYPE.
74516
74517 1999-10-04  Jim Meyering  <meyering@ascend.com>
74518
74519         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74520
74521 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74522
74523         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74524         2.95.1 bug with HP-UX 10.20.
74525
74526 1999-09-17  Jim Meyering  <meyering@ascend.com>
74527
74528         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74529         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74530         due to missing strdup (against sh-utils-2.0).
74531
74532 1999-08-29  Jim Meyering  <meyering@ascend.com>
74533
74534         * m4/jm-macros.m4: Require jm_BISON.
74535         * m4/bison.m4: New file.
74536
74537 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74538
74539         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74540         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74541
74542 1999-08-05  Jim Meyering  <meyering@ascend.com>
74543
74544         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74545         to avoid conflicts with `conftest' on 8+3 filesystems.
74546         Suggestion from Eli Zaretskii.
74547
74548 1999-08-04  Jim Meyering  <meyering@ascend.com>
74549
74550         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74551         fileutils and sh-utils (textutils's getline test was inadequate).
74552         (AM_FUNC_GETLINE): Run this test.
74553         (AC_CHECK_FUNCS): Check for getdelim.
74554         Reported by Bob Proulx.
74555
74556 1999-08-02  Jim Meyering  <meyering@ascend.com>
74557
74558         * m4/jm-macros.m4: Add a comment.
74559
74560 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74561
74562         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74563         <inttypes.h> defines strtoumax as a macro (and not as a
74564         function).
74565
74566 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74567
74568         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74569         that we can shift, multiply and divide unsigned long long
74570         values; Ultrix cc can't do it.
74571
74572 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74573
74574         * m4/mktime.m4: New file, which is a preview of what should appear
74575         in the next public autoconf release.
74576
74577 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74578
74579         * m4/lfs.m4: Remove this file.
74580         * m4/largefile.m4: New file.  It contains the old contents of
74581         lfs.m4, except that all names with prefix AC_LFS have been
74582         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74583         compatible with future autoconf versions.  Also, some minor m4
74584         quoting problems have been fixed.
74585
74586 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74587
74588         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74589         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74590         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74591         and simplify the shell code.
74592
74593 1999-08-01  Jim Meyering  <meyering@ascend.com>
74594
74595         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74596         m4.
74597
74598 1999-07-20  Jim Meyering  <meyering@ascend.com>
74599
74600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74601
74602 1999-07-15  Jim Meyering  <meyering@ascend.com>
74603
74604         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74605
74606 1999-05-22  Jim Meyering  <meyering@ascend.com>
74607
74608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74609
74610 1999-05-20  Jim Meyering  <meyering@ascend.com>
74611
74612         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74613         Add a colon after each `then' in case $4 is empty.
74614
74615 1999-05-16  Jim Meyering  <meyering@ascend.com>
74616
74617         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74618
74619 1999-05-10  Jim Meyering  <meyering@ascend.com>
74620
74621         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74622
74623         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74624         AC_FUNC_MKTIME.
74625
74626 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74627
74628         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74629
74630 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74631
74632         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74633         not CPPFLAGS, so that linking works correctly in IRIX.
74634
74635 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74636
74637         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74638
74639 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74640
74641         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74642         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74644         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74645         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74646
74647         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74648
74649 1999-04-20  Jim Meyering  <meyering@ascend.com>
74650
74651         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74652         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74653         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74654
74655 1999-04-18  Jim Meyering  <meyering@ascend.com>
74656
74657         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74658         * m4/jm-macros.m4: Use it.
74659
74660 1999-04-06  Jim Meyering  <meyering@ascend.com>
74661
74662         * m4/strftime.m4: Remove test for %f.
74663
74664 1999-03-29  Jim Meyering  <meyering@ascend.com>
74665
74666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74667         superset of the AC_TYPE_* checks in the textutils, fileutils,
74668         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74669         AC_TYPE_PID_T.
74670
74671 1999-03-28  Jim Meyering  <meyering@ascend.com>
74672
74673         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74674         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74675         replaced e.g., in the *.sh files of the sh-utils.
74676
74677 1999-03-20  Jim Meyering  <meyering@ascend.com>
74678
74679         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74680         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74681         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74682
74683 1999-03-19  Jim Meyering  <meyering@ascend.com>
74684
74685         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74686
74687 1999-03-12  Jim Meyering  <meyering@ascend.com>
74688
74689         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74690
74691 1999-03-07  Jim Meyering  <meyering@ascend.com>
74692
74693         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74694         declared.
74695
74696 1999-02-17  Jim Meyering  <meyering@ascend.com>
74697
74698         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74699         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74700
74701 1999-02-07  Jim Meyering  <meyering@ascend.com>
74702
74703         * m4/group-member.m4: New file -- extracted from sh-utils'
74704         configure.in.
74705
74706         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74707         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74708
74709 1999-02-06  Jim Meyering  <meyering@ascend.com>
74710
74711         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74712         * m4/fnmatch.m4: Likewise.
74713         * m4/getgroups.m4: Likewise.
74714         * m4/lstat.m4: Likewise.
74715         * m4/malloc.m4: Likewise.
74716         * m4/putenv.m4: Likewise.
74717         * m4/realloc.m4: Likewise.
74718         * m4/regex.m4: Likewise.
74719         * m4/stat.m4: Likewise.
74720         * m4/strftime.m4: Likewise.
74721         Suggestion from Alain Magloire.
74722
74723         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74724         * m4/fnmatch.m4: Likewise.
74725         * m4/getgroups.m4: Likewise.
74726         * m4/getline.m4: Likewise.
74727         * m4/lstat.m4: Likewise.
74728         * m4/malloc.m4: Likewise.
74729         * m4/memcmp.m4: Likewise.
74730         * m4/putenv.m4: Likewise.
74731         * m4/realloc.m4: Likewise.
74732         * m4/regex.m4: Likewise.
74733         * m4/stat.m4: Likewise.
74734         * m4/strftime.m4: Likewise.
74735         Suggestion from Alain Magloire.
74736
74737         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74738         an argument.
74739
74740         * m4/regex.m4: Add a run-time Test for proper operation of
74741         re_compile_pattern.
74742
74743 1999-01-31  Jim Meyering  <meyering@ascend.com>
74744
74745         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74746
74747 1999-01-30  Jim Meyering  <meyering@ascend.com>
74748
74749         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74750
74751         * m4/jm-mktime.m4: Make this a wrapper around the official
74752         AM_FUNC_MKTIME rather than my private copy, now that the official one
74753         is up to date.
74754         * m4/mktime.m4: Remove file.
74755
74756         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74757         * m4/uptime.m4: Likewise.
74758         * m4/uintmax_t.m4: Likewise.
74759
74760 1999-01-28  Jim Meyering  <meyering@ascend.com>
74761
74762         * m4/jm-macros.m4: Use jm_AFS.
74763         * m4/afs.m4: New file (from fileutils' configure.in).
74764
74765         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74766         * m4/chown.m4: Likewise.
74767         * m4/d-ino.m4: Likewise.
74768         * m4/d-type.m4: Likewise.
74769         * m4/fnmatch.m4: Likewise.
74770         * m4/getgroups.m4: Likewise.
74771         * m4/gettext.m4: Likewise.
74772         * m4/jm-mktime.m4: Likewise.
74773         * m4/jm-winsz2.m4: Likewise.
74774         * m4/lcmessage.m4: Likewise.
74775         * m4/ls-mntd-fs.m4: Likewise.
74776         * m4/malloc.m4: Likewise.
74777         * m4/memcmp.m4: Likewise.
74778         * m4/putenv.m4: Likewise.
74779         * m4/realloc.m4: Likewise.
74780         * m4/st_mtim.m4: Likewise.
74781         * m4/strftime.m4: Likewise.
74782
74783 1999-01-16  Jim Meyering  <meyering@ascend.com>
74784
74785         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74786         (ARGMATCH_DIE_DECL): Define.
74787
74788 1999-01-12  Jim Meyering  <meyering@ascend.com>
74789
74790         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74791         Reported by Lars Hecking.
74792
74793 1999-01-10  Jim Meyering  <meyering@ascend.com>
74794
74795         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74796         gross kludge.
74797         * m4/inttypes_h.m4: Likewise.
74798         * m4/lstat.m4: Likewise.
74799         * m4/malloc.m4: Likewise.
74800         * m4/readdir.m4: Likewise.
74801         * m4/realloc.m4: Likewise.
74802         * m4/st_dm_mode.m4: Likewise.
74803         * m4/stat.m4: Likewise.
74804         * m4/utimbuf.m4: Likewise.
74805         * m4/utimes.m4: Likewise.
74806
74807         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74808         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74809         comments in config.h.in are meaningful.
74810
74811         * m4/jm-macros.m4: Require autoconf-2.13 here.
74812
74813         * m4/regex.m4: By default, don't use the included regex.c on systems
74814         with glibc 2.  Suggestion from Uli Drepper.
74815
74816 1999-01-02  Jim Meyering  <meyering@ascend.com>
74817
74818         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74819
74820 1998-12-18  Jim Meyering  <meyering@ascend.com>
74821
74822         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74823         Based on a suggestion from Lars Hecking.
74824
74825 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74826
74827         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74828
74829 1998-11-16  Jim Meyering  <meyering@ascend.com>
74830
74831         * m4/lfs.m4: Double-quote the `uname...` expression.
74832
74833 1998-11-14  Jim Meyering  <meyering@ascend.com>
74834
74835         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74836         * m4/stat.m4: Likewise.
74837
74838 1998-11-03  Jim Meyering  <meyering@ascend.com>
74839
74840         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74841         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74842
74843 1998-10-18  Jim Meyering  <meyering@ascend.com>
74844
74845         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74846
74847 1998-10-17  Jim Meyering  <meyering@ascend.com>
74848
74849         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74850         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74851         calls for those previously hard-coded headers.  Instead, take a new
74852         parameter.
74853         (jm_CHECK_DECLARATIONS): Reflect interface change.
74854         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74855         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74856
74857         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74858
74859 1998-10-14  Jim Meyering  <meyering@ascend.com>
74860
74861         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74862         instead of "TZ=America/Vancouver".  From Paul Eggert.
74863
74864 1998-10-11  Jim Meyering  <meyering@ascend.com>
74865
74866         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74867         This adds a test for a recently added compatibility fix for mktime.c.
74868         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74869
74870 1998-09-27  Jim Meyering  <meyering@ascend.com>
74871
74872         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74873
74874         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74875         ../configure.in, including a change from Gordon Matzigkeit to allow
74876         cross-compiling for the Hurd.
74877
74878         * m4/glibc.m4: New file/macro to test for the GNU C Library
74879         versions 1 and 2.  From Gordon Matzigkeit.
74880         Indent.
74881
74882 1998-09-21  Jim Meyering  <meyering@ascend.com>
74883
74884         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74885
74886 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74887
74888         Port nanosecond-resolution times to UnixWare 2.1.2 and
74889         pedantic Solaris 2.6.
74890
74891         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74892         AC_STRUCT_ST_MTIM.
74893         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74894         Generate name of ns member, instead of just 1 or undef.
74895         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74896
74897 1998-08-15  Jim Meyering  <meyering@ascend.com>
74898
74899         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74900         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74901         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74902         instead of jm_TYPE_SSIZE_T.
74903
74904 1998-08-12  Jim Meyering  <meyering@ascend.com>
74905
74906         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74907
74908 1998-08-02  Jim Meyering  <meyering@ascend.com>
74909
74910         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74911         in acconfig.h manually.
74912
74913 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74914
74915         * m4/st_mtim.m4: New file.
74916
74917 1998-07-28  Jim Meyering  <meyering@ascend.com>
74918
74919         * m4/utimes.m4: Undef stat.
74920
74921 1998-07-25  Jim Meyering  <meyering@ascend.com>
74922
74923         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74924         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74925
74926 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74927
74928         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74929         uid and gid actually remain unchanged.
74930
74931 1998-07-07  Jim Meyering  <meyering@ascend.com>
74932
74933         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74934
74935 1998-07-04  Jim Meyering  <meyering@ascend.com>
74936
74937         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74938         to prove that this macro can be used in packages without regex.c.
74939
74940 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74941
74942         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74943         is to be used.
74944
74945 1998-07-03  Jim Meyering  <meyering@ascend.com>
74946
74947         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74948
74949         * m4/gettext.m4: New file -- from gettext-0.10.35.
74950         * m4/lcmessage.m4: Likewise.
74951         * m4/progtest.m4: Likewise.
74952
74953         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74954         * m4/jm-macros.m4: Require the new macro.
74955
74956 1998-06-29  Jim Meyering  <meyering@ascend.com>
74957
74958         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74959         for the definition of NGROUPS (used in a system header included
74960         by sys/mount.h).
74961
74962 1998-06-28  Jim Meyering  <meyering@ascend.com>
74963
74964         * m4/ls-mntd-fs.m4: New file.
74965         * m4/fstypename.m4: New file.
74966
74967         * m4/jm-macros.m4: Require the new macro.
74968         * m4/jm-glibc-io.m4: New file.
74969
74970 1998-05-19  Jim Meyering  <meyering@ascend.com>
74971
74972         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74973         * m4/lchown.m4: New file.
74974
74975         * m4/Makefile.am.in: New file.
74976         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74977
74978 1998-05-14  Jim Meyering  <meyering@ascend.com>
74979
74980         * m4/Makefile.am (EXTRA_DIST): Add them.
74981         * m4/jm-macros.m4: New file.
74982         * m4/utimbuf.m4: New file.
74983
74984 1998-05-12  Jim Meyering  <meyering@ascend.com>
74985
74986         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74987
74988 1998-05-11  Jim Meyering  <meyering@ascend.com>
74989
74990         * m4/isc-posix.m4: New file.
74991
74992 1998-05-10  Jim Meyering  <meyering@ascend.com>
74993
74994         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74995
74996 1998-05-09  Jim Meyering  <meyering@ascend.com>
74997
74998         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74999         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
75000         with automake.
75001
75002         * m4/ssize_t.m4: New file.
75003         * m4/mktime.m4: Remove file -- the new automake has this now.
75004
75005 1998-04-26  Jim Meyering  <meyering@ascend.com>
75006
75007         * m4/assert.m4: New file.
75008         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
75009
75010 1998-04-05  Jim Meyering  <meyering@ascend.com>
75011
75012         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
75013         (jm_PREREQ): Use it here.
75014
75015 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
75016
75017         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
75018         in acconfig.h.
75019
75020 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
75021
75022         * m4/prereq.m4: New file.
75023         * m4/error.m4: New file.
75024         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75025
75026 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
75027
75028         * m4/getline.m4: Don't set am_cv_func_working_getline before the
75029         cache-check for the same variable -- that defeated the purpose of
75030         the test; the test program was never run.  This was a problem only
75031         on systems with losing getline functions -- HP-UX 10.20 is one.
75032         Reported by Bjorn Helgaas.
75033
75034 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
75035
75036         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
75037
75038 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
75039
75040         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
75041
75042         * m4/const.m4: New file.  Use an initializer in this declaration
75043         typedef int charset[2]; const charset x;
75044         Reported by Bob Glickstein.
75045
75046 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
75047
75048         * m4/chown.m4: Fix reversed types on -1 args to chown.
75049         From Kaveh Ghazi.
75050
75051 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
75052
75053         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
75054         Add lseek and memchr.
75055
75056         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
75057         T.E.Dickey <dickey@clark.net> said that some older preprocessors
75058         have a 20-character limit on names.
75059
75060 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
75061
75062         * m4/inttypes_h.m4: New file.
75063         * m4/uintmax_t.m4: New file.
75064         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
75065
75066
75067         -----
75068
75069         Local Variables:
75070         coding: utf-8
75071         End:
75072
75073         Copyright (C) 1997-2011 Free Software Foundation, Inc.
75074
75075         Copying and distribution of this file, with or without
75076         modification, are permitted provided the copyright notice
75077         and this notice are preserved.